 28 | .1
javax.servlet
servlet-api
2.5
provided
javax.servlet.jsp
jsp-api |
 28 |
javax.servlet
servlet ... >
javax.servlet.jsp
jsp-api
2.1 |
 28 | javax.servlet.*;
public class GuestListener implements ServletContextListener {
// Prepare ... it as an application scope attribute in the servlet context - when the web application starts ... ). The next step is adding a servlet class that will manage the guestbook page. |
 28 | guest;
import javax.persistence.*;
import javax.servlet.*;
public class GuestListener ... and creates an EntityManagerFactory instance and stores it as an application scope attribute in the servlet ... - when the application stops (contextDestroyed). The next step is adding a servlet class that will manage the guestbook page. |
 28 | application servers such as GlassFish and JBoss, and not by servlet containers, such as Tomcat ... of the EJB class and injects an instance of the EJB class into the servlet (as shown in the next step ... . The next step is adding a Servlet Class that will serve as the application controller. |
 28 | are only supported by Java EE application servers such as GlassFish and JBoss, and not by servlet ... : Manages the instantiation of the EJB class and injects an instance of the EJB class into the servlet (as ... transaction begin and commit. The next step is adding a Servlet Class that will serve as the application controller. |
 27 | NB: the following issue only happens with ObjectDB, it does not happen with EclipseLink. Glassfish3.0.1 objectdb-2.2.5_10 JavaEE6 web app The error reports as: javax.servlet.ServletException ... [Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception javax.validation |
 23 | replace the content of the new source file with the following code: package guest;
import javax.servlet ... .RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class |
 23 | .servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired ... .RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class |
 16 | . If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty |