SAXException: src-resolve: Cannot resolve the name error in JBoss EAP 5.1.2

Solution Verified - Updated -

Issue

  • The web service end point has @SchemaValidation and wsdlLocation specified.
  • The following error message is thrown in the server log for incoming SOAP requests:
ERROR [SOAPFaultHelperJAXWS] SOAP request exception
org.jboss.ws.WSException: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'foo:bar' to a(n) 'type definition' component.
    at org.jboss.ws.WSException.rethrow(WSException.java:68)
    at org.jboss.ws.core.soap.SOAPBodyElementDoc.validatePayload(SOAPBodyElementDoc.java:138)
...
...
Caused by: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'foo:bar' to a(n) 'type definition' component.
    at org.jboss.ws.extensions.validation.StrictlyValidErrorHandler.error(StrictlyValidErrorHandler.java:43)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 5.1.2
  • JBossWSNative 3.1.2.SP11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content