You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zach Calvert <Za...@floodsource.com> on 2006/09/01 16:40:58 UTC

Tomcat Startup Error

I have a problem with Tomcat and I cannot figure out what is going on.
I am using Tomcat 4.1.31.  When running bootstrap.jar's main, I get 

Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Catalina.start: LifecycleException:  Context startup failed due to
previous errors
LifecycleException:  Context startup failed due to previous errors
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3578
)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
    ...
 
In reviewing the logs, I have 
 
2006-09-01 09:33:58 WebappLoader[]: Deploying class repositories to work
directory U:\...\work\Standalone\localhost\_
2006-09-01 09:33:58 ContextConfig[] Parse error in default web.xml
java.lang.ClassNotFoundException: org.apache.catalina.Container
   at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
40)
    ...
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
2006-09-01 09:33:58 ContextConfig[]: Occurred at line 58 column 15
2006-09-01 09:33:58 ContextConfig[]: Missing application web.xml, using
defaults only
2006-09-01 09:33:58 ContextConfig[]: Marking this application
unavailable due to previous error(s)
2006-09-01 09:33:58 StandardManager[]: Seeding random number generator
class java.security.SecureRandom
2006-09-01 09:33:58 StandardManager[]: Seeding of random number
generator has been completed
2006-09-01 09:33:58 StandardContext[]: Context startup failed due to
previous errors
 
I reviewed the web.xml and it passed a validator.  Does anyone have any
suggestions?  This web used to run just fine, so I'm wondering if maybe
a dtd is out of place or if I'm missing something simple.  
 
The error in the web.xml is:
<?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>
 
  <!-- ======================== Introduction
============================== -->
  <!-- This document defines default values for *all* web applications
-->
  <!-- loaded into this instance of Tomcat.  As each application is
-->
  <!-- deployed, this file is processed, followed by the
-->
  <!-- "/WEB-INF/web.xml" deployment descriptor from your own
-->
  <!-- applications.
-->
  <!--
-->
  <!-- WARNING:  Do not configure application-specific resources here!
-->
  <!-- They should go in the "/WEB-INF/web.xml" file in your
application.   -->
 

  <!-- ================== Built In Servlet Definitions
==================== -->
 

  <!-- The default servlet for all web applications, that serves static
-->
  <!-- resources.  It processes all requests that are not mapped to
other   -->
  <!-- servlets with servlet mappings (defined either here or in your
own   -->
  <!-- web.xml file.  This servlet supports the following initialization
-->
  <!-- parameters (default values are in square brackets):
-->
  <!--
-->
  <!--   debug               Debugging detail level for messages logged
-->
  <!--                       by this servlet.  [0]
-->
  <!--
-->
  <!--   input               Input buffer size (in bytes) when reading
-->
  <!--                       resources to be served.  [2048]
-->
  <!--
-->
  <!--   listings            Should directory listings be produced if
there -->
  <!--                       is no welcome file in this directory?
[true]  -->
  <!--
-->
  <!--   output              Output buffer size (in bytes) when writing
-->
  <!--                       resources to be served.  [2048]
-->
  <!--
-->
  <!--   readonly            Is this context "read only", so HTTP
-->
  <!--                       commands like PUT and DELETE are
-->
  <!--                       rejected?  [true]
-->
  <!--
-->
  <!--   encodeRedirects     Call encodeRedirectURL() on welcomefile or
-->
  <!--                       directory redirects. [false]
-->
 
    <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>
          org.apache.catalina.servlets.DefaultServlet
        </servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>   <---- ERROR POINTS TO THE END OF THIS TAG

Re: Tomcat Startup Error

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Class not found problem

java.lang.ClassNotFoundException: org.apache.catalina.Container

you're probably missing some environment variable that is used to setup class loaders, such as CATALINA_BASE or CATALINA_HOME etc

Filip




Zach Calvert wrote:
> I have a problem with Tomcat and I cannot figure out what is going on.
> I am using Tomcat 4.1.31.  When running bootstrap.jar's main, I get 
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.31
> Catalina.start: LifecycleException:  Context startup failed due to
> previous errors
> LifecycleException:  Context startup failed due to previous errors
>    at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3578
> )
>    at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
>     ...
>  
> In reviewing the logs, I have 
>  
> 2006-09-01 09:33:58 WebappLoader[]: Deploying class repositories to work
> directory U:\...\work\Standalone\localhost\_
> 2006-09-01 09:33:58 ContextConfig[] Parse error in default web.xml
> java.lang.ClassNotFoundException: org.apache.catalina.Container
>    at
> org.apache.commons.digester.Digester.createSAXException(Digester.java:25
> 40)
>     ...
>    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
>  
> 2006-09-01 09:33:58 ContextConfig[]: Occurred at line 58 column 15
> 2006-09-01 09:33:58 ContextConfig[]: Missing application web.xml, using
> defaults only
> 2006-09-01 09:33:58 ContextConfig[]: Marking this application
> unavailable due to previous error(s)
> 2006-09-01 09:33:58 StandardManager[]: Seeding random number generator
> class java.security.SecureRandom
> 2006-09-01 09:33:58 StandardManager[]: Seeding of random number
> generator has been completed
> 2006-09-01 09:33:58 StandardContext[]: Context startup failed due to
> previous errors
>  
> I reviewed the web.xml and it passed a validator.  Does anyone have any
> suggestions?  This web used to run just fine, so I'm wondering if maybe
> a dtd is out of place or if I'm missing something simple.  
>  
> The error in the web.xml is:
> <?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>
>  
>   <!-- ======================== Introduction
> ============================== -->
>   <!-- This document defines default values for *all* web applications
> -->
>   <!-- loaded into this instance of Tomcat.  As each application is
> -->
>   <!-- deployed, this file is processed, followed by the
> -->
>   <!-- "/WEB-INF/web.xml" deployment descriptor from your own
> -->
>   <!-- applications.
> -->
>   <!--
> -->
>   <!-- WARNING:  Do not configure application-specific resources here!
> -->
>   <!-- They should go in the "/WEB-INF/web.xml" file in your
> application.   -->
>  
>
>   <!-- ================== Built In Servlet Definitions
> ==================== -->
>  
>
>   <!-- The default servlet for all web applications, that serves static
> -->
>   <!-- resources.  It processes all requests that are not mapped to
> other   -->
>   <!-- servlets with servlet mappings (defined either here or in your
> own   -->
>   <!-- web.xml file.  This servlet supports the following initialization
> -->
>   <!-- parameters (default values are in square brackets):
> -->
>   <!--
> -->
>   <!--   debug               Debugging detail level for messages logged
> -->
>   <!--                       by this servlet.  [0]
> -->
>   <!--
> -->
>   <!--   input               Input buffer size (in bytes) when reading
> -->
>   <!--                       resources to be served.  [2048]
> -->
>   <!--
> -->
>   <!--   listings            Should directory listings be produced if
> there -->
>   <!--                       is no welcome file in this directory?
> [true]  -->
>   <!--
> -->
>   <!--   output              Output buffer size (in bytes) when writing
> -->
>   <!--                       resources to be served.  [2048]
> -->
>   <!--
> -->
>   <!--   readonly            Is this context "read only", so HTTP
> -->
>   <!--                       commands like PUT and DELETE are
> -->
>   <!--                       rejected?  [true]
> -->
>   <!--
> -->
>   <!--   encodeRedirects     Call encodeRedirectURL() on welcomefile or
> -->
>   <!--                       directory redirects. [false]
> -->
>  
>     <servlet>
>         <servlet-name>default</servlet-name>
>         <servlet-class>
>           org.apache.catalina.servlets.DefaultServlet
>         </servlet-class>
>         <init-param>
>             <param-name>debug</param-name>
>             <param-value>0</param-value>
>         </init-param>
>         <init-param>
>             <param-name>listings</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <load-on-startup>1</load-on-startup>
>     </servlet>   <---- ERROR POINTS TO THE END OF THIS TAG
>
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 8/31/2006
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org