External schema in directory with spaces cannot be read by JBossWS

Solution Verified - Updated -

Issue

  • web archive (.war)
  • WSDL found in WEB-INF/classes/wsdl/dir with spaces/wsdl.
  • External schema in WEB-INF/classes/wsdl/dir with spaces/xsd.
  • wsdlLocation defined as ./wsdl/dir with spaces/wsdl/service.wsdl

When deploying the application, I get an error:

Caused by: java.io.IOException: JBAS015526: Child './wsdl/dir with spaces/xsd/external.xsd' not found for VirtualFile: "/absolute/path/jboss-eap-6.1/standalone/deployments/myDeployment.war/"
    at org.jboss.as.webservices.util.VirtualFileAdaptor.findChild(VirtualFileAdaptor.java:61)
    at org.jboss.as.webservices.util.VirtualFileAdaptor.findChild(VirtualFileAdaptor.java:71)
    at org.jboss.ws.common.deployment.ResourceResolverImpl.resolve(ResourceResolverImpl.java:76)
    at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:228)
    at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:253)
    at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:257)
    at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:92)
    ... 14 more

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 6.1
    • 6.0

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