You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Turner, John" <JT...@AAS.com> on 2003/01/03 22:14:00 UTC
RE: How to set up default web app?
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:voodoo@videotron.ca]
> Sent: Friday, January 03, 2003 4:23 PM
> To: tomcat-user@jakarta.apache.org
> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to set up default web app?
Posted by Anastasios Angelidis <vo...@videotron.ca>.
Actually, I solved my problem why still the tomcat indx.jsp was beeing
served... It's because it was beeing compiled, but I still have my
context problem how will I set this up now?
Thanks
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:voodoo@videotron.ca]
>>> Sent: Friday, January 03, 2003 4:23 PM
>>> To: tomcat-user@jakarta.apache.org
>>> 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:
>>> <ma...@jakarta.apache.org>
>>> For additional commands, e-mail:
>>> <ma...@jakarta.apache.org>
>>>
>>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
>>
>>
>>
>>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to set up default web app?
Posted by Anastasios Angelidis <vo...@videotron.ca>.
Not only that it still serving the tomcat index.jsp but the images dont
get displayed...
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:voodoo@videotron.ca]
>>> Sent: Friday, January 03, 2003 4:23 PM
>>> To: tomcat-user@jakarta.apache.org
>>> 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:
>>> <ma...@jakarta.apache.org>
>>> For additional commands, e-mail:
>>> <ma...@jakarta.apache.org>
>>>
>>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
>>
>>
>>
>>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to set up default web app?
Posted by Anastasios Angelidis <vo...@videotron.ca>.
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:voodoo@videotron.ca]
>>Sent: Friday, January 03, 2003 4:23 PM
>>To: tomcat-user@jakarta.apache.org
>>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:
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
>>
>>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>