> You might be able to pass it via the JAVA_OPTS variable.  Basically the goal 
> is to copy the openejb-javaagent-3.x.x.jar into the tomcat.home/lib/ 
> directory and make sure this java option is getting passed to the jvm:
>
>  -javaagent:$CATALINA_HOME/lib/openejb-javaagent-3.x.x.jar
>
> When the agent is specified on the java command line it won't try and attach 
> itself dynamically, which should prevent that error message you were seeing.

I take a look at my Linux box and see nothing about -javaagent in
startup script or openejb-javaagent-3.1.jar in tomcat6/lib/

openejb-javaagent-3.1.jar is present under
tomcat6/webapps/openejb/lib/openejb-javaagent-3.1.jar

The installation on the Linux box is exactly the same that on Snow but works:

Here is my JAVA_OPTS :

JAVA_OPTS="-Xms256m -Xmx256m -Dcom.sun.management.jmxremote.port=19952
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false -Duser.language=fr
-Djava.awt.headless=true"

>From what you say, I didn't understand how it could works on Linux...

Reply via email to