javax.xml.ws.WebServiceException: Unable to create JAXBContext (Doc ID 2186406.1)

Last updated on AUGUST 08, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.6 to 12.2.1.1.0
Information in this document applies to any platform.

Symptoms

When deploying an upgraded Web Service application on WebLogic Server, the following error occurs:

 

SEVERE: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Unable to create JAXBContextjavax.xml.ws.WebServiceException: Unable to create JAXBContext
at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:164)
at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:281)
at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:363)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:202)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:496)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

 

Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10 counts of IllegalAnnotationExceptions
org.xmlsoap.schemas.soap.envelope.Detail is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at org.xmlsoap.schemas.soap.envelope.Detail
at public org.xmlsoap.schemas.soap.envelope.Detail org.xmlsoap.schemas.soap.envelope.ObjectFactory.createDetail()
at org.xmlsoap.schemas.soap.envelope.ObjectFactory
org.xmlsoap.schemas.soap.envelope.Detail does not have a no-arg default constructor.
this problem is related to the following location:
at org.xmlsoap.schemas.soap.envelope.Detail
at public org.xmlsoap.schemas.soap.envelope.Detail org.xmlsoap.schemas.soap.envelope.ObjectFactory.createDetail()
at org.xmlsoap.schemas.soap.envelope.ObjectFactory
org.xmlsoap.schemas.soap.envelope.Envelope is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at org.xmlsoap.schemas.soap.envelope.Envelope
at public org.xmlsoap.schemas.soap.envelope.Envelope org.xmlsoap.schemas.soap.envelope.ObjectFactory.createEnvelope()

 

Changes

 

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