Announcement Announcement Module
Collapse
No announcement yet.
Spring WS (2.0.0.RELEASE) web service issues in Tomcat 6.0.26 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring WS (2.0.0.RELEASE) web service issues in Tomcat 6.0.26

    Dear friends,

    I followed the excellent tutorial Writing Contract First Web Services using Spring WS 2.0.0.RELEASE.

    I built a sample application as outlined by the tutorial and it worked perfectly, when deployed to jetty (using the maven jetty plugin).

    However, when I tried to deploy the same to Tomcat (6.0.26), it deployed without spitting any exceptions but when I access the webservice at the expected context (http://localhost:<my-port>/holidayService), I get a "HTTP 405" error.

    These are my maven dependencies:

    Code:
        <dependencies>
            <dependency>
                <groupId>org.springframework.ws</groupId>
                <artifactId>spring-ws-core</artifactId>
                <version>2.0.0.RELEASE</version>
            </dependency>
            <dependency>
                <groupId>jdom</groupId>
                <artifactId>jdom</artifactId>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>jaxen</groupId>
                <artifactId>jaxen</artifactId>
                <version>1.1</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.8.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>0.9.28</version>
            </dependency>
        </dependencies>
    Kindly give your insights to this issue.

    Regards,
    James
    Last edited by jamcru; Mar 10th, 2011, 03:26 AM. Reason: Added maven dependencies

  • #2
    Oops..I missed the context path

    Sorry guys. It's my mistake :-)

    I forgot to include the context path in the url.

    I used the url as suggested by the tutorial "http://localhost:8080/holidayService/holiday.wsdl", which gave me a 405 error message. But when I accessed it with "http://localhost:8080/tutorial/holidayService/holiday.wsdl" it worked.

    Sorry once again for the troubles.

    Comment

    Working...
    X