PDA

View Full Version : Spring Insight with tc server standard edition



appleman
Feb 24th, 2011, 02:24 PM
I really love SPring insight and its capabilites hatss off to the creators. I am working on enabling insight on out dev env which uses spring tc server standar edition. I have installed the insight template on to the tc sever and created an insight instance from it.

But when i try to start the instance i am getting this error

24-Feb-2011 20:45:30.625 INFO com.springsource.tcserver.security.PropertyDecoder .<init> tc Runtime property decoder using memory-based key
24-Feb-2011 20:45:31.437 INFO com.springsource.tcserver.security.PropertyDecoder .<init> tcServer Runtime property decoder has been initialized in 822 ms
24-Feb-2011 20:45:39.921 INFO com.springsource.tcserver.serviceability.rmi.JmxSo cketListener.init Started up JMX registry on 127.0.0.1:7979 in 410 ms
24-Feb-2011 20:45:40.437 INFO org.apache.coyote.http11.Http11Protocol.init Initializing Coyote HTTP/1.1 on http-9090
24-Feb-2011 20:45:40.687 INFO org.apache.catalina.core.StandardService.start Starting service Catalina
24-Feb-2011 20:45:40.687 INFO org.apache.catalina.core.StandardEngine.start Starting Servlet Engine: SpringSource tc Runtime 2.1.1.SR01/6.0.32.A.RELEASE
24-Feb-2011 20:45:41.125 INFO org.apache.catalina.startup.HostConfig.deployDescr iptor Deploying configuration descriptor insight.xml
24-Feb-2011 20:46:13.468 INFO com.springsource.insight.collection.tcserver.ltw.T omcatWeavingInsightClassLoader.start Context [localhost|insight] will not be woven
24-Feb-2011 20:46:48.734 INFO liquibase.database.template.JdbcTemplate.comment Lock Database
24-Feb-2011 20:46:48.859 INFO liquibase.lock.LockHandler.acquireLock Successfully acquired change log lock
24-Feb-2011 20:46:49.171 INFO liquibase.database.AbstractDatabase.getRanChangeSe tList Reading from DATABASECHANGELOG
24-Feb-2011 20:46:49.218 INFO liquibase.database.template.JdbcTemplate.comment Release Database Lock
24-Feb-2011 20:46:49.296 INFO liquibase.lock.LockHandler.releaseLock Successfully released change log lock
24-Feb-2011 20:47:08.328 SEVERE org.apache.catalina.core.StandardContext.start Error listenerStart
24-Feb-2011 20:47:08.328 SEVERE org.apache.catalina.core.StandardContext.start Context [/insight] startup failed due to previous errors
24-Feb-2011 20:47:08.328 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ReferencesJdbc The web application [/insight] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
24-Feb-2011 20:47:08.328 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ReferencesThreads The web application [/insight] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.328 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ReferencesThreads The web application [/insight] appears to have started a thread named [H2 File Lock Watchdog C:\Stuff\SPRING_INSIGHT_DEMO\tc-server-standard\insight-instance\insight\data\dashboard.lock.db] but has failed to stop it. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ReferencesThreads The web application [/insight] appears to have started a thread named [H2 Log Writer DASHBOARD] but has failed to stop it. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ReferencesThreads The web application [/insight] appears to have started a thread named [SystemFailure WatchDog] but has failed to stop it. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ReferencesThreads The web application [/insight] appears to have started a thread named [SystemFailure Proctor] but has failed to stop it. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ThreadLocalMap The web application [/insight] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1123787]) and a value of type [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl.ThreadStorage] (value [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl$ThreadStorage@fbb5f5]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ThreadLocalMap The web application [/insight] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@166fdde]) and a value of type [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl.ThreadStorage] (value [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl$ThreadStorage@a53502]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ThreadLocalMap The web application [/insight] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3b4f0e]) and a value of type [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl.ThreadStorage] (value [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl$ThreadStorage@1c330aa]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ThreadLocalMap The web application [/insight] created a ThreadLocal with key of type [com.gemstone.gemfire.internal.cache.EventID$1] (value [com.gemstone.gemfire.internal.cache.EventID$1@c026 7a]) and a value of type [com.gemstone.gemfire.internal.cache.EventID.Thread AndSequenceIDWrapper] (value [com.gemstone.gemfire.internal.cache.EventID$Thread AndSequenceIDWrapper@11e170c]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ThreadLocalMap The web application [/insight] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7b2e05]) and a value of type [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl.ThreadStorage] (value [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl$ThreadStorage@10a621a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ThreadLocalMap The web application [/insight] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@aea5cd]) and a value of type [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl.ThreadStorage] (value [com.gemstone.gemfire.internal.stats50.Atomic50Stat isticsImpl$ThreadStorage@773a1]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
24-Feb-2011 20:47:08.343 SEVERE org.apache.catalina.loader.WebappClassLoader.clear ThreadLocalMap The web application [/insight] created a ThreadLocal with key of type [com.gemstone.gemfire.distributed.internal.ReplyPro cessor21$1] (value [com.gemstone.gemfire.distributed.internal.ReplyPro cessor21$1@1385846]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.


Please help.

Jugesh

Andy Wilkinson
Feb 25th, 2011, 04:46 AM
Th first lines that indicate something has gone wrong are:



24-Feb-2011 20:47:08.328 SEVERE org.apache.catalina.core.StandardContext.start Error listenerStart
24-Feb-2011 20:47:08.328 SEVERE org.apache.catalina.core.StandardContext.start Context [/insight] startup failed due to previous errors


There are no earlier lines in this log file that indicate what the error was. Check the catalina.out (and wrapper.log file as you're on Windows) to see if there's any additional information available.

appleman
Feb 25th, 2011, 05:22 AM
Nothing descriptive in the wrapper logs. Is spring insight template supported with tc server standard version


STATUS | wrapper | 2011/02/25 16:42:20 | Starting the SpringSource tc Runtime instance - tcruntime-C-Stuff-SPRING_INSIGHT_DEMO-tc-server-standard-insight-instance service...
STATUS | wrapper | 2011/02/25 16:42:20 | --> Wrapper Started as Service
STATUS | wrapper | 2011/02/25 16:42:21 | Launching a JVM...
INFO | jvm 1 | 2011/02/25 16:42:21 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2011/02/25 16:42:21 |
INFO | jvm 1 | 2011/02/25 16:42:22 | Feb 25, 2011 4:42:22 PM org.apache.catalina.startup.Catalina load
INFO | jvm 1 | 2011/02/25 16:42:22 | INFO: Initialization processed in 628 ms
STATUS | wrapper | 2011/02/25 16:42:24 | SpringSource tc Runtime instance - tcruntime-C-Stuff-SPRING_INSIGHT_DEMO-tc-server-standard-insight-instance started.
INFO | jvm 1 | 2011/02/25 16:42:26 | 2011-02-25 16:42:26,104 WARN [net.sf.ehcache.hibernate.AbstractEhcacheProvider][WrapperSimpleAppMain] - A configurationResourceName was set to /META-INF/ehcache.xml but the resource could not be loaded from the classpath.Ehcache will configure itself using defaults.
INFO | jvm 1 | 2011/02/25 16:42:26 | 2011-02-25 16:42:26,401 WARN [org.hibernate.cache.impl.bridge.EntityRegionAdapte r][WrapperSimpleAppMain] - read-only cache configured for mutable entity [com.springsource.insight.repo.metric.persist.Persi stedMetric]
INFO | jvm 1 | 2011/02/25 16:42:26 | 2011-02-25 16:42:26,401 WARN [org.hibernate.cache.impl.bridge.EntityRegionAdapte r][WrapperSimpleAppMain] - read-only cache configured for mutable entity [com.springsource.insight.repo.tag.persist.Persiste dTag]
INFO | jvm 1 | 2011/02/25 16:42:28 | 2011-02-25 16:42:28,573 ERROR [org.springframework.web.context.ContextLoader][WrapperSimpleAppMain] - Context initialization failed
INFO | jvm 1 | 2011/02/25 16:42:28 | org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'dashboardInterceptAttacher': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire method: public void com.springsource.insight.dashboard.DashboardInterc eptAttacher.setConfig(com.springsource.insight.con fig.InsightConfig); nested exception is org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'insightVersionNumber' defined in file [C:\Stuff\SPRING_INSIGHT_DEMO\tc-server-standard\insight-instance\webapps\insight\WEB-INF\classes\com\springsource\insight\dashboard\Ins ightVersionNumberFactoryBean.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.servlet.ServletContext]: : Error creating bean with name 'insightGemfireConfigFactoryBean' defined in URL [jar:file:/C:/Stuff/SPRING_INSIGHT_DEMO/tc-server-standard/insight-instance/webapps/insight/WEB-INF/lib/insight-repo-1.0.0.RELEASE.jar!/com/springsource/insight/repo/gemfire/InsightGemfireConfigFactoryBean.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.gemstone.gemfire.cache.Cache]: : Error creating bean with name 'traceAnalysisWorkflowFactoryBean' defined in URL [jar:file:/C:/Stuff/SPRING_INSIGHT_DEMO/tc-server-standard/insight-instance/webapps/insight/WEB-INF/lib/insight-repo-1.0.0.RELEASE.jar!/com/springsource/insight/repo/trace/analysis/TraceAnalysisWorkflowFactoryBean.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.trace.analysis.TraceAnaly sisService]: : Error creating bean with name 'traceAnalysisService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: java.util.List com.springsource.insight.trace.analysis.TraceAnaly sisServiceFactoryBean.errorAnalyzers; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No matching bean of type [com.springsource.insight.intercept.trace.TraceErro rAnalyzer] found for dependency [collection of com.springsource.insight.intercept.trace.TraceErro rAnalyzer]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Aut owired(required=true)}; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'traceAnalysisService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: java.util.List com.springsource.insight.trace.analysis.TraceAnaly sisServiceFactoryBean.errorAnalyzers; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No matching bean of type [com.springsource.insight.intercept.trace.TraceErro rAnalyzer] found for dependency [collection of com.springsource.insight.intercept.trace.TraceErro rAnalyzer]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Aut owired(required=true)}; nested exception is org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'traceAnalysisWorkflowFactoryBean' defined in URL [jar:file:/C:/Stuff/SPRING_INSIGHT_DEMO/tc-server-standard/insight-instance/webapps/insight/WEB-INF/lib/insight-repo-1.0.0.RELEASE.jar!/com/springsource/insight/repo/trace/analysis/TraceAnalysisWorkflowFactoryBean.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.trace.analysis.TraceAnaly sisService]: : Error creating bean with name 'traceAnalysisService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: java.util.List com.springsource.insight.trace.analysis.TraceAnaly sisServiceFactoryBean.errorAnalyzers; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No matching bean of type [com.springsource.insight.intercept.trace.TraceErro rAnalyzer] found for dependency [collection of com.springsource.insight.intercept.trace.TraceErro rAnalyzer]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Aut owired(required=true)}; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'traceAnalysisService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: java.util.List com.springsource.insight.trace.analysis.TraceAnaly sisServiceFactoryBean.errorAnalyzers; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No matching bean of type [com.springsource.insight.intercept.trace.TraceErro rAnalyzer] found for dependency [collection of com.springsource.insight.intercept.trace.TraceErro rAnalyzer]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Aut owired(required=true)}; nested exception is org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'insightGemfireConfigFactoryBean' defined in URL [jar:file:/C:/Stuff/SPRING_INSIGHT_DEMO/tc-server-standard/insight-instance/webapps/insight/WEB-INF/lib/insight-repo-1.0.0.RELEASE.jar!/com/springsource/insight/repo/gemfire/InsightGemfireConfigFactoryBean.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.gemstone.gemfire.cache.Cache]: : Error creating bean with name 'traceAnalysisWorkflowFactoryBean' defined in URL [jar:file:/C:/Stuff/SPRING_INSIGHT_DEMO/tc-server-standard/insight-instance/webapps/insight/WEB-INF/lib/insight-repo-1.0.0.RELEASE.jar!/com/springsource/insight/repo/trace/analysis/TraceAnalysisWorkflowFactoryBean.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.trace.analysis.TraceAnaly sisService]: : Error creating bean with name 'traceAnalysisService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: java.util.List com.springsource.insight.trace.analysis.TraceAnaly sisServiceFactoryBean.errorAnalyzers; nested exception is o

Andy Wilkinson
Feb 25th, 2011, 05:35 AM
Is spring insight template supported with tc server standard version

No, it's not, although, technically, there's no reason why it shouldn't work. That said, the currently available version of Insight is only intended for use during development so it should only be used with the developer edition of tc Server.

appleman
Feb 25th, 2011, 05:54 AM
Thanks i was able to get it working with standard version

appleman
Feb 28th, 2011, 04:07 AM
I have an already configures instance in my dev env. Is it possible than i can apply insight template to this already configured instance.

Andy Wilkinson
Mar 7th, 2011, 04:15 AM
Sorry, no it isn't - a template can only be applied during instance creation.