Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql driver in tomcat problem

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I installed java web service, jwsdp-1_0_01 which also includes tomcat server. I am using it to connect to mysql db server. A driver, mysql-connector-java is provided to help in the connection. Its a jar file. I want to know where i should put this file to enable it to function. I put in C:\jwsdp-1_0_01\common\lib and in C:\jwsdp-1_0_01\shared\lib but nothing seems to be working. Anyone has any experience in this?
Thanks
 
surendra kumar H.A
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am facing the same problem with oracle.if you have overcome that problem please help me
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is the same for both of you. It depends! If you want it available to the server, it needs to be in the server classpath. For Tomcat this is server/lib I don't remember oc4j's directory structure well enough but, look for the class12_dms.zip or jar and place it with that. This will make the jar available for use with JNDI and sounds like that's what you are looking for. The shared lib is good if you are creating your own connection pool in your webapp. Another loction for this is in your webapps lib directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic