Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-380

Incorrect soap:address location="http://localhost:8080/holidayService/ for samples/tutorial - resource (/holidayService/) is not available

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.5.3
    • Component/s: Samples
    • Labels:
      None
    • Environment:
      Tomcat 6.0.16
      Windows XP
      java version "1.6.0_02"
      Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
      Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

      Description

      The soap:address location="http://localhost:8080/holidayService/ for samples/tutorial is incorrect.

      spring-ws-servlet.xml should contain

      bad: <property name="locationUri" value="http://localhost:8080/tutorial/holidayService/"/>

      instead of

      good: <property name="locationUri" value="http://localhost:8080/holidayService/"/>

      A SoapUi test with the bad location results in the error

      Tue Jun 17 19:06:38 EDT 2008:WARN:Failed to prettyPrint xml [<html><head><title>Apache Tomcat/6.0.16 - Error report</title><style><!--H1

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

      H2

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

      H3

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

      BODY

      {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

      B

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

      P

      {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

      A

      {color : black;}

      A.name

      {color : black;}

      HR

      {color : #525D76;}

      --></style> </head><body><h1>HTTP Status 404 - /holidayService/</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/holidayService/</u></p><p><b>description</b> <u>The requested resource (/holidayService/) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.16</h3></body></html>]: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.

      1. holiday-sample.patch
        1 kB
        Tareq Abedrabbo
      2. tutorial-doc.patch
        2 kB
        Tareq Abedrabbo

        Activity

        Hide
        buzz3791 Brian Brooks added a comment -

        I just realized that I had the bad and good markers backwards... the description should be changed to read

        spring-ws-servlet.xml should contain

        good: <property name="locationUri" value="http://localhost:8080/tutorial/holidayService/"/>

        instead of

        bad: <property name="locationUri" value="http://localhost:8080/holidayService/"/>

        The bad lacks the 'tutorial' portion of the URL.

        Show
        buzz3791 Brian Brooks added a comment - I just realized that I had the bad and good markers backwards... the description should be changed to read spring-ws-servlet.xml should contain good: <property name="locationUri" value="http://localhost:8080/tutorial/holidayService/"/> instead of bad: <property name="locationUri" value="http://localhost:8080/holidayService/"/> The bad lacks the 'tutorial' portion of the URL.
        Hide
        tareq Tareq Abedrabbo added a comment -

        The proposed patch uses the location transformation feature relieving the users from rewriting the uri according to the deployment context.

        Show
        tareq Tareq Abedrabbo added a comment - The proposed patch uses the location transformation feature relieving the users from rewriting the uri according to the deployment context.
        Hide
        tareq Tareq Abedrabbo added a comment -

        An update of the tutorial.

        Show
        tareq Tareq Abedrabbo added a comment - An update of the tutorial.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing issues in 1.5.3

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing issues in 1.5.3

          People

          • Assignee:
            tareq Tareq Abedrabbo
            Reporter:
            buzz3791 Brian Brooks
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: