External schema in directory with spaces cannot be read by JBossWS
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. wsdlLocationdefined 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
