• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Help needed urgently in running a servlet in J2sdkee1.2.1

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic