tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Tomcat4 to Tomcat5 web.xml problem
Date Tue, 28 Sep 2004 12:54:30 GMT

Hi,
Update your web.xml DTD to 2.3 or 2.4 in order to run your app on Tomcat
5.  If you REALLY want a 2.2 DTD then at least validate your web.xml.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Shaun Campbell [mailto:shaunc@uk2.net]
>Sent: Tuesday, September 28, 2004 5:46 AM
>To: Tomcat Users List
>Subject: Tomcat4 to Tomcat5 web.xml problem
>
>I've got an application that runs fine in Tomcat 4.1.30.  However when
I
>place the same webapp in Tomcat 5.0.28 I get an error at startup saying
>that
>there is an error on line 11 column 21 of web.xml and the app is not
>loaded.
>Can anyone give me any pointers as to what could be wrong with the
file?
>
>Thanks
>
>Shaun
>
><!DOCTYPE web-app
>    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>
><web-app>
>  <servlet-mapping>
>    <servlet-name>invoker</servlet-name>
>    <url-pattern>/servlet/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>apt</servlet-name>
>    <servlet-class>org.apache.turbine.Turbine</servlet-class>
>    <init-param>
>      <param-name>applicationRoot</param-name>
>      <param-value>webContext</param-value>
>    </init-param>
>    <init-param>
>      <param-name>properties</param-name>
>
<param-value>/WEB-INF/conf/TurbineResources.properties</param-value>
>    </init-param>
>    <load-on-startup>1</load-on-startup>
>  </servlet>
>  <security-constraint>
>    <web-resource-collection>
>      <web-resource-name>templates</web-resource-name>
>      <url-pattern>/templates/*</url-pattern>
>    </web-resource-collection>
>    <web-resource-collection>
>      <web-resource-name>logs</web-resource-name>
>      <url-pattern>/logs/*</url-pattern>
>    </web-resource-collection>
>    <auth-constraint>
>      <role-name>admin</role-name>
>    </auth-constraint>
>  </security-constraint>
>  <login-config>
>    <auth-method>BASIC</auth-method>
>    <realm-name>Templates</realm-name>
>  </login-config>
></web-app>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message