activating the Java agent in JONAS
We need to use the Java agent utility in our web-application : packaged in classmexer.jar which has a “Pre-main class”.
With Tomcat 6.0 the below settings work perfectly in eclipse 3.6. => -javaagent:C:/classmexer.jar
However with JONAS when the same line is written for VM parameters -> Java agent is not started.
Please tell us the reason what is the process of activating the Java agent in JONAS.
Error log:
java.lang.IllegalStateException: Agent not initted at com.javamex.classmexer.Agent.getInstrumentation(Agent.java:33)