aspose file tools*
The moose likes Tomcat and the fly likes Connecting to Sybase database - regarding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connecting to Sybase database - regarding" Watch "Connecting to Sybase database - regarding" New topic
Author

Connecting to Sybase database - regarding

PNS Subramanian
Ranch Hand

Joined: Jul 13, 2004
Posts: 150
I am trying to connect to Sybase database from Tomcat
1) Included the <Resource> and <ResourceParams> tag in server.xml
2) Inlcuded <resource-ref> tag in web.xml file
3) Included the driver jar file in <tomcat>/common/lib folder.

Get the following exception when i try to lookup the datasource

SQLException : Cannot create JDBC driver of class '' for connect URL 'null'

Does anything more need to be done?
PNS Subramanian
Ranch Hand

Joined: Jul 13, 2004
Posts: 150
Got it working.
Strangely though, the "How-to" section in Tomcat(5.0.30) docs doesn't make a mention of <context> tag in server.xml - just had to include this and it worked.
[ July 08, 2005: Message edited by: PNS Subramanian ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connecting to Sybase database - regarding
 
Similar Threads
Non XA Driver in a distributed environment - What is the Best Practice?
Problem in connection pooling
Tomcat Database Connection Pooling Error
Connecting to an Oracle DB
Database connectivity issue