Announcement Announcement Module
Collapse
No announcement yet.
Can't run airline example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't run airline example

    Hi:
    I have the following error when run the airline web-service:

    Error creating bean with name 'wsSecurityInterceptor' defined in class path resource [org/springframework/ws/samples/airline/security/applicationContext-security.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;

    I'm completly new to web-services
    Thanks

  • #2
    Originally posted by javierspring
    Hi:
    I have the following error when run the airline web-service:

    Error creating bean with name 'wsSecurityInterceptor' defined in class path resource [org/springframework/ws/samples/airline/security/applicationContext-security.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;

    I'm completly new to web-services
    Thanks
    I need some more information about your setup before I can answer this. What application server are you using? What JDK? Can you post the full stacktrace? You can do that either here, or create an issue at the Spring-WS JIRA.

    Cheers,

    Comment


    • #3
      Xml-api problem

      Hi:
      I take out an api from a directory of tomcat in a Exadel instalation and the problem was finsh, the api was xml-apis.jar that's came with the instalation of Exadel in a global directory of tomcat.
      For the while, i want to run just a getflights client of the airline example from an ajax script, i don't has the minor idea how, if there is a possible to bring me some hints i would appreciate.

      Thanks

      Javier

      Comment


      • #4
        Originally posted by javierspring
        I take out an api from a directory of tomcat in a Exadel instalation and the problem was finsh, the api was xml-apis.jar that's came with the instalation of Exadel in a global directory of tomcat.
        It might be that that xml-apis.jar is an old version of JAXP (the Java XML parsing APIs). Does it does work now?

        Originally posted by javierspring
        For the while, i want to run just a getflights client of the airline example from an ajax script, i don't has the minor idea how, if there is a possible to bring me some hints i would appreciate.
        The XwsSecurityInterceptor required Java 5 (JAXP 1.3), unfortunately. If you don't need the security stuff, you can remove it by deleting the indicated line in web.xml (line 22), and applicationContext.xml (line 10 and 23).

        Let me know if that works for you.

        Cheers,

        Comment


        • #5
          It's an api problem

          Sorry for the delay in answer, the problerm was the api, if remove the security interceptor entry in xml files the service run well, but i delete de xml-apis from the directory and works almost with the security stuff

          Regards
          Javier

          Comment


          • #6
            hello,

            i use websphere 5.1 (j2se 1.4 and j2ee 1.3) with classloader configure parent_last (classes and jars of WEB-INF load first).

            In many applicationes i put the xml api's (xalan, xerces, ...) in WEB-INF\lib and works well. But with airline with XwsSecurityInterceptor doesn't works.

            the XwsSecurityInterceptor required Java 5 (JAXP 1.3), unfortunately
            if this is the problem, can it update to JAXP 1.3 using j2se 1.4???
            thanks in advance,
            CÚsar.

            Comment


            • #7
              hello again,

              i dowload jaxp 1.3 from java net, and have put jars in WEB-INF\lib. Application startup well, but when i do a request, SaajSoapMessageContextFactory.createContext throws this exception.

              Code:
              DEBUG - Testing handler adapter [[email protected]041]
              [5/07/06 14:10:27:180 CEST] 3f169052 SystemErr     R java.lang.LinkageError: Class org/w3c/dom/DocumentType violates loader constraints:  definition mismatch between parent and child loaders
              [5/07/06 14:10:27:180 CEST] 3f169052 SystemErr     R 	at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:52)
              [5/07/06 14:10:27:180 CEST] 3f169052 SystemErr     R 	at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Impl.java:24)
              [5/07/06 14:10:27:180 CEST] 3f169052 SystemErr     R 	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:48)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:144)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:43)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at org.springframework.ws.soap.saaj.SaajSoapMessageContextFactory.createContext(SaajSoapMessageContextFactory.java:60)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at org.springframework.ws.transport.http.MessageHandlerAdapter.handle(MessageHandlerAdapter.java:56)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:358)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
              [5/07/06 14:10:27:196 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
              [5/07/06 14:10:27:212 CEST] 3f169052 SystemErr     R 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
              [5/07/06 14:10:27:305 CEST] 3f169052 SystemErr     R 05-jul-2006 14:10:27 com.sun.xml.messaging.saaj.soap.MessageImpl <init>
              SEVERE: SAAJ0535: Unable to internalize message
              DEBUG - Could not complete request
              org.springframework.ws.soap.SoapMessageCreationException: Could not create message from HttpServletRequest: Unable to internalize message; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
              com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
              	at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:194)
              	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:43)
              	at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)
              	at org.springframework.ws.soap.saaj.SaajSoapMessageContextFactory.createContext(SaajSoapMessageContextFactory.java:60)
              	at org.springframework.ws.transport.http.MessageHandlerAdapter.handle(MessageHandlerAdapter.java:56)
              	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
              	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
              	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
              	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:358)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
              	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
              	at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
              	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
              	at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
              	at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
              	at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
              	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
              	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
              	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
              	at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
              	at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
              	at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
              	at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
              	at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
              	at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
              	at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
              	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
              	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
              Caused by: java.lang.LinkageError: Class org/w3c/dom/DocumentType violates loader constraints:  definition mismatch between parent and child loaders
              	at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:52)
              	at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Impl.java:24)
              	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:48)
              	at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:144)
              	... 29 more
              any idea? thanks in advance,
              CÚsar.

              Comment


              • #8
                Hello again,

                i have change the jars
                saaj-api.jar
                saaj-impl.jar
                with the distributed in jwsdp 1.6, and add
                FastInfoset.jar
                and run in j2se1.4. but for now don't validate the request.

                thanks,
                CÚsar.

                Comment

                Working...
                X