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

  • #16
    Thank you, that resolved the "URI" exception I have been getting.. But now I get a bunch of other exceptions like this:

    Code:
    2012-11-26 09:45:21,497 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/insight-agent
    2012-11-26 09:45:21,683 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/insight-agent]] (main) Initializing Spring root WebApplicationContext
    2012-11-26 09:45:22,435 ERROR [org.springframework.web.context.ContextLoader] (main) Context initialization failed
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentInterceptAttacher' defined in FileHandler@1383251324[path=WEB-INF/classes/com/springsource/insight/agent/AgentInterceptAttacher.class context=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/ real=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/WEB-INF/classes/com/springsource/insight/agent/AgentInterceptAttacher.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.intercept.InterceptConfiguration]: : Error creating bean with name 'traceAnalysisWorkflowFactoryBean' defined in FileHandler@764804717[path=WEB-INF/classes/com/springsource/insight/agent/trace/analysis/TraceAnalysisWorkflowFactoryBean.class context=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/ real=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/WEB-INF/classes/com/springsource/insight/agent/trace/analysis/TraceAnalysisWorkflowFactoryBean.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.trace.analysis.TraceAnalysisService]: : Error creating bean with name 'agentHeartbeater' defined in class path resource [com/springsource/insight/agent/app-config-base.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.agent.command.AgentCommandSender]: : Error creating bean with name 'agentCommandSender' defined in FileHandler@649644295[path=WEB-INF/classes/com/springsource/insight/agent/command/AgentCommandSender.class context=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/ real=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/WEB-INF/classes/com/springsource/insight/agent/command/AgentCommandSender.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.command.CommandSender]: : No matching bean of type [com.springsource.insight.command.CommandSender] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.springsource.insight.command.CommandSender] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentCommandSender' defined in FileHandler@649644295[path=WEB-INF/classes/com/springsource/insight/agent/command/AgentCommandSender.class context=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/ real=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/WEB-INF/classes/com/springsource/insight/agent/command/AgentCommandSender.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.command.CommandSender]: : No matching bean of type [com.springsource.insight.command.CommandSender] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.springsource.insight.command.CommandSender] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentHeartbeater' defined in class path resource [com/springsource/insight/agent/app-config-base.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.agent.command.AgentCommandSender]: : Error creating bean with name 'agentCommandSender' defined in FileHandler@649644295[path=WEB-INF/classes/com/springsource/insight/agent/command/AgentCommandSender.class context=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/ real=file:/C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/tmp/a1y2v3p-a525ip-h9zpkgjv-1-h9zpl39w-ay/insight-agent.war/WEB-INF/classes/com/springsource/insight/agent/command/AgentCommandSender.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.springsource.insight.command.CommandSender]: : No matching bean of type
    I have attached a the logs containing the details of all the exceptions.. Have you seen this before?

    Thanks again for your quick response & help!!!

    Comment


    • #17
      I saw it before, can you attach the tree structure of insight.base?

      Code:
      cd C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\insight
      tree /f

      Comment


      • #18
        Here is the output:

        C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\insight>tree /f
        Folder PATH listing for volume Local Disk
        Volume serial number is 8A5D-AC4A
        C:.
        ├───agent-plugins
        │ insight-agent-activemq-1.8.3.RELEASE.jar

        ├───collection-plugins
        │ │ insight-collection-1.8.3.RELEASE.jar
        │ │ insight-plugin-annotation-1.8.3.RELEASE.jar
        │ │ insight-plugin-apache-httpclient3-1.8.3.RELEASE.jar
        │ │ insight-plugin-apache-httpclient4-1.8.3.RELEASE.jar
        │ │ insight-plugin-blazeds-1.8.3.RELEASE.jar
        │ │ insight-plugin-ejb3-1.8.3.RELEASE.jar
        │ │ insight-plugin-gemfire-1.8.3.RELEASE.jar
        │ │ insight-plugin-grails-1.8.3.RELEASE.jar
        │ │ insight-plugin-hibernate-1.8.3.RELEASE.jar
        │ │ insight-plugin-javax-mail-1.8.3.RELEASE.jar
        │ │ insight-plugin-jax-rs-1.8.3.RELEASE.jar
        │ │ insight-plugin-jdbc-1.8.3.RELEASE.jar
        │ │ insight-plugin-jms-1.8.3.RELEASE.jar
        │ │ insight-plugin-jws-1.8.3.RELEASE.jar
        │ │ insight-plugin-method-endpoint-1.8.3.RELEASE.jar
        │ │ insight-plugin-mongodb-1.8.3.RELEASE.jar
        │ │ insight-plugin-rabbitmq-client-1.8.3.RELEASE.jar
        │ │ insight-plugin-servlet-1.8.3.RELEASE.jar
        │ │ insight-plugin-spring-core-1.8.3.RELEASE.jar
        │ │ insight-plugin-spring-integration-1.8.3.RELEASE.jar
        │ │ insight-plugin-spring-tx-1.8.3.RELEASE.jar
        │ │ insight-plugin-spring-web-1.8.3.RELEASE.jar
        │ │ insight-plugin-tomcat-1.8.3.RELEASE.jar
        │ │
        │ └───custom-aop
        │ └───META-INF
        │ aop.xml

        ├───conf
        │ insight.properties

        └───sigar-lib
        libsigar-amd64-freebsd-6.so
        libsigar-amd64-linux.so
        libsigar-amd64-solaris.so
        libsigar-ia64-hpux-11.sl
        libsigar-ia64-linux.so
        libsigar-pa-hpux-11.sl
        libsigar-ppc-aix-5.so
        libsigar-ppc-linux.so
        libsigar-ppc64-aix-5.so
        libsigar-ppc64-linux.so
        libsigar-s390x-linux.so
        libsigar-sparc-solaris.so
        libsigar-sparc64-solaris.so
        libsigar-universal-macosx.dylib
        libsigar-universal64-macosx.dylib
        libsigar-x86-freebsd-5.so
        libsigar-x86-freebsd-6.so
        libsigar-x86-linux.so
        libsigar-x86-solaris.so
        sigar-amd64-winnt.dll
        sigar-x86-winnt.dll
        sigar-x86-winnt.lib


        C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\insight>

        Comment


        • #19
          Please find the tree output attached.

          Thanks!

          Comment


          • #20
            All is there...
            1. Does the next files exist under C:/JBoss/EnterprisePlatform-5.1.2/jboss-eap-5.1/jboss-as/server/cos/lib?
              1. insight-annotation-1.8.3.RELEASE.jar
              2. insight-bootstrap-jboss-5.1.0.GA-1.8.3.RELEASE.jar
              3. insight-intercept-1.8.3.RELEASE.jar
              4. insight-util-1.8.3.RELEASE.jar

            Comment


            • #21
              Yes.. I also have this file in there... insight-bootstrap-jboss-5.1.0.GA-1.8.3.RELEASE.jar


              Code:
              C:\Users\subbagu>cd C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\server\cos\lib
              
              C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\server\cos\lib>dir insight*
               Volume in drive C is Local Disk
               Volume Serial Number is 8A5D-AC4A
              
               Directory of C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\server\cos\lib
              
              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
                             5 File(s)        246,973 bytes
                             0 Dir(s)  270,290,960,384 bytes free

              Comment


              • #22
                Please delete insight-collection-tcserver-1.8.3.RELEASE.jar and try to start the server

                Comment


                • #23
                  I just did, I am seeing the same exceptions..
                  Code:
                  org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentInterceptAttacher' 
                  
                  Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'traceAnalysisWorkflowFactoryBean': Requested bean is currently in creation: Is there an unresolvable circular reference?
                  
                  Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'agentHeartbeater': Requested bean is currently in creation: Is there an unresolvable circular reference?

                  Comment


                  • #24
                    I think I copied the insight-bootstrap-jboss-5.1.0.GA-1.8.3.RELEASE.jar file myself.. I tried deleting that file also from C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\server\cos\lib

                    It did not help either.. Do you have any other suggestions?

                    Comment


                    • #25
                      I did the next steps on my eclipse (I'm using mac):
                      1. Installed jboss developer studio
                      2. Configured a new server with JBOSS 5.1.0.GA (community edition - I don't have a license for the enterprise edition) runtime - server is located under /work/env/eclipse-runtimes/jboss-5.1.0.GA
                      3. Opened the newly created server launch configuration:
                        • Added the next values to "Program Arguments":
                          Code:
                          -L /work/env/eclipse-runtimes/jboss-5.1.0.GA/lib/insight-annotation-1.8.3.RELEASE.jar -L /work/env/eclipse-runtimes/jboss-5.1.0.GA/lib/insight-bootstrap-jboss-5.1.0.GA-1.8.3.RELEASE.jar -L /work/env/eclipse-runtimes/jboss-5.1.0.GA/lib/insight-intercept-1.8.3.RELEASE.jar -L /work/env/eclipse-runtimes/jboss-5.1.0.GA/lib/insight-util-1.8.3.RELEASE.jar
                        • Added the next values to "VM arguments":
                          Code:
                          -Dinsight.base=/work/env/eclipse-runtimes/jboss-5.1.0.GA/insight -javaagent:/work/env/eclipse-runtimes/jboss-5.1.0.GA/bin/aspectjweaver-1.6.12.M2.jar -Dinsight.logs=/work/env/eclipse-runtimes/jboss-5.1.0.GA/server/default/log -Dinsight.enabled=true -Daspectj.overweaving=true -Dorg.aspectj.tracing.factory=default -Djava.library.path=/work/env/eclipse-runtimes/jboss-5.1.0.GA/insight/sigar-lib
                      4. Started the server

                      If you are going to follow the above, you will to start from scratch:
                      1. New server
                      2. Delete the folder <user home dir>/.insight
                      3. Download a new insight agent installer
                      4. Install the agent

                      If all goes well you should see the next lines in the console:
                      Code:
                      09:58:54,511 INFO  [CopyMechanism] VFS temp dir: /work/env/eclipse-runtimes/jboss-5.1.0.GA/server/default/tmp
                      09:58:54,512 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                      09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] *********************************************************
                      09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] * JBossVFSClassLoaderPolicyAspect constructed via org.jboss.bootstrap.NoAnnotationURLClassLoader@39617189
                      09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] *********************************************************
                      Attachment
                      Attached Files

                      Comment


                      • #26
                        Thank you for the response. I will try this out tomorrow and let you know if it works.

                        Comment


                        • #27
                          I created an empty jboss profile with just the insight.war. It seems to start fine without any issues. I can see it connected to the dashboard, and when I look in the dashboard, it shows an agent as well.

                          Thanks for all your help. I will try deploying my app now and see how it goes.

                          Comment


                          • #28
                            However I don't see the line you mentioned:
                            Code:
                            09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] *********************************************************
                            09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] * JBossVFSClassLoaderPolicyAspect constructed via org.jboss.bootstrap.NoAnnotationURLClassLoader@39617189
                            09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] *********************************************************
                            Is that still ok?

                            Comment


                            • #29
                              Now I can see my app in the dashboard, but I don't see enough details yet.. As I click on different links on my application, I am able to see only the spring remoting calls to service layer, but it does not show details on service classes/methods or data layer (hibernate).
                              Attached screehshot shows how the app looks on the dashboard. But if I have to see more details, do I need to modify my application code so that it will work with spring-insight?

                              We are having performance issues with one of the modules which uses hibernate heavily.. I am trying to see if spring-insight can pinpoint
                              1. which of the service methods are taking too long
                              2. are there any hibernate issues?
                              3. are there any issues with the SQL queries that application/hibernate generates etc..

                              Please let me know if this is possible using spring insight..

                              Thanks!

                              Comment


                              • #30
                                Well, it's a promising start.

                                First start the server outside eclipse:
                                Code:
                                1. cd C:\JBoss\EnterprisePlatform-5.1.2\jboss-eap-5.1\jboss-as\bin
                                2. run.bat -b 0.0.0.0 -c cos
                                If the above worked and you see what ever you wanted to see, then the problem is with the way eclipse WTP for jboss works (I really have no idea how it works). If not, answer the questions below so I'll try to understand better your setup:
                                1. What are the "Program Arguments" you used?
                                2. Can you describe your application:
                                  • Is it a WAR or an EAR application?
                                  • Are you using a datasource defined in the server? or the datasource is defined in the application?
                                  • From where the Hibernate (or JDBC) jars are loaded?
                                    • from the application class loader - they are located in my-app/WEB-INF/lib
                                    • from the shared class loader - they are located in my-server/lib
                                    • from the system class loader - they are defined in the classpath
                                Last edited by shachar; Dec 9th, 2012, 03:06 AM.

                                Comment

                                Working...
                                X