I made a back up of the root folder, the I removed all it's content and I put my web app...
Anastasios Angelidis wrote:
I tried that...
I also have a context setup for my web app...
<Context path="/mywebapp" docBase="mywebapp" debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger" directory="infectedlogs" prefix="localhost_infected_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/InfectedDB" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/InfectedDB">
<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>30</value></parameter>
<parameter><name>maxWait</name><value>10000</value></parameter>
<parameter><name>username</name><value>tasso</value></parameter>
<parameter><name>password</name><value>voodoo</value></parameter>
<parameter><name>driverClassName</name><value>com.mysql.jdbc.Driver</value></parameter>
<parameter><name>url</name><value>jdbc:mysql://localhost:3306/infected</value></parameter>
</ResourceParams>
</Context>
This means that above I would also have to change the context path and doc base to ROOT right? Which I did also... but now my datasource doesnt get initialized, I get a null pointer exception when trying to retrieve my db connection fro the datasource
Turner, John wrote:
In server.xml change the port that CoyoteConnector is listening on from 8080
to 82.
Put your webapp in $CATALINA_HOME/webapps/ROOT.
You might want to read the docs.
John
-----Original Message-----
From: Anastasios Angelidis [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 4:23 PM
To: [EMAIL PROTECTED]
Subject: How to set up default web app?
When browsing to http://localhost:8080, Tomcat servs the default tomcat web app....
What would I have to do to setup a container on port 82 and have it server my web app as default thanks...
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>