tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Callaghan" <greg_callag...@hotmail.com>
Subject Tomcat 4 Upgrade Assistance?? - Tomcat 3.3 app does not startup under Tomcat 4.0
Date Thu, 15 Nov 2001 03:41:30 GMT
Hi,

I've got Tomcat 4 up and running fine with the example apps.  A separate 
application I have however, which runs fine under Tomcat v3.3, is having 
troubles starting up under Tomcat v4.

Are there any upgrading to Tomcat 4 (from Tomcat 3.3) guidelines which exist 
which one needs to follow?  Changes required to web.xml file for example?

The specific problem I see is described below.

thanks in advance
Greg

PS Just joined the mailing list.



[1] Error on Startup
=======================================================================
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
PARSE error at line 123 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" must 
match "(icon?,display-name?,descript
ion?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,
error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
==========================================================================


[2] Details from Log file
===========================================================================
2001-11-15 13:00:08 ContextConfig[/MultiChoice] Parse error in application 
web.xml
org.xml.sax.SAXParseException: The content of element type "web-app" must 
match 
"(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
	at 
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1781)
	at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1425)
	at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
	at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
	at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
	at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
	at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:256)
	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824)
	at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:224)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3334)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2001-11-15 13:00:08 ContextConfig[/MultiChoice]: Occurred at line 123 column 
11
2001-11-15 13:00:08 ContextConfig[/MultiChoice]: Marking this application 
unavailable due to previous error(s)
==================================================================================

[3] Web.xml file
==================================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

  <description>
  Example web application illustrating the use of tags in the
  DBTags custom tag library, from the JAKARTA-TAGLIBS project.
  </description>


    <servlet>
        <servlet-name>ConnectionServlet</servlet-name>
        <servlet-class>ConnectionServlet</servlet-class>
	<load-on-startup>-84893938</load-on-startup>
    </servlet>

  <!-- Action Servlet Configuration -->
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>application</param-name>
      <param-value>ApplicationResources</param-value>
    </init-param>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>


  <!-- Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>


  <!-- The Welcome File List -->
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

  <!-- Struts Tag Library Descriptors -->
  <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  </taglib>


    <servlet>
        <servlet-name>
            getimage
        </servlet-name>
        <servlet-class>
            ImageServlet
        </servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>
            getimage
        </servlet-name>
        <url-pattern>
            /getimage
        </url-pattern>
    </servlet-mapping>

    <session-config>
        <session-timeout>
            3000
        </session-timeout>
    </session-config>


    <taglib>
	<taglib-uri>/dbtags</taglib-uri>
	<taglib-location>/WEB-INF/dbtags.tld</taglib-location>
    </taglib>

    <security-constraint>
      <web-resource-collection>
         <web-resource-name>Protected Area</web-resource-name>
	 <!-- Define the context-relative URL(s) to be protected -->
         <url-pattern>/Library/*</url-pattern>
      </web-resource-collection>
      <web-resource-collection>
         <web-resource-name>Protected Area2</web-resource-name>
	 <!-- Define the context-relative URL(s) to be protected -->
         <url-pattern>/_notes/*</url-pattern>
      </web-resource-collection>


    </security-constraint>

  <security-role>
    <role-name>admin</role-name>
  </security-role>

</web-app>
====================================================================





_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message