(I actually thought you were trying to write a Tapestry application that invades foreign countries, lol)

Did you try putting the same myapp.xml in the application context configuration? Put a context.xml file in your WEB-INF directory with the resource definitions.

( http://tomcat.apache.org/tomcat-5.5-doc/config/context.html )

--
Ing. Leonardo Quijano Vincenzi
DTQ Software


Jean-Eric Cuendet wrote:
Hi,
Until now I used Tomcat with a direct checkout of my Tapestry app (in /home/myapp) with the file TOMCAT/conf/Catalina/localhost/myapp.xml pointing to /home/app I'd like to create a war now for easy deployement. So I'll no more have the TOMCAT/conf/Catalina/localhost/myapp.xml file since all the files will be in my WAR in TOMCAT/webapps/myapp/.../web.xml

How do I tell Tomcat which database resource to use? In which file?
I have:
<Resource name="jdbc/symptoDataSource"
                  auth="Container"
                  type="javax.sql.DataSource"
                  driverClassName="org.postgresql.Driver"
                  url="jdbc:postgresql://localhost/myapp"
                  username="myapp"
                  password="***"
                  maxActive="20"
                  defaultAutoCommit="false"
                  timeBetweenEvictionRunsMillis="60000"/>

Thanks for any help
-jec

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to