• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed urgently in running a servlet in J2sdkee1.2.1  RSS feed

 
panchalee phookan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
My application comprises of a simple html form which takes user input and on submit updates data to a table in Oracle using a Servlet. The Servlet also redirects the updated data finally to a jsp page as output.
I have successfully tested the application using Tomcat. The jdbc driver classes had been included as a jar file under the /WEB-INF/lib forder.
I am trying the same code using j2sdkee1.2.1 - I have created an ear file - added a the servlet , the html and the jsp file as a web component(WAR). The jdbc class library for Oracle has also been included in the classpath ( under /lib/classes). It deploys successfully. But on execution the following error is reported:
javax.servlet.ServletException: Failed to create context : Oracle not found
at FaqServlet.init(FaqServlet.java:27)
at org.apache.tomcat.core.ServletWrapper$2.method(ServletWrapper.java:278)
at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:275)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:337)
at org.apache.tomcat.core.InvokerServlet.service(InvokerServlet.java:239)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
at java.lang.Thread.run(Thread.java:479)

Can anybody help me with this
[This message has been edited by panchalee phookan (edited May 10, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!