-
Jun 16th, 2011, 02:12 AM
#1
Problem with Instrumenting a sample app
Hi,
I have been trying to this link to try and instrument the sample application spring-security-samples-contacts-3.0.5.RELEASE.war.
I did follow the instructions and replaced the open source spring jars with the intrumented jars . Please find the list of jars under lib directory below.
aopalliance-1.0.jar
aspectjrt-1.6.8.jar
aspectjweaver-1.6.8.jar
com.springsource.management.adapter.jmx-3.0.5.RELEASE.jar
com.springsource.management.agent.bootstrap-3.0.5.RELEASE.jar
com.springsource.management.agent.config-3.0.5.RELEASE.jar
com.springsource.management.agent.control-3.0.5.RELEASE.jar
com.springsource.management.agent.discovery.applic ation.web-3.0.5.RELEASE.jar
com.springsource.management.agent.discovery.domain-3.0.5.RELEASE.jar
com.springsource.management.agent.discovery.resour ce-3.0.5.RELEASE.jar
com.springsource.management.agent.inventory-3.0.5.RELEASE.jar
com.springsource.management.agent.monitoring-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.applicationcontext-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.beans-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.context-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.context.support-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.jdbc-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.transaction.manager-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.tx-3.0.5.RELEASE.jar
com.springsource.management.instrumentation.spring framework.webmvc-3.0.5.RELEASE.jar
ehcache-1.6.2.jar
hessian-3.0.1.jar
hsqldb-1.8.0.10.jar
jcl-over-slf4j-1.6.0.jar
jstl-1.1.2.jar
log4j-1.2.14.jar
org.springframework.aop.instrumented-3.0.5.RELEASE.jar
org.springframework.asm.instrumented-3.0.5.RELEASE.jar
org.springframework.beans.instrumented-3.0.5.RELEASE.jar
org.springframework.context.instrumented-3.0.5.RELEASE.jar
org.springframework.context.support.instrumented-3.0.5.RELEASE.jar
org.springframework.core.instrumented-3.0.5.RELEASE.jar
org.springframework.expression.instrumented-3.0.5.RELEASE.jar
org.springframework.jdbc.instrumented-3.0.5.RELEASE.jar
org.springframework.transaction.instrumented-3.0.5.RELEASE.jar
org.springframework.web.instrumented-3.0.5.RELEASE.jar
org.springframework.web.servlet.instrumented-3.0.5.RELEASE.jar
slf4j-api-1.6.0.jar
slf4j-log4j12-1.6.0.jar
spring-security-acl-3.0.5.RELEASE.jar
spring-security-config-3.0.5.RELEASE.jar
spring-security-core-3.0.5.RELEASE.jar
spring-security-taglibs-3.0.5.RELEASE.jar
spring-security-web-3.0.5.RELEASE.jar
standard-1.1.2.jar
When I restart the server and tried to connect I get this exception.
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getDeclaredConstructor(Class.java: 1985)
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:104)
at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:251)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4701)
at org.apache.catalina.core.StandardContext$1.call(St andardContext.java:5204)
at org.apache.catalina.core.StandardContext$1.call(St andardContext.java:5199)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
What am I doing wrong?
Regards,
Pravin
-
Jun 16th, 2011, 11:44 PM
#2
Hey Pravin, First of all, I am sorry for not answering your question. I am new to Instrumentation and stuff.
I am not able to download the instrumented jars. It says I need to have a valid serial number to download. BTW, I don't have one. Can you please share with me on how you got it?
tx
ATS
-
Jun 17th, 2011, 05:12 AM
#3
Hi ATS,
Thanks for your reply. Have fixed it myself. I just missed to replace the dependacy attributes in pom.xml. It worked like a charm. Thanks for your efforts anyway.
Regards,
Pravin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules