I'm getting a trouble with tomcat 6.0.26 and and openjpa 2.0.0 javaagent.
I've added javaagent path to catalina.sh:
JAVA_OPTS="$JAVA_OPTS -javaagent:/usr/share/tomcat/lib/openjpa-1.2.2.jar"
and also put commons-lang-2.3.jar into tomcat lib directory. But still
tomcat throws an exeption on startu
> Try putting that jar into Tomcat's bin directory instead. It must be
available to the system classloader, not Tomcat's common classloader.
This had no effect. Tomcat in startup script sets the CLASSPATH variable to
"$CATALINA_HOME"/bin/bootstrap.jar, so i tried to modify it in catalina.sh
to "
Well, I set openjpa-all-2.0.0.jar as javaagent, and all startup exceptions
are gone. Still there is no runtime optimization available, an exeption is
being throwed when accessing the database:
Caused by:
org.apache.openjpa.persistence.ArgumentException: This configuration
disallows runtime opti
According to the advice from
http://openjpa.208410.n2.nabble.com/openjpa-javaagent-enhancement-with-tomcat-td5029993.html
this thread I switched to build-time enhancement, and it worked for me.
--
View this message in context:
http://old.nabble.com/Tomcat-and-openjpa-javaagent-tp28506406p28517