Galera estou fazendo um exemplo de aplicacao que usa jsp e oracle… eu importei um jar da ultima aplicacao que eu fiz onde nela contem as classes que eu importo nesse meu novo exemplo…ja coloquei o jar do oracle no eclipse tambem… na hora que eu chamo meu exemplo.jsp da esse erro de driver…o que pode ser…
SEVERE: Servlet.service() for servlet jsp threw exception
java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at br.com.mgf.oracle.OracleFactury.getConnection(OracleFactury.java:21)
at br.com.mgf.oracle.OracleDao.<init>(OracleDao.java:16)
at org.apache.jsp.scriptlet_jsp._jspService(org.apache.jsp.scriptlet_jsp:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
o meu codigo de importacao e jsp
<%@ page
import="java.util.*, br.com.mgf.oracle.*, br.com.mgf.modelo.*" %>
<html><ul>
<%
OracleDao dao = new OracleDao();
List contatos = dao.getList();
for(int i = 0; i < contatos.size(); i++) {
Contato contato = (Contato) contatos.get(i);
%>
<li><%=contato.getId()%>, <%=contato.getNome()%>, <%=contato.getEndereco()%>,
<%=contato.getEmail()%></li>
<%
}
%>
</ul></html>