NoClassDefFoundError: javax.xml.ws.WebServiceRef in OAS 10.1.3.5

(Doc ID 1141786.1)

Last updated on APRIL 09, 2018

Applies to:

Oracle Fusion Middleware - Version 10.1.3.5.0 to 10.1.3.5.0 [Release AS10gR3]
Oracle Containers for J2EE - Version 10.1.3.5.0 to 10.1.3.5.0 [Release AS10gR3]
Web Services - Version 10.1.3.5 to 10.1.3.5 [Release AS10gR3]
Oracle E-Business Suite Technology Stack - Version 10.1.3 to 10.1.3 [Release 10.1]
Information in this document applies to any platform.

Goal

Getting error:

10/07/02 06:12:57 WARNING: EJBUtils.<clinit> Unexpected exception accessing BeanDescriptorAnnotationParser.parseApplicationExceptionAnnotation(EJBPackage, Class): oracle.classloader.util.AnnotatedNoClassDefFoundError:

Missing class: javax.xml.ws.WebServiceRef

Dependent class: com.evermind.server.deployment.J2EEContextAnnotationParser
Loader: oc4j:10.1.3
Code-Source: /vol1/oas/AppServer10.1.3/OracleAS_1/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in META-INF/boot.xml in /vol1/oas/AppServer10.1.3/OracleAS_1/j2ee/home/oc4j.jar

The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2194) [/vol1/oas/AppServer10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1726) [/vol1/oas/AppServer10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1682) [/vol1/oas/AppServer10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]

at OC4J instance startup only in an OracleAS install but not in an OC4J standalone install.
Copying of file jws-api.jar from standalone OC4J to Oracle Application Server seems to solve the problem as it contains the missing class.  But, is this the "correct" solution?

Solution

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