1 Reply Latest reply: Aug 17, 2007 6:39 AM by 843844 RSS

    Exception when invoking a JAX-WS Webservice

    843844
      Hi,

      I have 2 tomcat 5.5.17 instances running. Each of them have a Webservice.

      @ServiceMode(value=Service.Mode.MESSAGE)
      @WebServiceProvider( targetNamespace="urn:liberty:md:IDFF:wsdl")
      public class SOAPEndpointImpl implements Provider<SOAPMessage> {

      private StatusResponseType statusResponse = new StatusResponseType();


      public SOAPEndpointImpl() {
      }

      public SOAPMessage invoke(SOAPMessage request){
      return request;
      }

      I get an exception, when I Invoke the Service, althaugh, the Webservice does what it is supposed to. In other words - I get my desired response.

      Anyway, I haven�t any clue why this Exception is thrown:

      INFO: Server startup in 1973 ms
      08.08.2007 19:02:43 com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet
      SCHWERWIEGEND: caught throwable
      java.io.IOException
      at com.sun.xml.ws.server.SDDocumentImpl.writeTo(SDDocumentImpl.java:242)
      at com.sun.xml.ws.transport.http.HttpAdapter.publishWSDL(HttpAdapter.java:496)
      at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:215)
      at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:121)
      at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:115)
      at com.sun.xml.ws.transport.http.servlet.WSServlet.doGet(WSServlet.java:68)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.xml.stream.XMLStreamException
      at com.sun.xml.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:383)
      at com.sun.xml.ws.server.SDDocumentImpl.writeTo(SDDocumentImpl.java:240)
      ... 25 more

      Anyone, any Idea ?

      When my tomcat startsup, it is telling me, some warning in conjunction with the wsdl describing my webservice.

      08.08.2007 19:02:15 com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser parseWSDL
      WARNING: Import of jndi:/idp.liberty/IdP/WEB-INF/wsdl/schema/oasis-sstc-saml-schema-assertion-1.1.xsd is violation of BP 1.1 R2001. Proceeding with a warning.
      R2001 A DESCRIPTION MUST only use the WSDL "import" statement to import another WSDL description.

      What is that meaning ?

      Please help !