Announcement Announcement Module
Collapse
No announcement yet.
does any one have Spring-WS Tutorial working on Tomcat 6.0.16 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • does any one have Spring-WS Tutorial working on Tomcat 6.0.16

    deployed tutorial.war into tomcat webapps folder, invoking the service with the following url http://<b>http://localhost:8080/holi...liday.wsdl</b>


    gives
    HTTP Status 404 - /holidayService/holiday.wsdl

    type Status report

    message /holidayService/holiday.wsdl

    description The requested resource (/holidayService/holiday.wsdl) is not available.



    if I invoke with http://localhost:8080/tutorial/
    gives following bunch of exceptions
    javax.servlet.ServletException: Servlet.init() for servlet spring-ws threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:619)

    root cause

    org.springframework.beans.factory.CannotLoadBeanCl assException: Cannot find class [org.springframework.ws.soap.saaj.SaajSoapMessageCo ntextFactory] for bean with name 'messageContextFactory' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.ws.soap.saaj.SaajSoapMessageCo ntextFactory
    org.springframework.beans.factory.support.Abstract BeanFactory.resolveBeanClass(AbstractBeanFactory.j ava:1076)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:283)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:352)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 32)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:266 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:236)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:619)
    do I have to change anything in the spring-ws-servlet.xml, web.xml files or add additional jars to tomcat classpath ?
    If the jar versions are outdated, please post updated the pom.xml.

    appreciate your help.

    - Praveen
    Last edited by pkbhavani; Mar 27th, 2008, 03:38 PM.

  • #2
    can anyone answer this, appreciate your help

    Comment


    • #3
      your problem is
      Code:
      nested exception is java.lang.ClassNotFoundException: org.springframework.ws.soap.saaj.SaajSoapMessageContextFactory
      This should be in your spring-ws-<version>.jar file.

      I hope that helps you!

      Russ

      Comment


      • #4
        That class (SaajSoapMessageContextFactory) is from the time of the 1.0 RCs, and has been replaced by the SaajSoapMessageFactory since 1.0 RC2 or so. Which version of the tutorial are you deploying?

        Comment

        Working...
        X