0 Replies Latest reply on May 6, 2008 5:50 PM by Ibrahim THEODORE

    Failed to create a new SAX parser  with JbossWS2.0.4

    Ibrahim THEODORE Newbie

      Hi,

      I am testing my Webservices based on JAX-RPC (migrated from Jboss 403) under Jboss4.2.1 and Jbossws2.0.4.
      I am invoquing the Webservices using SoapUI. When I use the following request:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://test.com/webservices">
      <soapenv:Header/>
      <soapenv:Body>
      <web:Querytest>
      <String_1>user</String_1>
      <String_2>passwd</String_2>
      <int_3>123</int_3>
      </web:Querytest>
      </soapenv:Body>
      </soapenv:Envelope>

      The response is as expected but when I use the following request:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://test.com/Finance/webservices">
      <soapenv:Header/>
      <soapenv:Body>
      <web:Querytest1>
      <String_1>user</String_1>
      <String_2>pswd</String_2>
      <Coplxstrt1>
      <ID1>1</ID1>
      <view1>yes</view1>
      <Type1>txt</Type1>
      </Coplxstrt1>
      </web:Querytest1>
      </soapenv:Body>
      </soapenv:Envelope>

      I am getting the following exception which I thought was fixed with jbossws2.02:

      2008-05-06 16:03:22,075 ERROR - SOAP request exception
      org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
      at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
      at org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:54)
      at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:103)
      at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:62)
      at org.jboss.ws.core.binding.DeserializerSupport.deserialize(DeserializerSupport.java:60)
      at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:180)
      at org.jboss.ws.core.soap.XMLContent.transitionTo(XMLContent.java:97)
      at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:141)
      at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:173)
      at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:263)
      at org.jboss.ws.core.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:115)
      at org.jboss.ws.core.EndpointInvocation.getRequestPayload(EndpointInvocation.java:135)
      at org.jboss.ws.core.server.DelegatingInvocation.getArgs(DelegatingInvocation.java:82)
      at org.jboss.wsf.container.jboss42.InvocationHandlerEJB21.getMBeanInvocation(InvocationHandlerEJB21.java:169)
      at org.jboss.wsf.container.jboss42.InvocationHandlerEJB21.invoke(InvocationHandlerEJB21.java:144)
      at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:221)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
      at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Unknown Source)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:96)
      at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:55)
      at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
      ... 39 more
      Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
      at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92)
      ... 41 more


      Any idea?

      Thanks in advance,