Thread: error when installing agent on Jboss server..

1. Junior Member
Join Date
Nov 2012
Posts
24
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

2. Member
Join Date
Jan 2012
Posts
33
Please delete insight-collection-tcserver-1.8.3.RELEASE.jar and try to start the server

3. Junior Member
Join Date
Nov 2012
Posts
24
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?

4. Junior Member
Join Date
Nov 2012
Posts
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?

5. Member
Join Date
Jan 2012
Posts
33
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] *********************************************************
jboss-insight-agent-config.jpg

6. Junior Member
Join Date
Nov 2012
Posts
24
Thank you for the response. I will try this out tomorrow and let you know if it works.

7. Junior Member
Join Date
Nov 2012
Posts
24
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.

8. Junior Member
Join Date
Nov 2012
Posts
24
However I don't see the line you mentioned:
Code:
09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] *********************************************************
09:58:54,579 INFO  [JBossVFSClassLoaderPolicyAspect] *********************************************************
Is that still ok?

9. Junior Member
Join Date
Nov 2012
Posts
24
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!

10. Member
Join Date
Jan 2012
Posts
33
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 at 02:06 AM.

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•