users@glassfish.java.net

Re: Problem with web.xml servlet for ws mapping

From: <glassfish_at_javadesktop.org>
Date: Tue, 20 May 2008 05:44:11 PDT

Solved using web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" mlns="http://java.sun.com/xml/ns/j2ee">
  <display-name>openH3G</display-name>
  <description>openH3G</description>
  <listener>
    <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>wsdl</servlet-name>
    <display-name>wsdl</display-name>
    <description>test openH3G project</description>
    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>wsdl</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>
</web-app>
[Message sent by forum member 'fabioimperioli' (fabioimperioli)]

http://forums.java.net/jive/thread.jspa?messageID=275459