Hi All,

I have a vanilla Tomcat 5.0.25 on Win 2K using JDK 1.4.2_04.
I undeployed all the default webapps except admin and manager, and I wanted to replace 
the
ROOT context with a war file.  However, here is where the problems seem to go wrong.

I have a ROOT.xml config file in ${catalina.home}/conf/Cataline/localhost

<?xml version='1.0' encoding='utf-8'?>
<Context docBase="ROOT.war" path="/">
  <Realm className="org.apache.catalina.realm.JDBCRealm"
         connectionName="tomcat"
         connectionPassword="tc"
         connectionURL="jdbc:postgresql://localhost:5432/xyz"
         debug="3"
         digest="MD5"
         driverName="org.postgresql.Driver"
         roleNameCol="role"
         userCredCol="passwd"
         userNameCol="username"
         userRoleTable="user_roles"
         userTable="users"/>
  <Resource name="jdbc/nursery" type="javax.sql.DataSource"/>
  <ResourceParams name="jdbc/nursery">
    <parameter>
      <name>url</name>
      <value>jdbc:postgresql://localhost:5432/xyz</value>
    </parameter>
    <parameter>
      <name>password</name>
      <value>[**cut**]</value>
    </parameter>
    <parameter>
      <name>maxActive</name>
      <value>4</value>
    </parameter>
    <parameter>
      <name>maxWait</name>
      <value>5000</value>
    </parameter>
    <parameter>
      <name>driverClassName</name>
      <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
      <name>username</name>
      <value>[**cut88]</value>
    </parameter>
    <parameter>
      <name>maxIdle</name>
      <value>2</value>
    </parameter>
  </ResourceParams>
</Context>

I added the war file to the webapps directory and renamed it to ROOT.war.  Here is the
relavant bits of the stdout.log:

INFO: Processing Context configuration file URL file:D:\Apache Software 
Foundation\Tomcat
5.0\conf\Catalina\localhost\ROOT.xml
08-Jun-2004 14:05:32 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]
08-Jun-2004 14:05:33 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL file:d:/Apache Software
Foundation/Tomcat 5.0/webapps/ROOT

WHY am I getting "INFO: Missing application web.xml", as the war file definately 
includes
one in WEB-INF and I can see it in the exploded war directory ROOT that tomcat makes.

Thanks for any help...

Tim





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to