Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
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).]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!