Problem importing multiple schemas from the same namespace in JBossWS

Solution Verified - Updated -

Issue

I have a problem importing multiple schemas from the same namespace in JBossWS

I have a WSDL that imports multiple schemas from the same namespace and I use wsconsume to generate artifacts.

[WARNING] src-resolve: Cannot resolve the name 'types:TelephoneNumber' 
to a(n) 'element declaration' component.

When the application is packaged and deployed on JBoss AS, the server log shows:

[org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] JBossWS_myns49969.xsd[domain:[http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve](http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve): 
Cannot resolve the name 'types:TelephoneNumber' to a(n) 'element declaration' component.

Environment

  • JBoss Enterprise Application Platform (EAP) 5

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