dev@jax-ws.java.net

Incorrect Tutorial (web.xml)

From: Michael Kaegi <kam_at_brainware.ch>
Date: Mon, 3 Apr 2006 17:50:22 +0200

Hi All

Today i start to play with Java WSDP 2.0 (JAX-WS)...

I has found a simple tutorial...

https://jax-ws.dev.java.net/jax-ws-ea3/docs/jaxws-war.html

I found there a incorect part.


The web.xml is incorect....

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
  <listener>
 
<listener-class>com.sun.xml.ws.transport.http.servlet.JAXRPCContextListener</listener-class>
 
  </listener>
  <servlet>
    <servlet-name>hello</servlet-name>
 
<servlet-class>com.sun.xml.ws.transport.http.servlet.JAXRPCServlet</servlet-class>
 
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>/hello</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>
</web-app>

It should be...

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
  <listener>
 
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
 
  </listener>
  <servlet>
    <servlet-name>hello</servlet-name>
 
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
 
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>/hello</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>
</web-app>

or?


thx



Michael Kaegi

 
Tel: +41 41 748 22 00, Fax: +41 41 748 22 01, kam_at_brainware.ch
Brainware Solutions AG, Sumpfstrasse 15, CH-6300 Zug, www.brainware.ch
 



Michael Kaegi

 
Tel: +41 41 748 22 00, Fax: +41 41 748 22 01, kam_at_brainware.ch
Brainware Solutions AG, Sumpfstrasse 15, CH-6300 Zug, www.brainware.ch
 




picture
(image/gif attachment: 01-part)

picture
(image/gif attachment: 02-part)

picture
(image/gif attachment: 03-part)

picture
(image/gif attachment: 04-part)