The servlet url-pattern was probably the only place I didn't try to
fiddle, but it actually works.
Setting the url-pattern to "/services/*" gives me perfect links.

I wonder why this is needed. Perhaps it's trying to chop off a
trailing '/' that weren't there in the previous configuration?


2007/7/26, Christopher Moesel <[EMAIL PROTECTED]>:
Hi Christian,

That is indeed strange.  Have you tried mapping the servlet to something
else like "/services/*"?  I'd be interested to see if you still have the
problem in that case.  I don't know that I'd know what to do either way
(if it works or is broken), but I am curious...

-Chris

-----Original Message-----
From: Christian Vest Hansen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 9:07 AM
To: [email protected]
Subject: Service URL question

Hi,

Say I have a web project called MyService2 (note the number '2'), the
war file is called MyService2.war and web.xml says its display-name is
MyService2.

This project contains a web service buildt with CXF called TheService.
And the CXFServlet is mapped to the /* url-pattern.

In my beans.xml (since I'm using spring) I have a jaxws:endpoint with
an address="/TheService" attribute.
This element also refers a WSDL which defines an endpoint with this
URL: http://localhost:8080/MyService2/TheService

So, all in all, the endpoint URL is suppose to be
http://localhost:8080/MyService2/TheService

But when I deploy it, and go to the http://localhost:8080/MyService2
to see the generated link pointing at my endpoint, it is instead
pointing at http://localhost:8080/MyService/TheService - without the
'2' part.

I've search all the files in my project for the string "MyService"
without a trailing number '2', but none exists. I'm wondering if
there's an off-by-one bug somewhere that chops off the last character,
but it is guesswork.

Has anyone experienced something like this before?

I should note that I'm using CXF version 2.0 (the release).

--
Venlig hilsen / Kind regards,
Christian Vest Hansen.



--
Venlig hilsen / Kind regards,
Christian Vest Hansen.

Reply via email to