tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barnett, Brian W." <brian.barn...@pearson.com>
Subject RE: Can't change servlet path
Date Tue, 13 Sep 2005 22:39:47 GMT
You may want to consider using the jTDS (http://jtds.sourceforge.net/) SQL
Server driver also. It is faster and more reliable.

Sample <ResourceParams> entries:

	<parameter>
		<name>driverClassName</name>
		<value>net.sourceforge.jtds.jdbc.Driver</value>
	</parameter>
	<parameter>
		<name>url</name>
	
<value>jdbc:jtds:sqlserver://host:port/db;user=username;password=password</v
alue>
	</parameter>

-----Original Message-----
From: David Thielen [mailto:david@windward.net] 
Sent: Tuesday, September 13, 2005 3:51 PM
To: tomcat-user@jakarta.apache.org
Subject: Can't change servlet path


Hi;

 

I have tried the following in context.xml (in webapps/store/WEB-INF and
META-INF):

 

<Context path="/abc" docBase="store" debug="5" reloadable="true"
crossContext="true">

      <Resource name="jdbc/storeDB" auth="Container"
type="javax.sql.DataSource"

            username="sa" password="*****"
driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"

 
url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select
Method=cursor"

            maxActive="8" maxIdle="4"/>

</Context>

 

But http://localhost:8080/abc/ fails while http://localhost:8080/store/
works. What am I doing wrong?

 

Also, does context.xml go in WEB-INF or META-INF?

 

Thanks - dave

 

 


**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message