4 Replies Latest reply on Mar 24, 2009 3:15 PM by René Nijkamp

    No application context when instantiating

    René Nijkamp Newbie
      I'm using an HTTP servlet in my SEAM project. This is for the communication with a bunch of devices, the actual SEAM pages e.g. are used for the administration login.

      The servlet is defined as follow:
      public class RdmHttpServlet extends HttpServlet{

      which works great. The servlet is added in the web.xml and is started on Jboss start.
      But when i try to instantiate a DAO, i get an "No application context active" exception.
      The instantiation is done with
      final PhysicalDeviceDAO physicalDeviceDAO = (PhysicalDeviceDAO) Component.getInstance("physicalDeviceDAO");
      which works fine from the seam context.
      What do i miss?

      I'm using the following configuration:
      Jboss 4.2.3
      Seam 2.1.1 GA
      Java 1.6.0_11

      Many thanks in advance.

      René