Hello,
I just doing my first steps with spring-ws and I am stumbling.
I built a very simple web-service following the reference guide (http://static.springsource.org/sprin.../tutorial.html).
When run this web-service (on jetty, started from maven with mvn jetty:run) I get the following exception, the first time I visit the URL
(my war is called "kontakt-web-service" and my wsdl-definition-bean is called "simple".)
http://localhost:8080/kontakt-web-service/simple.wsdl:
Code:java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:431) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:478) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
When I call this url a second time I get:
Code:java.lang.NullPointerException at org.springframework.ws.transport.http.MessageDispatcherServlet.getWsdlDefinition(MessageDispatcherServlet.java:273) at org.springframework.ws.transport.http.MessageDispatcherServlet.getLastModified(MessageDispatcherServlet.java:243) at javax.servlet.http.HttpServlet.service(HttpServlet.java:703) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
I also find this thread (http://forum.springsource.org/showth... XT_ID_PREFIX) but cannot fix my problem.
When I list my dependecies I get the folowing result:
If there are any spring version conflicts, how can I solve them, as they only can be transitive dependecies?Code:[INFO] [dependency:tree] [INFO] ebus:kontakt-web-service:war:0.0.1-SNAPSHOT [INFO] +- org.springframework.ws:spring-ws-core:jar:1.5.8:compile [INFO] | +- org.springframework.ws:spring-xml:jar:1.5.8:compile [INFO] | +- org.springframework.ws:spring-oxm:jar:1.5.8:compile [INFO] | +- org.springframework:spring-context:jar:3.0.0.RELEASE:compile [INFO] | | +- org.springframework:spring-expression:jar:3.0.0.RELEASE:compile [INFO] | | \- org.springframework:spring-asm:jar:3.0.0.RELEASE:compile [INFO] | +- org.springframework:spring-aop:jar:2.5.6:compile [INFO] | | \- aopalliance:aopalliance:jar:1.0:compile [INFO] | +- org.springframework:spring-web:jar:2.5.6:compile [INFO] | +- org.springframework:spring-webmvc:jar:3.0.0.RELEASE:compile (version managed from 2.5.6) [INFO] | +- wsdl4j:wsdl4j:jar:1.6.1:compile [INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile [INFO] | \- org.springframework:spring-core:jar:3.0.0.RELEASE:compile [INFO] +- org.springframework:spring-beans:jar:3.0.0.RELEASE:compile [INFO] +- jdom:jdom:jar:1.0:compile [INFO] +- jaxen:jaxen:jar:1.1:compile [INFO] | +- dom4j:dom4j:jar:1.6.1:compile [INFO] | +- xml-apis:xml-apis:jar:1.3.02:compile [INFO] | +- xerces:xercesImpl:jar:2.6.2:compile [INFO] | \- xom:xom:jar:1.0:compile [INFO] | +- xerces:xmlParserAPIs:jar:2.6.2:compile [INFO] | +- xalan:xalan:jar:2.6.0:compile [INFO] | \- com.ibm.icu:icu4j:jar:2.6.1:compile [INFO] +- javax.xml.soap:saaj-api:jar:1.3:runtime [INFO] +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3:runtime [INFO] +- log4j:log4j:jar:1.2.14:compile [INFO] +- junit:junit:jar:4.5:test [INFO] +- org.jmock:jmock:jar:2.5.1:test [INFO] | +- org.hamcrest:hamcrest-core:jar:1.1:test [INFO] | \- org.hamcrest:hamcrest-library:jar:1.1:test [INFO] +- org.jmock:jmock-legacy:jar:2.5.1:test [INFO] | +- org.objenesis:objenesis:jar:1.0:test [INFO] | \- cglib:cglib-nodep:jar:2.1_3:test [INFO] \- jmock:jmock-cglib:jar:1.2.0:test [INFO] \- jmock:jmock:jar:1.2.0:test [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------
Can anyone give a hint?


Reply With Quote