Hi, I am using Tomcat 4.1.31 and jdk 1.4 for a legacy web application. I have spent two days trying to deploy myApp.war to $CATALINA_HOME/webapps, but no success. I searched the Web and found most of the solution is for Tomcat 5 and Tomcat 6.
The strange thing I have is Tomcat 4.1 works when I set docBase tag to local, myApp's working directory. docBase = "C:\myAppWokingDir", but it is not working when I set docBase = "myApp". There is no error, just when I run startup.bat, the DOS window quickly close itself before I can see any exceptions. I have searched the log files in $CATALINA_HOME/logs, there is no log being written. How can I debug? This is datasource in the server.xml under $CATALINA_HOME/conf. Note when docBase = C:\myAppWokingDir", Tomcat is able to be started. I have put db2Java.jar and other DBCP jars under $CATALINA_HOME/common/lib <Context docBase="myApp" path="/myApp" reloadable="true" debug="1" > <Logger className="org.apache.catalina.logger.FileLogger" prefix="procurement_log." suffix=".txt" timestamp="true"/> <Resource name="jdbc/test_DS" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/test_DS"> </parameter> <parameter> <value>40</value> </parameter> <parameter> <name>maxIdle</name> <value>10</value> </parameter> <parameter> <name>maxWait</name> <value>10000</value> </parameter> <parameter> <name>username</name> <value>testuser</value> </parameter> <parameter> <name>password</name> <value>hello</value> </parameter> <!-- Class name for JDBC driver --> <parameter> <name>driverClassName</name> <value>COM.ibm.db2.jdbc.app.DB2Driver</value> </parameter> <!-- The JDBC connection url for connecting to your DB --> <parameter> <name>url</name> <value>jdbc:db2:testdb</value> </parameter> </ResourceParams> </Context> Please help, thanks a lot Jamez.