Hi, I am using Tomcat5.0 and getting problem in a JDBC Program. What i did is; 1. Created a test folder in webapps (test is my project name.) 2. Created WEB-INF/classes folder and placed my small servlet class file which contains a small JDBC Program to database access. 3. Now i created another folder 'lib' in WEB-INF directory and placed classes111.zip inside it. 4. Created web.xml inside WEB-INF directory and other stuff.
The problem is that when i access my servlet it gives me following error message; "java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver" Looks like i have to make some editing in some config file so that jar/zip files in lib directory get loaded. Please help. I have tried everything to resolve the problem. I even set CATALINA_HOME in environment variables and placed classes111.zip in common/lib directory so that it will be accessible to all the applications but this also didn't work. My Servlet code is;
Thanks dear. It worked now. BTW, if this is the case can you tell me where we specify this thing... Just wanted to know so that i do not need to rename all the third party classes zip.... I am sure that it will be in some .bat file in bin folder. I tried to find it but got no success.