Hello,
This message will appear when I call my servlet from my web browser. I use Tomcat 5.5 and JDBC Oracle driver. The JDBC Oracle driver (ojdbc14.jar) is installed under the WEB-INF/lib directory.
Can someone help me with this error message?
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
admin.Database.connect(Database.java:26)
model.LanDAO.getLan(LanDAO.java:21)
control.LanServlet.doGet(LanServlet.java:32)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
-
Servlet exception (3 messages)
- Posted by: H??kan Axheim
- Posted on: October 04 2005 04:34 EDT
Threaded Messages (3)
- Servlet exception by ravi rasappan on October 05 2005 16:02 EDT
- Servlet exception by srinivasa rallabandi on October 06 2005 23:10 EDT
-
Servlet exception[ Go to top ]
- Posted by: ravi rasappan
- Posted on: October 05 2005 16:02 EDT
- in response to H??kan Axheim
Hi,
I think you need to check your classpath. Make sure that JDBCDriver is avialable in classpath.
Thanks
Ravi Rasappan -
Servlet exception[ Go to top ]
- Posted by: srinivasa rallabandi
- Posted on: October 06 2005 23:10 EDT
- in response to ravi rasappan
I have got the same message before and got around by adding the jar file to the startup classpath for the Tomcat. -
Classpath[ Go to top ]
- Posted by: Tom Cole
- Posted on: October 08 2005 21:15 EDT
- in response to srinivasa rallabandi
The problem is the container can't find your JDBC driver. How you resolve this will depend on which container you're using. If you're using Tomcat, then you would place the .jar file for the Oracle driver in either the WEB-INF/lib directory of your web application, or (if you're declaring a global connection pool) in the <%TOMCAT_HOME%>/server/lib directory.