The oracle.classloader.util.AnnotatedNoClassDefFoundError has been thrown during OAS shutdown.

Document ID : KB000048598
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

The oracle.classloader.util.AnnotatedNoClassDefFoundError has been thrown during OAS shutdown.

Customer is trying to monitor Oracle Application Server version 10.1.3.5. When the application server starts the agent reports the following and the agent disconnects:

8/17/11 09:10:34 AM COT [ERROR] [IntroscopeAgent.Agent] Exception starting
method tracer actual trace for
oracle.j2ee.jmsrouter.ejb.AdminMgrBean.setSessionContext

Steps taken:

Enabled debug mode, we saw the following from the debug logs:-

[DEBUG] [IntroscopeAgent.Agent] Exception starting method tracer actual
trace for oracle.j2ee.jmsrouter.ejb.AdminMgrBean.setSessionContext
oracle.classloader.util.AnnotatedNoClassDefFoundError:

Missing class: javax.xml.rpc.handler.MessageContext

Dependent class:
com.wily.introscope.agent.trace.ejb.EjbObjectFactory$MethodCache
Loader: jre.bootstrap:1.5.0_18
Code-Source: unknown
Configuration: jre bootstrap

The missing class is available from the following locations:

1. Code-Source:
/u01/app/oracle/product/10.3/oas/webservices/lib/jaxrpc-api.jar (from
<code-source> (ignore manifest Class-Path) in META-INF/boot.xml in
/u01/app/oracle/product/10.3/oas/j2ee/home/oc4j.jar)
This code-source is available in loader oracle.ws.jaxrpc:1.1.

Solution:

Please put -Xbootclasspath/p:/u01/app/oracle/product/10.3/oas/webservices/lib/jaxrpc-api.jar to JVM opts or to OPMN.xml