You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Miren Urkixo <mi...@tinieblas.com> on 2007/07/22 11:33:07 UTC
tomcat 6 and virtual donmains
HEllo
i have one great problem.
i am working using tomcat 5.0.XX and my virtual host configuration i made
into the server.xml file.
i am testing tomcat 6 i am configuring the virtualhost into the server xml
and it says me always, whe i try to load the page, that the conext doesn't
exist.
can you help me?
my configuration into the server.xml is:
<Host name="pruebas.domain.info" debug="0" appBase="webapps/domain"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs"
prefix="domain_log." suffix=".txt" timestamp="true"/>
<Context path="/domain" docBase="" reloadable="true" crossContext="true">
<Resource name="jdbc/db" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/db">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.postgresql.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:postgresql://127.0.0.1:5432/db</value>
</parameter>
<parameter>
<name>username</name>
<value>user</value>
</parameter>
<parameter>
<name>password</name>
<value/>
</parameter>
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>20</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAbandonedTimeout</name>
<value>300</value>
</parameter>
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat 6 and virtual donmains
Posted by Hassan Schroeder <ha...@gmail.com>.
On 7/22/07, Miren Urkixo <mi...@tinieblas.com> wrote:
> and can you help me for making the same configuration into tomcat 6?
> i am reading the doc and i dont load the configurationç
I'm not sure what that last comment means, but go here:
<http://tomcat.apache.org/tomcat-6.0-doc/>
:: and read the User Guide sections 8,9, and 24, and you should be able
to get your configurations sorted out. :-)
If not, post the relevant parts of the revised config files and whatever
error messages you're getting...
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat 6 and virtual donmains
Posted by Miren Urkixo <mi...@tinieblas.com>.
and can you help me for making the same configuration into tomcat 6?
i am reading the doc and i dont load the configurationç
thanks
----- Original Message -----
From: "Hassan Schroeder" <ha...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, July 22, 2007 3:46 PM
Subject: Re: tomcat 6 and virtual donmains
> On 7/22/07, Miren Urkixo <mi...@tinieblas.com> wrote:
> .
>> i am working using tomcat 5.0.XX and my virtual host configuration i made
>> into the server.xml file.
>> i am testing tomcat 6 i am configuring the virtualhost into the server
>> xml
>> and it says me always, whe i try to load the page, that the conext
>> doesn't
>> exist.
>> can you help me?
>> my configuration into the server.xml is:
>
> just plain wrong -- Resource params are done quite differently now.
> You should read the documentation for the version you're using, not
> just copy things from the configuration of previous versions. :-)
>
> And putting Context elements in server.xml is strongly discouraged.
>
> HTH,
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat 6 and virtual donmains
Posted by Hassan Schroeder <ha...@gmail.com>.
On 7/22/07, Miren Urkixo <mi...@tinieblas.com> wrote:
.
> i am working using tomcat 5.0.XX and my virtual host configuration i made
> into the server.xml file.
> i am testing tomcat 6 i am configuring the virtualhost into the server xml
> and it says me always, whe i try to load the page, that the conext doesn't
> exist.
> can you help me?
> my configuration into the server.xml is:
just plain wrong -- Resource params are done quite differently now.
You should read the documentation for the version you're using, not
just copy things from the configuration of previous versions. :-)
And putting Context elements in server.xml is strongly discouraged.
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org