[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
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)


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

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



 Comments   
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 Mon Dec 11 04:03:49 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.