Author
ServletException
preethi Ayyappan
Ranch Hand
Joined: Oct 04, 2007
Posts: 518
posted Sep 06, 2008 05:18:00
0
Hi, I am trying to run a servlet program (http://localhost:8080/CallSetup )through tomcat.It is showing the following error:
exception
javax.servlet.ServletException : Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError : javax/persistence/EntityManagerFactory
com.ericsson.sip.RegistrationBrowserServlet.getRegistrations(RegistrationBrowserServlet.java:63)
com.ericsson.sip.RegistrationBrowserServlet.processRequest(RegistrationBrowserServlet.java:76)
com.ericsson.sip.RegistrationBrowserServlet.doGet(RegistrationBrowserServlet.java:125)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
please assist me to solve this Thanks.
Sagar Rohankar
Ranch Hand
Joined: Feb 19, 2008
Posts: 2896
seems like an ejb-api jar file missing, Look for this jar and paste it into /lib directory ! (i.e in classpath )
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Schandha Ravi
Ranch Hand
Joined: Oct 20, 2007
Posts: 167
This is surely not a problem of your servlet. It is related to your persistance logic. Make sure you have necessary jar files, configuration files and any other necessary information in your ear file.
Thanks & Regards, SK
SCJP 5.0, DB2 - 800, DB2 - 803, SCDJWS (On the way)
subject: ServletException