Blog entries in category "Java" shown here:
See other entries in category :
Whateveah | Java | All
20060425 Tuesday April 25, 2006

Path_info showing up as null in Glassfish JAX-WS

I was trying to deploy some JAX-WS endpoints in Glassfish and for some reason this was always returning a null.
String path = (String)mc.get(MessageContext.PATH_INFO); Turns out that the url-pattern must terminate in a *
 <servlet-mapping>
    <servlet-name>sample_webservice</servlet-name>
    <url-pattern>/jaxws/*</url-pattern>
 </servlet-mapping>
The /jaxws/* was the key. When the url-pattern was just /jaxws the endpoint kept showing up as a HTTP-404 error. Once I added the * in the web.xml - voila !
Will eyeball the jax-ws code to figureout why it does this when I get some time. For now the * fix works.
( Apr 25 2006, 12:00:00 AM EDT ) Permalink Comments [0]
Trackback URL: http://blogs.sun.com/sameert/en/entry/path_info_is_null
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed