This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Suresh Khant wrote:Thanks Tim Holloway for your reply ,
I need to know where the driver jar was installed in your web application server
I have local jboss application server 4.2 , mysql 5 , so everything (jboss application server , mysql database server , ....etc) is running locally in the same machine
It doesn't matter what machines are being used. What matters is that JBoss does not come with database drivers. You have to manually install whatever database drivers you'll be using. If you install them in the wrong place, it can cause problems. I have a strong suspicion that that is what is wrong here.
Joined: Feb 27, 2010
Thanks Tim Holloway for your reply ,
You have to manually install whatever database drivers you'll be using. If you install them in the wrong place
How to install database drivers ? do you mean adding the mysql jar file to the build path ? what is the right place for installation it ?
Your help, support and reply is really appreciated
Tim is right - there's a difference between build time environment of an application and the runtime environment of an application. As for the question about where to place the JDBC driver jar(s), it should go in JBOSS_HOME/server/<servername>/lib folder.