View Full Version : No application available in insight
Fireball
Dec 4th, 2009, 07:27 AM
Hi there,
if there is no application selection available in insight, what might be the problem here? Any hints?
Thank you in advance,
Fireball
sandrews
Dec 8th, 2009, 04:31 PM
If there are no application lists, that means there are no traces available to display. If this was the very first request to the server since startup, it's possible the trace repository is empty. If you hit refresh and the application selector still does not appear, something is wrong with the configuration.
How did you install Spring Insight?
Fireball
Dec 9th, 2009, 01:45 AM
Yes, even after refresh there is no application selection.
I use STS with tc server, and I assumed Insight is already properly installed. Is this wrong or is there more to configure?
Thanks Fireball
sandrews
Dec 9th, 2009, 08:38 AM
If you installed tc Server from the STS installer, it should just work. However, if you are trying to manually add a Server instance, make sure the following two directives are available in the context.xml file that is located in the Servers project.
<Valve className="com.springsource.metrics.collection.web.HttpReques tMetricCollectionValve"/>
<Loader loaderClass="com.springsource.tcserver.ltw.TomcatAspectJWeaving ClassLoader" useSystemClassLoaderAsParent="false"/>
Fireball
Dec 10th, 2009, 08:25 AM
Well on the one installation it's working now, on the other I get the following exception when starting tc server:
java.lang.ClassNotFoundException: com.springsource.metrics.collection.web .HttpRequestMetricCollectionValve
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 03)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
at org.apache.tomcat.util.digester.ObjectCreateRule.b egin(ObjectCreateRule.java:205)
at org.apache.tomcat.util.digester.Rule.begin(Rule.ja va:153)
at org.apache.tomcat.util.digester.Digester.startElem ent(Digester.java:1378)
at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.startElement(AbstractSAXParser.java:501 )
at com.sun.org.apache.xerces.internal.parsers.Abstrac tXMLDocumentParser.emptyElement(AbstractXMLDocumen tParser.java:179)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanStartElement(XMLDocumentF ragmentScannerImpl.java:1339)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl$FragmentContentDriver.next(XM LDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanDocument(XMLDocumentFragm entScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserI mpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.tomcat.util.digester.Digester.parse(Dig ester.java:1664)
at org.apache.catalina.startup.ContextConfig.processC ontextConfig(ContextConfig.java:789)
at org.apache.catalina.startup.ContextConfig.contextC onfig(ContextConfig.java:728)
at org.apache.catalina.startup.ContextConfig.init(Con textConfig.java:1009)
at org.apache.catalina.startup.ContextConfig.lifecycl eEvent(ContextConfig.java:279)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.init(Stan dardContext.java:5398)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4177)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig.deployDescr iptors(HostConfig.java:556)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1211)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:314)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:741)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:587)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:290)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:415)
Is there a difference for installing STS from the .zip archive or the .exe installer?
sandrews
Dec 14th, 2009, 08:11 AM
Looks like there is a space between 'com.springsource.metrics.collection.web' and '.HttpRequestMetricCollectionValve'. The space was in my original post, I apologize.
The zip and exe installers should have the same result. The installer offers a smaller download size and the ability to selectively install components.
Fireball
Dec 14th, 2009, 08:16 AM
Well I think the difference is that the entries have not been available for specific reasons. And when I added them manually it's crashing now. But the point is, where's the difference. Both are normal Windows XP machines and if you say there's no difference what is missing?
I also tried to reinstall STS but it's not working, perhaps there's something left behind (in the registry or else where).
The problem is I am stucked now and not able to use Insight :-(
Any ideas?
Thanks Fireball
Fireball
Dec 14th, 2009, 08:31 AM
Even when adding a new tc server instance the problem still remains the same. So it's some basic feature or library missing, but where and how to cope with the problem?
Fireball
Dec 14th, 2009, 09:58 AM
Oh my god, I must have been blind!
It's working now...
sandrews
Dec 14th, 2009, 10:22 AM
No worries, let us know how it goes from here.
Fireball
Dec 14th, 2009, 10:25 AM
Absolutly fabulous, I tested much on the working instance and it really is a great tool!
Thank you very much
Fireball
leebingate
Mar 18th, 2010, 11:16 PM
If you installed tc Server from the STS installer, it should just work. However, if you are trying to manually add a Server instance, make sure the following two directives are available in the context.xml file that is located in the Servers project.
<Valve className="com.springsource.metrics.collection.web.HttpReques tMetricCollectionValve"/>
<Loader loaderClass="com.springsource.tcserver.ltw.TomcatAspectJWeaving ClassLoader" useSystemClassLoaderAsParent="false"/>
Looks like there is a space between 'com.springsource.metrics.collection.web' and '.HttpRequestMetricCollectionValve'. The space was in my original post, I apologize.
The zip and exe installers should have the same result. The installer offers a smaller download size and the ability to selectively install components.
rsteppac
Mar 22nd, 2010, 06:18 AM
Hi,
I have the same problem: application does not show in insight after installing STS 2.3.1 (no previous version installedm, Win XP). I copypasted the additional valve configuration lines and I am getting the ClassNotFoundException for com.springsource.metrics.collection.web.HttpReques tMetricCollectionValve (I have removed the spaces in the two lines posted) and right so. The class is not part of the tc server runtime.
Maybe Fireball could give some insight on what additional step are needed to get it to work?
Thanks!
sandrews
Mar 22nd, 2010, 09:04 AM
The package names have changed with Spring Insight 1.0.0.M2 which is included with STS 2.3.1. The context.xml file should include:
<Valve className="com.springsource.insight.collection.tcserver.HttpR equestMetricCollectionValve"/>
<Loader loaderClass="com.springsource.insight.collection.tcserver.ltw.T omcatAspectJWeavingClassLoader" useSystemClassLoaderAsParent="false"/>
<Listener className="com.springsource.insight.collection.tcserver.lifec ycle.ApplicationLifecycleCollectionListener" />
rsteppac
Mar 22nd, 2010, 09:38 AM
There is no class HttpRequestMetricCollectionValve in the tc runtime.
There was a HttpRequestOperationCollectionValve configured already. Do I need the metric collection valve in addion to the operation collection valve?
sandrews
Mar 22nd, 2010, 09:40 AM
The class was renamed.
STS should work out of the box, is there something special you are trying to accomplish?
rsteppac
Mar 22nd, 2010, 09:51 AM
I expected STS to work out of the box. ;-)
Well, I do not think that I am trying to accomplish something special. But I am new to Spring and its tool chain. So this really could be a beginners problem...
I am in the process of taking over several smallish Spring web applications. I downloaded and installed STS, imported one of the existing eclipse projects into it, added the Spring nature to the project, deployed it to tc, and expected it to show up in Insight. But the Insight activity graph is empty and I do not see the application selector in the right hand corner above the activity graph.
rsteppac
Mar 23rd, 2010, 07:06 AM
To make sure the problem is not with the existing application I ahve created and deployed a simple hello world web app based on Spring 2.5.6 (all in STS). And it does not show up in the Insight either.
sandrews
Mar 23rd, 2010, 09:57 AM
With STS 2.3.1 and later, Spring Insight is installed but disabled by default. The first time you start tc Server, STS should prompt if you want to enable Insight.
If you have passed this dialog, you can double click on "SpringSource tc Server v6.0" in the Servers tab to open the server overview. There will be a section for "Spring Insight" on the right hand side toward the top. Check the box for "Enable gathering of metrics", save the change and restart tc Server.
That should get it going.
-Scott
rsteppac
Mar 23rd, 2010, 10:17 AM
That was it. Should have checked that... But I am pretty sure I selected "yes" in the dialog, that comes up when the server is started first time. I am not sure I clicked "remember my decision", but as the dialog did not pop up again I thought I was good.
Anyways, thanks for the hint!!
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.