File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting to Sybase database - regarding

 
PNS Subramanian
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic