[SWS-380] Incorrect soap:address location="http://localhost:8080/holidayService/ for samples/tutorial - resource (/holidayService/) is not available Created: 17/Jun/08  Updated: 21/Jul/08  Resolved: 29/Jun/08

Status: Closed
Project: Spring Web Services
Component/s: Samples
Affects Version/s: 1.5.2
Fix Version/s: 1.5.3

Type: Bug Priority: Major
Reporter: Brian Brooks Assignee: Tareq Abedrabbo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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)

Attachments: File holiday-sample.patch     File tutorial-doc.patch    


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













{color : black;}


{color : black;}


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

Comment by Brian Brooks [ 17/Jun/08 ]

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.

Comment by Tareq Abedrabbo [ 23/Jun/08 ]

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

Comment by Tareq Abedrabbo [ 23/Jun/08 ]

An update of the tutorial.

Comment by Arjen Poutsma [ 21/Jul/08 ]

Closing issues in 1.5.3

Generated at Sat Nov 17 07:24:22 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.