I am using Tomcat 4.1.30 with a SQL Server 7.0 database. Since I needed a
DataSource, I modified the Tomcat server.xml as follows:
<Context path="/StrutsTest" docBase="StrutsTest.war" debug="1"
reloadable="true">
<Logger className="
org.apache.catalina.logger.FileLogger"
prefix="localhost_StrutsTest_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/FieldProjDB" auth="Container"
type="
javax.sql.DataSource" />
<ResourceParams name="jdbc/FieldProjDB">
<parameter>
<name>factory</name>
<value>
org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>user</name>
<value>lab</value>
</parameter>
<parameter>
<name>password</name>
<value>lab</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>net.sourceforge.jtds.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:jtds:sqlserver://192.xxx.xx.xx:1433/Development;User=lab;Password=lab</value>
</parameter>
</ResourceParams>
</context>
With this configuration, I can get my data source to work! But the only
thing is that the war file is not unpacked under webapps folder but directly
under
%TOMCAT_HOME%/work/Standalone/localhost. I know that all deployed apps get
listed here subsequently, but why does it not put it in webapps folder as
well? This is causing the paths in my various properties files to fail.
_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage!
http://join.msn.click-url.com/go/onm00200362ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)