There are currently, 83 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here
User's Login
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.
I\'m trying to use MySQL as a database backend while I teach myself the ins & outs of Websphere. At the moment I\'m deploying to Tomcat 4.0. Using the JDBC MySQL driver available from MySQL\'s web site I get a ClassNotFoundException error on this line of code:
What\'s really weird is that the exact same code works in a .jsp page.
I\'ve added the .jar (and also tried unjar\'ing it) in all the lib folders, (tomcat\'s common/lib), websphere\'s own jre/lib & jdk/lib folder, etc. I\'m still getting the same problem and I have no idea why.
The short answer is to put your MySQL driver in your WAR file (under WEB-INF/lib).
The long answer: there are a few different ways to achieve this. WebSphere or other J2EE servers uses their own classloaders to achieve dynamic reload (updating code while the server is still up). For a WebSphere ClassLoader 101 discussion, see this article on WSDD.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
WebSphere is a registered trademark of International Business Machines
Corporation in the United States or other countries or both.
Please note that this site is a user-driven community site. It is not operated by IBM. Information is provided on an as-is basis and it may or may not be supported by IBM.