Hi there,
I've got
Tomcat 5.0 and am using an application which accesses data from a MySQL DB. I have a WAR file (meetingroom.war) of the application, which I wanted to install, but I'm not being able to explode the war file in the webapps folder of Tomcat.
I have a feeling it's because of the
JDBC connection or something.
This snippet below is part of the error I get on starting up Tomcat:
------------------------------------
LifecycleException: Container StandardContext[/meetingroom] has not been starte
d
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:39
63)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
940)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1204)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:791)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1204)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:351
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:229
1)
at org.apache.catalina.startup.Catalina.start(Catalina.java:545)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
----------------------------------------------
Here is the entry for this application and database in the server.xml file:
----------------------------------
<Context path="/meetingroom" docBase="./project_builds/meetingroom/web-build" debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_MeetingRoom_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/MeetingRoomDB" auth="container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/MeetingRoomDB">
<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>user</value>
</parameter>
<parameter>
<name>password</name>
<value>meeting</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/MeetingRoomDB</value>
</parameter>
</ResourceParams>
</Context>
-----------------------------------
Even when I manually create all the folders in the webapps directory, I still get a 404 error saying that it can't even find any of my resources, JSPs or htmls.
Can anyone help me out? Much appreciated.
Thanks in advance.
- A.