issues with javaagent command
line switch
From: Arshan Dabirsiaghi
[mailto:arshan.dabirsia...@aspectsecurity.com]
Subject: Major Tomcat classloading issues with javaagent command line
switch
The bottom line appears to be this: across Tomcat and JDK versions,
you
can't use the javaagent switch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Arshan,
On 4/6/2010 12:04 AM, Arshan Dabirsiaghi wrote:
The bottom line appears to be this: across Tomcat and JDK versions, you
can't use the javaagent switch and have a working web app.
This works for me under the following environment:
$
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Arshan,
On 4/6/2010 11:18 AM, Christopher Schultz wrote:
The command line for my running JVM looks like this:
/usr/bin/java -Dnop -Xmx64M
-agentpath:/home/cschultz/yjp-8.0.6/bin/linux-x86-32/libyjpagent.so=
Sorry, I didn't see that you were
the agent jar
fixed the problem.
Thanks!
Arshan
-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Tuesday, April 06, 2010 11:50 AM
To: Tomcat Users List
Subject: Re: Major Tomcat classloading issues with javaagent command line switch
-BEGIN PGP
2010/4/7 Arshan Dabirsiaghi arshan.dabirsia...@aspectsecurity.com:
Just to close the loop here, the problem was that the class was being loaded
twice - once from inside the *agent* jar, and another duplicate later from
WEB-INF/classes. I guess Tomcat or Java was confused as to which version
From: Arshan Dabirsiaghi [mailto:arshan.dabirsia...@aspectsecurity.com]
Subject: Major Tomcat classloading issues with javaagent command line
switch
The bottom line appears to be this: across Tomcat and JDK versions, you
can't use the javaagent switch and have a working web app.
Wrong