Hi,
We are getting DataSources problem while setting multiple hosts with
tomcat-5.5.Also we using MS SQL Server for database.
Server.xml entry
......
<HOST name='xyz.org' appBase='/home/abc/'>
<Alias>www.xyz.org</Alias>
</Host>
in conf/catalina/ we have
xyz.org folder
in that we have context.xml. It contains entires as
<?xml version="1.0" encoding="UTF-8"?>
<Context
docBase=""
reloadable="true"
swallowOutput="true">
<Resource
auth="Container"
name="jdbc/protocol"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
password="pwd"
driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
maxIdle="30"
maxWait="10000"
username="userid"
url="jdbc:microsoft:sqlserver://host:1433;DatabaseName=db;SelectMethod=Cursor"
maxActive="100"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>META-INF/context.xml</WatchedResource>
</Context>
In the home/abc/META-INF we also have same above content as abc.xml.
But, when we try to login into the application it's not able to create
database connection from the URL. It seems it's not loading the driver.
Can any one please help us in this case asap.
Thanks,
LALITH
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]