2010/11/4 Nagulapalli, Srinivas <srinivas.nagulapa...@starwoodvo.com>:
> Forgot to put contents of application's context.xml. Still no difference
> in contents between 6.0.18 and 6.0.20- same file listed under
> %TOMCAT_HOME%\conf\Catalina\localhost\MYPROJECT.xml for both versions
>

A lot is wrong with your context file. Please read the docs,
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html


> Contents of MYPROJECT.XML :
> ============================
> <!-- The contents of this file will be loaded for each web application
> -->
> <DefaultContext debug="2" reloadable="true" crossContext="true">

The root element must be <Context>

>
>        <Logger className="org.apache.catalina.logger.FileLogger"
>                prefix="MYPROJECT_log." suffix=".txt"
>                timestamp="true"/>
>
>        <Resource name="jdbc/MYPROJECT" auth="Container"
>                type="javax.sql.DataSource"
>                description="MYPROJECT Application Database"/>
>
>        <ResourceParams name="jdbc/MYPROJECT">

There is no <ResourceParams> tag in Tomcat 6.0, nor in 5.5.

>                <parameter>
>                        <name>factory</name>
>
> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
>                </parameter>
>
>                <parameter>
>                        <name>removeAbandoned</name>
>                                <value>true</value>
>                </parameter>
>
>                <parameter>
>                        <name>removeAbandonedTimeout</name>
>                                <value>60</value>
>                </parameter>
>        </ResourceParams>
>
>        <Valve className="org.apache.catalina.valves.AccessLogValve"
>         prefix="MYPROJECT_access_log." suffix=".txt"
>         pattern="common"/>
> </DefaultContext>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to