My Oracle Support Banner

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:
This problem can occur on any platform.


You wanted to enable Mercury Diagnostics on a 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 -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 -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\
Mercury Diagnostics J2EE Probe 'ESB40Registry', version:
Diagnostics webserver listening on
OC4J startup failed    oracle.classloader.util.AnnotatedNoClassDefFoundError:

Missing class: (wrong name:
Dependent class:
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(
at oracle.classloader.PolicyClassLoader.bulkLoadClasses(
at oracle.classloader.util.XMLConfiguration.bulkLoadClasses(
at oracle.classloader.util.XMLConfiguration.access$100(
at oracle.classloader.util.XMLConfiguration$Externals.load(


To view full details, sign in with your My Oracle Support account.

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

In this Document

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.