Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletException

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • 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: 2907
1
Java Spring Ubuntu
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic