 3 | (WebApplicationImpl.java:1213)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699 |
 3 | , but whenever I access the db through a servlet container I get this error: objectdb.java.util.ArrayList ... .java:543) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty ... (ContextHandler.java:543) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay |
 3 | ','Doe')) Thanks, it worked. I was using servlet context because I thought that using static ... the same as with keeping the EntityManagerFactory in the servlet context. Maybe you had an old EntityManagerFactory in the servlet context without the Unique? Notice that adding Unique to an existing |
 3 | -Westfalia in Germany The 3 popular options for standard JPA web applications are: Servlet container (Tomcat / Jetty) with servlets and JSPs. Java EE application server (JBoss / GlassFish) with servers, JSPs, JSF and EJB. Spring MVC Framework with either a servlet container or an application server |
 3 | )
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service |
 3 | \CommonThirdParty\ThirdPartyLibs\servlet.jar;D:\Projects\Anritsu\Perforce\ws_alexander.golyshkin_ALL\DEV ... .persistence.jar javax.resource.jar javax.servlet.jsp.jar javax.servlet.jsp.jstl.jar javax.transaction.jar |
 2 | ClassPathXmlApplicationContext(
new String[] { "spring-servlet.xml ... String[] { "spring-servlet.xml" });
guestDao = context.getBean(GuestDao.class |
 2 | your main page rather than the servlet? In this example the servlet sets the "guest" attribute |
 2 | (Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener ... (ACL.java:174)
... 13 more
Caused by: java.lang.ClassNotFoundException: javax.servlet |
 2 | .[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path |