4 Replies Latest reply on Jan 18, 2010 12:38 PM by Pieter Martin

    Ear and EJB no WAR problem

    Pieter Martin Novice


      I have an ear app with just one EJB, a MDB at that.

      I have a META-INF/ejb-jar.xml file and a seam.properties file in the ejb jar.

      However I am getting the following exception,

      Caused by: java.lang.IllegalStateException: Attempted to invoke a Seam component outside an initialized application
           at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
           at org.jboss.seam.contexts.Lifecycle.setupApplication(Lifecycle.java:134)
           at org.jboss.seam.Seam.componentForName(Seam.java:301)

      I know all will be well it I add an empty WAR archive but I'd rather not.

      How can I get past this?