AnnotadedNoClassDefFoundError when Enabling Mercury Diagnostics 6.X to OC4J (Doc ID 458243.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version: 10.1.3.2.0
This problem can occur on any platform.

Symptoms

You wanted to enable Mercury Diagnostics on a 10.1.3.2 OC4J standalone.
For this, you needed to configure the agent at start up of the container.

set JVMARGS=-javaagent:C:/MercuryDiagnostics/JAVAProbe/lib/probeagent.jar
-Dprobe.id=ESB40Registry -Dclass.load.log.level=all
-Dclass.load.trace=all -Dclass.load.log.file=c:/temp/test.log

The following errors are signaled during start up:

C:\Program Files\oc4j_extended_101320\bin>oc4j -start
C:\Program Files\oc4j_extended_101320\bin>echo off
Starting OC4J from C:\Progra~1\oc4j_extended_101320\j2ee\home ...

Executing: C:\PROGRA~1\Java\jdk1.5.0_12\bin\java -javaagent:C:\MercuryDiagnostics\JAVAProbe\lib\probeagent.jar -Dprobe.id=ESB40Registry -jar "C:\Progra~1\oc4j_extended_101320\j2ee\home\oc4j.jar" -config "C:\Progra~1\oc4j_extended_101320\j2ee\home\config\server.xml"

C:\Program Files\oc4j_extended_101320\bin>echo off
2007-09-07 17:15:15,740 INFO [com.mercury.opal.common.loader]: Loading module properties from: C:\MercuryDiagnostics\JAVAProbe\lib\..\etc\modules.properties
Mercury Diagnostics J2EE Probe 'ESB40Registry', version: 6.6.100.5
Diagnostics webserver listening on 0.0.0.0:35000
OC4J startup failed    oracle.classloader.util.AnnotatedNoClassDefFoundError:

Missing class: oracle.j2ee.ws.client.BasicService (wrong name: oracle.j2ee.ws.common.encoding.SerializerConstants)
Dependent class: oracle.j2ee.ws.client.BasicService
Loader: oracle.ws.client:10.1.3
Code-Source: /C:/Program Files/oc4j_extended_101320/webservices/lib/wsclient.jar
Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\Program Files\oc4j_extended_101320\j2ee\home\oc4j.jar



The missing class is not available from any code-source or loader in the system.

at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2264)
at oracle.classloader.PolicyClassLoader.bulkLoadClasses(PolicyClassLoader.java:1538)
at oracle.classloader.util.XMLConfiguration.bulkLoadClasses(XMLConfiguration.java:885)
at oracle.classloader.util.XMLConfiguration.access$100(XMLConfiguration.java:41)
at oracle.classloader.util.XMLConfiguration$Externals.load(XMLConfiguration.java:871)





Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms