Results 1 to 2 of 2

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

  1. #1
    Join Date
    Mar 2011
    Posts
    2

    Red face 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 at 02:26 AM. Reason: Added maven dependencies

  2. #2
    Join Date
    Mar 2011
    Posts
    2

    Default 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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •