The .war file will not "explode" if you speciffy a <Context > entry for the webapp.
For instance...
myapp.war
<Context path="/myapp" docBase="myapp"> /* all your stuff below here */ </Context>
In this case, you have to expand the .war file to a directory on your own. Why Tomcat behaves like this is beyond me, but it does and I believe it is also documented.
One way around this is to specify things like this...
<Context path="/myapp" docBase="myapp.war"> /* all your stuff below here */ </Context>
Your .war file still won't be "exploded" but it doesn't matter since you are deploying the.war file directly, not pointing to a directory for the deployment. Of course, you will have no file system accsss inside your webapp, but you can't count on that anyway in an application that you claim to be portable to other appservers.
Jake
At 11:01 AM 3/19/2003 +0000, you wrote:
Hello,
Trying to implement a test app. with Database connection pooling. When I start up my Tomcat (4.0.4) the .war file will not even explode. I have included the relevant chunck of the log file at the end of this mail. I have removed Tyrex from /common/lib as the classes12.jar in there has a version of javax.sql.DataSource so I am going to use that. There was also a copy DataSource.class in jdbc2_0-stdext.jar so I removed that also. But no effect, my .war still will not explode.
Please help.
In my server.xml I have both <Resource> and <ResourceParams> tags: <Context path="/langtest" docBase="langtest" debug="3"> <Resource name="jdbc/langtest" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/langtest"> <parameter> <name>user</name> <value>andoni</value> </parameter> <parameter> <name>password</name> <value>mypass</value> </parameter> <parameter> <name>driverClassName</name> <value>oracle.jdbc.driver.OracleDriver</value> </parameter> <parameter> <name>driverName</name> <value>jdbc:oracle:thin:@localhost:1521:orcl</value> </parameter> </ResourceParams> </Context>
and in my web.xml file I have:
<resource-ref> <res-ref-name>jdbc/langtest</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
This is because the documentation cannot seem to decide if both the server.xml and web.xml entries are necessary or not?????
Is there anything else I need?
Thanks in advance.
Andoni.
2003-03-19 09:48:06 HttpProcessor[8080][4] Starting background thread 2003-03-19 09:51:29 HttpConnector Opening server socket on all host IP addresses 2003-03-19 09:51:29 StandardContext[/langtest]: Starting 2003-03-19 09:51:29 StandardContext[/langtest]: Processing start(), current available=false 2003-03-19 09:51:29 StandardContext[/langtest]: Configuring default Resources 2003-03-19 09:51:29 StandardContext[/langtest]: Error initializing resources: Document base C:\tomcat40\webapps\langtest does not exist or is not a readable directory 2003-03-19 09:51:29 StandardContext[/langtest]: Configuring non-privileged default Loader 2003-03-19 09:51:29 StandardContext[/langtest]: Configuring default Manager 2003-03-19 09:51:29 StandardContext[/langtest]: Processing standard container startup 2003-03-19 09:51:29 StandardContext[/langtest]: Context startup failed due to previous errors 2003-03-19 09:51:29 StandardContext[/langtest]: Stopping 2003-03-19 09:51:29 StandardContext[/langtest]: Stopping filters 2003-03-19 09:51:29 StandardContext[/langtest]: Sending application stop events 2003-03-19 09:51:29 StandardContext[/langtest]: Processing standard container shutdown 2003-03-19 09:51:29 StandardContext[/langtest]: Exception during cleanup after start failed LifecycleException: Container StandardContext[/langtest] has not been started at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]