NullPointerException when using @WebServiceRef in an EJB
Issue
- When using
@WebServiceRefin an EJB, I get the following exception:
Caused by: java.lang.NullPointerException
at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:178)
at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:415)
at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:180)
at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:129)
at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:293)
Turning WS debug on, it seems like it can't resolve the XSD:
DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] Cannot resolve entity: [pub=null,sysid=file:/folder with spaces/file/jboss-eap-5.1/jboss-as/server/production/tmp/jbossws/JBossWS_urn_Test_WS_Types2616449588647569914.xsd]
DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=null,sysid=file:/folder with spaces/file/jboss-eap-5.1/jboss-as/server/production/tmp/jbossws/JBossWS_urn_Test_WS_Types5254598351580640006.xsd]
DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] Cannot resolve entity: [pub=null,sysid=file:/folder with spaces/file/jboss-eap-5.1/jboss-as/server/production/tmp/jbossws/JBossWS_urn_Test_WS_Types5254598351580640006.xsd]
Environment
- JBoss Enterprise Application Platform (EAP) 5.x
- JBossWS Native
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.