View Full Version : Can't run airline example
javierspring
Jun 16th, 2006, 02:24 PM
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
Arjen Poutsma
Jun 17th, 2006, 03:45 AM
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 (http://opensource.atlassian.com/projects/spring/browse/SWS) JIRA.
Cheers,
javierspring
Jun 20th, 2006, 10:47 PM
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
Arjen Poutsma
Jun 21st, 2006, 05:24 AM
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?
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,
javierspring
Jun 24th, 2006, 09:49 PM
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
cesar
Jul 5th, 2006, 02:39 AM
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.
cesar
Jul 5th, 2006, 08:19 AM
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.
DEBUG - Testing handler adapter [org.springframework.ws.transport.http.MessageHandl erAdapter@33a19041]
[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_1 Impl.<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_1I mpl.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_1I mpl.<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.SOAPMessage Factory1_1Impl.createMessage(SOAPMessageFactory1_1 Impl.java:32)
[5/07/06 14:10:27:196 CEST] 3f169052 SystemErr R at org.springframework.ws.soap.saaj.SaajSoapMessageCo ntextFactory.createContext(SaajSoapMessageContextF actory.java:60)
[5/07/06 14:10:27:196 CEST] 3f169052 SystemErr R at org.springframework.ws.transport.http.MessageHandl erAdapter.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.p rocessRequest(FrameworkServlet.java:394)
[5/07/06 14:10:27:196 CEST] 3f169052 SystemErr R at org.springframework.web.servlet.FrameworkServlet.d oPost(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.StrictServletInsta nce.doService(StrictServletInstance.java:110)
[5/07/06 14:10:27:196 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
[5/07/06 14:10:27:196 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
[5/07/06 14:10:27:196 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:983)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:564)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:200)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:119)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:276)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:182)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
[5/07/06 14:10:27:212 CEST] 3f169052 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleReques t(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.j ava: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.SoapMessageCreationExc eption: 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_1I mpl.<init>(Message1_1Impl.java:43)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessage Factory1_1Impl.createMessage(SOAPMessageFactory1_1 Impl.java:32)
at org.springframework.ws.soap.saaj.SaajSoapMessageCo ntextFactory.createContext(SaajSoapMessageContextF actory.java:60)
at org.springframework.ws.transport.http.MessageHandl erAdapter.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.p rocessRequest(FrameworkServlet.java:394)
at org.springframework.web.servlet.FrameworkServlet.d oPost(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.StrictServletInsta nce.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava: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_1 Impl.<init>(SOAPPart1_1Impl.java:24)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1I mpl.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.
cesar
Jul 6th, 2006, 04:57 AM
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.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.