Is there any way to instrument an instance with the JavaEE agent if there is already an xbootclasspath parameter that designates an existing jar file in the options for the instance?
Following is an excerpt of the java-options setting that is currently used in the ompn.xml file:
............ -Xbootclasspath^/p:/test/appl/oraias/1013/bpel/lib/<customer.jar> -Dhttp.proxySet=false $PERFORMASURE_JDK14_OPTIONS"/>
RESOLUTION:
When there are multiple xbootclasspath options, special switches "/p" (prepend) or "/a" (append) need to be used in order for multiple jars to work. For the Foglight JavaEE agent we almost always use a "/p", which indicates that the JavaEE agent jar should be "prepended" if there are multiple jars. The Foglight JavaEE agent jar should always come first.
Since both your existing jar file and the Foglight JavaEE jar file are using the "/p" option, try the following Workarounds:
Workaround 1:
_______________________________________
Remove the "/p" option from the existing jar file. The idea is that the first jar file is added to xbootclasspath, and the Foglight JavaEE jar is then prepended.
The modified option would look something like the following:
............ -Xbootclasspath^:/test/appl/oraias/1013/bpel/lib/<customer.jar> -Dhttp.proxySet=false $PERFORMASURE_JDK14_OPTIONS"/>
_______________________________________
Workaround 2:
_______________________________________
If Workaround 1 doesn't work, you can try appending you jar but using the "/a" option
The modified option would look something like the following:
............ -Xbootclasspath^/a:/test/appl/oraias/1013/bpel/lib/<customer.jar> -Dhttp.proxySet=false $PERFORMASURE_JDK14_OPTIONS"/>
_______________________________________
Workaround 3:
_______________________________________
If neither Workaround 1 nor Workaound 2 work, then you can try using ONE xbootclasspath option to put both the jar files together.
The modified option would look something like the following:
............-Xbootclasspath^/p:$PERFORMASURE_HOME/bootstrap/<FoglightJavaEE.jar>;/test/appl/oraias/1013/bpel/lib/<customer.jar> -Dhttp.proxySet=false"/>
_______________________________________
© ALL RIGHTS RESERVED. Feedback Nutzungsbedingungen Datenschutz Cookie Preference Center