You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Greg Truty <gt...@us.ibm.com> on 2001/06/28 15:58:59 UTC

AXIS sample and deployment descriptor conformity

Folks,

While attempting to install the AXIS sample on another app. server, I
noticed that the web.xml in the AXIS web-app sample doesn't conform to the
servlet spec.  The web.xml states:

<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>servlet/AxisServlet</url-pattern>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>

The servlet spec's DTD indicates that for servlet-mapping, the format is:
<!ELEMENT servlet-mapping (servlet-name, url-pattern)>
This is a single servlet-name, url-pattern mapping per servlet-mapping
element.  You can change to the format below and still have it work.

<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>

Regards...Greg

Greg Truty
WebSphere Architecture/Development,  IBM Austin
EMail:     gtruty@us.ibm.com                               (Internal)
gtruty@ibmusm26
Phone:   (ext)  (512) 838-2828                               (Tie) 678-2828