Announcement Announcement Module
Collapse
No announcement yet.
error when installing agent on Jboss server.. Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • error when installing agent on Jboss server..

    Hi,

    I am getting this error after installing the Insight agent on Jboss 5.1.2 server.. Here is what I have done so far:
    1. I installed the dashboard on a tc server.
    2. Then downloaded the agent jar from "Administration" tab.
    3. installed the agent jar on jboss's server directory.
    4. the agent got installed successfully.
    But then when I restart jboss server, I am seeing this error in the logs. Can you let me know what is missing?

    Thanks for your help!!



    18:27:59,381 ERROR [[/insight-agent]] Error configuring application listener of class com.springsource.insight.classpath.InsightClassPat hMunger
    java.lang.NoClassDefFoundError: com/springsource/insight/InsightAgentPluginsHelper
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader. java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :615)
    at org.jboss.classloader.spi.base.BaseClassLoader.acc ess$200(BaseClassLoader.java:67)
    at org.jboss.classloader.spi.base.BaseClassLoader$2.r un(BaseClassLoader.java:633)
    at org.jboss.classloader.spi.base.BaseClassLoader$2.r un(BaseClassLoader.java:592)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.classloader.spi.base.BaseClassLoader.loa dClassLocally(BaseClassLoader.java:591)
    at org.jboss.classloader.spi.base.BaseClassLoader.loa dClassLocally(BaseClassLoader.java:568)
    at org.jboss.classloader.spi.base.BaseDelegateLoader. loadClass(BaseDelegateLoader.java:135)
    at org.jboss.classloader.spi.filter.FilteredDelegateL oader.loadClass(FilteredDelegateLoader.java:131)
    at org.jboss.classloader.spi.base.ClassLoadingTask$Th readTask.run(ClassLoadingTask.java:455)
    at org.jboss.classloader.spi.base.ClassLoaderManager. nextTask(ClassLoaderManager.java:267)
    at org.jboss.classloader.spi.base.ClassLoaderManager. process(ClassLoaderManager.java:166)
    at org.jboss.classloader.spi.base.BaseClassLoaderDoma in.loadClass(BaseClassLoaderDomain.java:287)
    at org.jboss.classloader.spi.base.BaseClassLoaderDoma in.loadClass(BaseClassLoaderDomain.java:1163)
    at org.jboss.classloader.spi.base.BaseClassLoader.loa dClassFromDomain(BaseClassLoader.java:862)
    at org.jboss.classloader.spi.base.BaseClassLoader.doL oadClass(BaseClassLoader.java:502)
    at org.jboss.classloader.spi.base.BaseClassLoader.loa dClass(BaseClassLoader.java:447)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 95)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
    at org.jboss.web.tomcat.service.TomcatInjectionContai ner.newInstance(TomcatInjectionContainer.java:249)
    at org.jboss.web.tomcat.service.TomcatInjectionContai ner.newInstance(TomcatInjectionContainer.java:243)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3859)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4389)
    at org.jboss.web.tomcat.service.deployers.TomcatDeplo yment.performDeployInternal(TomcatDeployment.java: 313)
    at org.jboss.web.tomcat.service.deployers.TomcatDeplo yment.performDeploy(TomcatDeployment.java:145)
    at org.jboss.web.deployers.AbstractWarDeployment.star t(AbstractWarDeployment.java:461)
    at org.jboss.web.deployers.WebModule.startModule(WebM odule.java:122)
    at org.jboss.web.deployers.WebModule.start(WebModule. java:97)
    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.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:157)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:96)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:668)
    at org.jboss.system.microcontainer.ServiceProxy.invok e(ServiceProxy.java:206)
    at $Proxy38.start(Unknown Source)
    at org.jboss.system.microcontainer.StartStopLifecycle Action.installAction(StartStopLifecycleAction.java :42)
    at org.jboss.system.microcontainer.StartStopLifecycle Action.installAction(StartStopLifecycleAction.java :37)
    at org.jboss.dependency.plugins.action.SimpleControll erContextAction.simpleInstallAction(SimpleControll erContextAction.java:62)
    at org.jboss.dependency.plugins.action.AccessControll erContextAction.install(AccessControllerContextAct ion.java:71)
    at org.jboss.dependency.plugins.AbstractControllerCon textActions.install(AbstractControllerContextActio ns.java:51)
    at org.jboss.dependency.plugins.AbstractControllerCon text.install(AbstractControllerContext.java:348)
    at org.jboss.system.microcontainer.ServiceControllerC ontext.install(ServiceControllerContext.java:297)
    at org.jboss.dependency.plugins.AbstractController.in stall(AbstractController.java:1652)
    at org.jboss.dependency.plugins.AbstractController.in crementState(AbstractController.java:938)
    at org.jboss.dependency.plugins.AbstractController.re solveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.re solveContexts(AbstractController.java:988)
    at org.jboss.dependency.plugins.AbstractController.ch ange(AbstractController.java:826)
    at org.jboss.dependency.plugins.AbstractController.ch ange(AbstractController.java:556)
    at org.jboss.system.ServiceController.doChange(Servic eController.java:688)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:460)
    at org.jboss.system.deployers.ServiceDeployer.start(S erviceDeployer.java:163)
    at org.jboss.system.deployers.ServiceDeployer.deploy( ServiceDeployer.java:99)
    at org.jboss.system.deployers.ServiceDeployer.deploy( ServiceDeployer.java:46)
    at org.jboss.deployers.spi.deployer.helpers.AbstractS impleRealDeployer.internalDeploy(AbstractSimpleRea lDeployer.java:62)
    at org.jboss.deployers.spi.deployer.helpers.AbstractR ealDeployer.deploy(AbstractRealDeployer.java:55)
    at org.jboss.deployers.plugins.deployers.DeployerWrap per.deploy(DeployerWrapper.java:179)
    at org.jboss.deployers.plugins.deployers.DeployersImp l.doDeploy(DeployersImpl.java:1454)
    at org.jboss.deployers.plugins.deployers.DeployersImp l.doInstallParentFirst(DeployersImpl.java:1172)
    at org.jboss.deployers.plugins.deployers.DeployersImp l.doInstallParentFirst(DeployersImpl.java:1193)
    at org.jboss.deployers.plugins.deployers.DeployersImp l.install(DeployersImpl.java:1113)
    at org.jboss.dependency.plugins.AbstractControllerCon text.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.in stall(AbstractController.java:1652)
    at org.jboss.dependency.plugins.AbstractController.in crementState(AbstractController.java:938)
    at org.jboss.dependency.plugins.AbstractController.re solveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.re solveContexts(AbstractController.java:988)
    at org.jboss.dependency.plugins.AbstractController.ch ange(AbstractController.java:826)
    at org.jboss.dependency.plugins.AbstractController.ch ange(AbstractController.java:556)
    ......
    ......
    Caused by: java.lang.ClassNotFoundException: com.springsource.insight.InsightAgentPluginsHelper
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at org.jboss.classloader.spi.base.BaseClassLoaderDoma in.loadClass(BaseClassLoaderDomain.java:311)
    at org.jboss.classloader.spi.base.BaseClassLoaderDoma in.loadClass(BaseClassLoaderDomain.java:1163)
    at org.jboss.classloader.spi.base.BaseClassLoader.loa dClassFromDomain(BaseClassLoader.java:862)
    at org.jboss.classloader.spi.base.BaseClassLoader.doL oadClass(BaseClassLoader.java:502)
    at org.jboss.classloader.spi.base.BaseClassLoader.loa dClass(BaseClassLoader.java:447)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
    ... 92 more

  • #2
    Assuming you are using insight 1.8.3, there should be an install log file under ~/.insight

    Can you attach it?

    Comment


    • #3
      Originally posted by shachar View Post
      Assuming you are using insight 1.8.3, there should be an install log file under ~/.insight

      Can you attach it?
      I dont see an install log.. these are the files in the logs directory on the tc server side..

      11/19/2012 06:18 PM 6,415 catalina.2012-11-19.log
      11/20/2012 09:18 AM 523,096 insight.log
      11/19/2012 06:18 PM 966 localhost.2012-11-19.log
      11/19/2012 06:07 PM 20,254 localhost_access_log.2012-11-19.txt
      11/20/2012 09:17 AM 4,577 vf.tc-events.txt
      11/19/2012 06:17 PM 134 vf.tc-license.cfg
      11/19/2012 06:18 PM 8,016 wrapper.log

      On the agent side, I don't see any install logs for insight... Can you please let me know which one you are looking for exactly?

      Comment


      • #4
        Never mind, I found the logs. I figured out the insight-agent.war file is missing a couple of jar files:

        I added these jars to the web-inf/lib directory inside the .war file.
        insight-util-1.8.3.RELEASE.jar
        insight-intercept-1.8.3.RELEASE.jar

        I got past the
        Code:
        java.lang.ClassNotFoundException: com.springsource.insight.InsightAgentPluginsHelper
        error. But now I am getting this error:
        Code:
        11:28:42,236 SEVERE [InsightClassPathMunger] Context not initialized by an InsightClassLoader
        11:28:42,236 SEVERE [InsightClassPathMunger] Thus, I am not able to add conf or plugins to the classpath
        11:28:42,237 SEVERE [InsightClassPathMunger] I will, however, try to configure the logging subsystem
        11:28:42,253 INFO  [[/insight-agent]] Initializing Spring root WebApplicationContext
        11:28:42,939 ERROR [ContextLoader] Context initialization failed
        java.lang.IllegalArgumentException: URI is not hierarchical
        	at java.io.File.<init>(File.java:363)
        	at org.jboss.net.protocol.file.FileURLConnection.<init>(FileURLConnection.java:62)
        	at org.jboss.net.protocol.file.Handler.openConnection(Handler.java:40)
        	at java.net.URL.openConnection(URL.java:945)
        	at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:121)
        	at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)
        	at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
        	at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
        	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
        	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)
        	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
        	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
        	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
        	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:313)
        	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
        	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
        	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)
        	at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        	at java.lang.reflect.Method.invoke(Method.java:597)
        	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
        	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
        	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
        	at $Proxy38.start(Unknown Source)
        	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
        	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
        	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
        	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
        	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
        	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
        	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
        	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
        	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
        	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
        	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
        	at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
        	at org.jboss.system.ServiceController.start(ServiceController.java:460)
        	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
        	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
        	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
        	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
        	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
        	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
        	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
        	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
        	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
        	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
        	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
        	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
        	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
        	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
        	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
        	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
        	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
        	at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
        	at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
        	at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
        	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
        	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
        	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        	at java.lang.Thread.run(Thread.java:662)

        Comment


        • #5
          The problem is that JBOSS is not loading the insight jars that are located under <jboss dir>/lib

          Try to do the next steps:
          1. Move insight jars (insight-*.jar) from <jboss main folder>/lib to <jboss profit dir>/lib
          2. Edit <jboss main folder>/bin/run.sh and delete all references to EXTRA_INSIGHT_LIBS
          3. Delete the jars you added to the insight-agent.war
          4. Start the server

          Verfiy that you can see the other insight properties on server startup:
          Code:
          =========================================================================
          
            JBoss Bootstrap Environment
          
            JBOSS_HOME: /work/env/containers-inuse/jboss-5.1.0.GA
          
            JAVA: /Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/bin/java
          
            JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 
          
                             -Dinsight.base=/work/env/containers-inuse/jboss-5.1.0.GA/insight 
                             -Dinsight.logs=/work/env/containers-inuse/jboss-5.1.0.GA/server/default/log 
                             -Dinsight.enabled=true 
                             -Daspectj.overweaving=true 
                             -javaagent:/work/env/containers-inuse/jboss-5.1.0.GA/bin/aspectjweaver-1.6.12.M2.jar
          I also noticed that there is a wrapper.log file. If you are using a service wrapper you will have to add the above properties to your wrapper.conf file

          Comment


          • #6
            thank you so much for the reply... I will try these steps today and let you know how it goes.

            couple of Other questions..
            1. FYI I downloaded the insight-agent.war from dashboard and I am trying to install it on Jboss. in that case do I need to use SSL or can I get by with just nio?

            2. if the insight.war file deploys properly on Jboss, will the agent automatically connect to the dashboard tc serer? i.e will I see the agent under the admisitration tab on dashboard, and will it also show all applicAtions automatically?

            Comment


            • #7
              I am setting up the agent on jboss server on my windows desktop. The variables were not set, so I added them to the Jboss launch configuration. As you suggested, I removed the jars I added to the insight-agent.war file, and added them to the jboss/lib directory. But I still get the same error:

              11:28:42,236 SEVERE [InsightClassPathMunger] Context not initialized by an InsightClassLoader
              11:28:42,236 SEVERE [InsightClassPathMunger] Thus, I am not able to add conf or plugins to the classpath
              11:28:42,237 SEVERE [InsightClassPathMunger] I will, however, try to configure the logging subsystem
              11:28:42,253 INFO [[/insight-agent]] Initializing Spring root WebApplicationContext
              11:28:42,939 ERROR [ContextLoader] Context initialization failed
              java.lang.IllegalArgumentException: URI is not hierarchical
              at java.io.File.<init>(File.java:363)
              at org.jboss.net.protocol.file.FileURLConnection.<ini t>(FileURLConnection.java:62)
              at org.jboss.net.protocol.file.Handler.openConnection (Handler.java:40)
              at java.net.URL.openConnection(URL.java:945)
              at org.springframework.core.io.UrlResource.getInputSt ream(UrlResource.java:121)
              at org.springframework.core.io.support.PropertiesLoad erSuppo



              Any other suggestions?

              Comment


              • #8
                11:28:42,236 SEVERE [InsightClassPathMunger] Context not initialized by an InsightClassLoader
                11:28:42,236 SEVERE [InsightClassPathMunger] Thus, I am not able to add conf or plugins to the classpath
                11:28:42,237 SEVERE [InsightClassPathMunger] I will, however, try to configure the logging subsystem


                Those lines mean that no weaving is taking place.

                Can you please describe how you are starting the server? is there a java service wrapper (like this one)?

                Did you moved the insight jar files from jboss/lib to <jboss profile>/lib? the profiles are located under <jboss main dir>/server, and the default profile called "default". Make sure to move the jar files from <jboss main dir>/lib to <jboss main dir>/server/default/lib (if you are using other profile change the "default" with the profile you are using)

                Comment


                • #9
                  Yes, I have copied all insight jars to my jboss profile directory:

                  11/19/2012 05:45 PM 22,491,694 insight-agent-1.8.3.RELEASE.jar
                  11/21/2012 12:19 PM 2,780 insight-annotation-1.8.3.RELEASE.jar
                  11/21/2012 12:19 PM 18,679 insight-bootstrap-jboss-5.1.0.GA-1.8.3.RELEASE.jar
                  11/19/2012 05:45 PM 18,195 insight-collection-tcserver-1.8.3.RELEASE.jar
                  11/21/2012 12:19 PM 125,392 insight-intercept-1.8.3.RELEASE.jar
                  11/21/2012 12:19 PM 81,927 insight-util-1.8.3.RELEASE.jar

                  I am starting my jboss server from within eclipse (jboss dev studio).
                  I have added these parameters to the server launch configuration:

                  Code:
                  -Djboss.server.base.url=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/ -Dinsight.base=C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\insight
                   -Dinsight.logs=C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\server\test\log -Dinsight.enabled=true -Daspectj.overweaving=true -Djavaagent=C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\bin\aspectjweaver-1.6.12.M2.jar

                  Even after I moved the jar files to profile/lib (in my case it is : C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\server\test\lib), I still seeing these messages:

                  13:42:16,583 INFO [TomcatDeployment] deploy, ctxPath=/admin-console
                  13:42:16,849 INFO [config] Initializing Mojarra (1.2_13-b01-FCS) for context '/admin-console'
                  13:42:19,440 INFO [TomcatDeployment] deploy, ctxPath=/
                  13:42:19,867 INFO [TomcatDeployment] deploy, ctxPath=/insight-agent
                  13:42:20,260 SEVERE [InsightClassPathMunger] Context not initialized by an InsightClassLoader
                  13:42:20,260 SEVERE [InsightClassPathMunger] Thus, I am not able to add conf or plugins to the classpath
                  13:42:20,260 SEVERE [InsightClassPathMunger] I will, however, try to configure the logging subsystem
                  13:42:20,266 INFO [[/insight-agent]] Initializing Spring root WebApplicationContext
                  13:42:21,268 ERROR [ContextLoader] Context initialization failed
                  java.lang.IllegalArgumentException: URI is not hierarchical
                  at java.io.File.<init>(File.java:363)
                  at org.jboss.net.protocol.file.FileURLConnection.<ini t>(FileURLConnection.java:62)
                  at org.jboss.net.protocol.file.Handler.openConnection (Handler.java:40)
                  at java.net.URL.openConnection(URL.java:945)
                  at org.springframework.core.io.UrlResource.getInputSt ream(UrlResource.java:121)
                  at org.springframework.core.io.support.PropertiesLoad erSupport.loadProperties(PropertiesLoaderSupport.j ava:181)
                  at org.springframework.core.io.support.PropertiesLoad erSupport.mergeProperties(PropertiesLoaderSupport. java:161)
                  at org.springframework.beans.factory.config.PropertyR esourceConfigurer.postProcessBeanFactory(PropertyR esourceConfigurer.java:69)

                  Comment


                  • #10
                    The javaagent syntax is wrong, instead of:
                    Code:
                    -Djavaagent=C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\bin\aspectjweaver-1.6.12.M2.jar
                    Use:
                    Code:
                    -javaagent:C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\bin\aspectjweaver-1.6.12.M2.jar

                    Comment


                    • #11
                      Thank you! that greatly helped. Once I put that in JVM arguments, I can see this message in the logs:

                      Code:
                      ASPECTJ: aspectj.overweaving=true: overweaving switched ON
                      But for some reason, it is still not finding the insight.properties file. I am getting these messages in the logs:

                      Code:
                      22:09:32,251 INFO  [Catalina] Server startup in 45 ms
                      22:09:32,297 WARNING [Insight] FileNotFoundException while reading from [C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\bin\null\webapps\ROOT\insight\conf\insight.properties]: null\webapps\ROOT\insight\conf\insight.properties (The system cannot find the path specified)
                      Nov 25, 2012 10:09:32 PM com.springsource.insight.Insight readPropsFromFile
                      WARNING: FileNotFoundException while reading from [C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\bin\null\webapps\ROOT\insight\conf\insight.properties]: null\webapps\ROOT\insight\conf\insight.properties (The system cannot find the path specified)
                      22:09:32,297 INFO  [TomcatDeployment] deploy, ctxPath=/juddi
                      22:09:32,922 INFO  [RegistryServlet] Loading jUDDI configuration.
                      followed by these messages:

                      Code:
                      22:09:34,250 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                      22:09:34,531 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
                      Nov 25, 2012 10:09:34 PM com.sun.faces.config.ConfigureListener contextInitialized
                      INFO: Initializing Mojarra (1.2_13-b01-FCS) for context '/admin-console'
                      22:09:34,703 INFO  [config] Initializing Mojarra (1.2_13-b01-FCS) for context '/admin-console'
                      22:09:36,108 INFO  [TomcatDeployment] deploy, ctxPath=/
                      22:09:36,374 INFO  [TomcatDeployment] deploy, ctxPath=/insight-agent
                      22:09:36,530 INFO  [[/insight-agent]] Initializing Spring root WebApplicationContext
                      22:09:37,123 ERROR [ContextLoader] Context initialization failed
                      java.lang.IllegalArgumentException: URI is not hierarchical
                      	at java.io.File.<init>(File.java:363)
                      	at org.jboss.net.protocol.file.FileURLConnection.<init>(FileURLConnection.java:62)
                      	at org.jboss.net.protocol.file.Handler.openConnection(Handler.java:40)
                      	at java.net.URL.openConnection(URL.java:945)
                      Please help, I really appreciate your help so far..

                      Comment


                      • #12
                        1. (Speaking the obvious) - verify that insight.properties file does exist under C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\insight\conf
                        2. Try to use quotes around insight.base value and to change the file separator to linux style:
                          Code:
                          -Dinsight.base="C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/insight"

                        Comment


                        • #13
                          Originally posted by shachar View Post
                          1. Try to use quotes around insight.base value and to change the file separator to linux style:
                            Code:
                            -Dinsight.base="C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/insight"
                          Once I changed the seperator to unix style, I dont see the filenotfound error anymore. But I am still getting the same exception:

                          Code:
                          06:17:37,730 INFO  [config] Initializing Mojarra (1.2_13-b01-FCS) for context '/admin-console'
                          Nov 26, 2012 6:17:37 AM com.sun.faces.config.ConfigureListener contextInitialized
                          INFO: Initializing Mojarra (1.2_13-b01-FCS) for context '/admin-console'
                          06:17:39,158 INFO  [TomcatDeployment] deploy, ctxPath=/
                          06:17:39,449 INFO  [TomcatDeployment] deploy, ctxPath=/insight-agent
                          06:17:39,628 INFO  [[/insight-agent]] Initializing Spring root WebApplicationContext
                          06:17:40,201 ERROR [ContextLoader] Context initialization failed
                          java.lang.IllegalArgumentException: URI is not hierarchical
                          	at java.io.File.<init>(File.java:363)
                          	at org.jboss.net.protocol.file.FileURLConnection.<init>(FileURLConnection.java:62)
                          	at org.jboss.net.protocol.file.Handler.openConnection(Handler.java:40)
                          	at java.net.URL.openConnection(URL.java:945)
                          	at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:121)
                          	at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)
                          	at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)

                          I have attached the jboss server log. Please let me know if there is still something missing. Thanks for your help again.

                          Comment


                          • #14
                            I have attached boot.log file as well..

                            Comment


                            • #15
                              Never saw that exception before... ... (Shooting in the dark) change insight.base value to:
                              Code:
                              -Dinsight.base="/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/insight"

                              Comment

                              Working...
                              X