File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletException

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems like an ejb-api jar file missing, Look for this jar and paste it into /lib directory ! (i.e in classpath )
 
Schandha Ravi
Ranch Hand
Posts: 167
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic