IntelliJ Java IDE
The moose likes Tomcat and the fly likes server.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "server.xml" Watch "server.xml" New topic
Author

server.xml

Keith Lockey
Ranch Hand

Joined: Oct 05, 2001
Posts: 48
Server.xml will not unpack wars. Can someone point me to resources for this.
Thanks,
Keith


Thanks,<br />Keith
Keith Lockey
Ranch Hand

Joined: Oct 05, 2001
Posts: 48
if i take the context out the server.xml with unpack the war. Then I can put the context in and it will work for the application. Otherwise, the Host will not unpack the war file.
here is the log file exception:

2003-11-11 16:53:21 StandardContext[/paws]: Error initializing resources: Document base C:\Program Files\Apache Tomcat 4.0\webapps\paws does not exist or is not a readable directory
2003-11-11 16:53:21 StandardContext[/paws]: Context startup failed due to previous errors
2003-11-11 16:53:21 StandardContext[/paws]: Exception during cleanup after start failed
LifecycleException: Container StandardContext[/paws] has not been started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3434)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
<!-- Tomcat paws Context -->
<Context debug="0" docBase="paws" path="/paws">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="paws_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/accessdb" auth="Container" type="javax.sql.DataSource" />
<ResourceParams name="jdbc/accessdb">
<parameter><name>factory</name><value>org.apache.commons.dbcp.BasicDataSourceFactory</value></parameter>
<parameter><name>maxActive</name><value>100</value></parameter>
<parameter><name>maxIdle</name><value>30000</value></parameter>
<parameter><name>maxWait</name><value>100</value></parameter>
<parameter><name>username</name><value></value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name><value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
<parameter><name>url</name><value>jdbc dbc awsTest</value></parameter>
</ResourceParams>
</Context>
[ November 11, 2003: Message edited by: Keith Lockey ]
 
 
subject: server.xml
 
Threads others viewed
Upgrading tomcat; help with context container
JNDI in Servlets
DataSource : No suitable driver...?????
server.xml quirk with startup servlet
Servlet reload Problem
IntelliJ Java IDE