tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@finemaltcoding.com>
Subject Initialization of Catalina/mod_webapp
Date Mon, 19 Nov 2001 18:01:49 GMT
I've setup Catalina 4.0.1 behind Apache/1.3.22 (Unix) via mod_webapp.
On startup (of Catalina; sleep 3; Apache), Catalina finds my
deployment descriptor distasteful (and appears to attempt multiple
initializations), and will not register my servlet zone.

I get the feeling that I'm doing something fundamentally wrong here
(or else I wouldn't be getting these lovely errors, heh).  I am
running both Apache and Catalina on high ports, but don't expect that
this has much to do with my problem.

Anyone spare a clue?



Here's a trimmed log file:

2001-11-19 09:38:23 WebappLoader[/servlets]: Deploying class repositories to work directory
/home/dlr/SANDBOXEN/HEAD/site/work/localhost/servlets 
[snip deploy of long list of JARs and other startup]
2001-11-19 09:38:24 StandardManager[/servlets]: Loading 0 persisted sessions 
2001-11-19 09:38:24 StandardManager[/servlets]: Finish: Loading persisted sessions 
2001-11-19 09:38:25 ContextConfig[/servlets] Configuration error in application web.xml 
java.lang.IllegalArgumentException: Duplicate context initialization parameter SANDBOX 
        at org.apache.catalina.core.StandardContext.addParameter(StandardContext.java:1533)

        at java.lang.reflect.Method.invoke(Native Method) 
        at org.apache.catalina.util.xml.MethodSetter.end(XmlMapper.java:879) 
        at org.apache.catalina.util.xml.XmlMapper.matchEnd(XmlMapper.java:419) 
        at org.apache.catalina.util.xml.XmlMapper.endElement(XmlMapper.java:119) 
[snip]
2001-11-19 09:38:25 ContextConfig[/servlets]: Marking this application unavailable due to
previous error(s) 
2001-11-19 09:38:25 StandardContext[/servlets]: Error initializing naming context for context
/servlets 
2001-11-19 09:38:25 StandardContext[/servlets]: Context startup failed due to previous errors

[snip]
2001-11-19 09:38:25 StandardManager[/servlets]: Unloading complete 
2001-11-19 09:38:25 StandardHost[localhost]: Installing web application at context path /myapp
from URL file:/home/dlr/SANDBOXEN/HEAD/site/webapps/myapp 
[snip repeat of above]
2001-11-19 09:38:26 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2611
to localhost/127.0.0.1:11025 
2001-11-19 09:38:26 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2612
to localhost/127.0.0.1:11025 
2001-11-19 09:38:26 WarpHost[sc-dev2.sp.collab.net]: Installing web application at context
path /servlets from URL file:/home/dlr/SANDBOXEN/HEAD/site/webapps/myapp 
2001-11-19 09:38:26 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2613
to localhost/127.0.0.1:11025 
2001-11-19 09:38:26 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2614
to localhost/127.0.0.1:11025 
2001-11-19 09:38:26 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2615
to localhost/127.0.0.1:11025 
2001-11-19 09:38:26 WebappLoader[/servlets]: Deploying class repositories to work directory
/home/dlr/SANDBOXEN/HEAD/site/work/sc-dev2.sp.collab.net/servlets 
[snip deploy of long list of JARs and other startup]
2001-11-19 09:38:26 StandardManager[/servlets]: Seeding of random number generator has been
completed 
2001-11-19 09:38:27 ContextConfig[/servlets] Configuration error in application web.xml 
java.lang.IllegalArgumentException: Duplicate context initialization parameter SANDBOX 
[repeat of Catalina-internal stack trace shown above]


Here's my mod_webapp Apache config:

LoadModule webapp_module /usr/lib/apache/mod_webapp.so 
AddModule mod_webapp.c 
  
WebAppConnection    conn    warp    localhost:11025 
WebAppDeploy    myapp    conn    /servlets 


Here's the relevant portions of my web.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!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>

  <display-name>MyApp</display-name>
  <description>
    Collaborative development framework
  </description>

  <!-- Both SANDBOX (web application root) and TURBINE_RESOURCES (path
       to TR.props relative to web app root) are needed by TurbineConfig -->

  <context-param>
    <param-name>SANDBOX</param-name>
    <param-value>/home/dlr/sandbox</param-value>
    <description>
      The full file system path to this Myapp installation.
    </description>
  </context-param>

  <context-param>
    <param-name>TURBINE_RESOURCES</param-name>
    <param-value>conf/TurbineResources.properties</param-value>
    <description>
      The file system path to the Turbine/Fulcrum/Torque configuration
      file relative this Myapp installation's root directory.
    </description>
  </context-param>

[snipped remainder for brevity's sake]

--
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