3 Replies Latest reply on Oct 27, 2008 10:35 PM by Daniel Bernstein

    Context active problem

    Alex Ardelean Newbie

      Hello everyone, I've developed an application using seam.
      This web application is composed by several modules which are being built in jar at install task from ant. The problem is occurred when I try to use the Component.getInstance(....) within one of those jars. It raises me :

      java.lang.IllegalStateException: No application context active
              at org.jboss.seam.Component.forName(Component.java:1799)
              at org.jboss.seam.Component.getInstance(Component.java:1849)
              at org.jboss.seam.Component.getInstance(Component.java:1832)
              at org.jboss.seam.Component.getInstance(Component.java:1826)
              at fr.datasystem.atlas.transport.common.businessConcept.pricing.Price.convertIntoNewCurrency(Price.java:84)
              at fr.datasystem.atlas.transport.common.businessConcept.pricing.PriceTest.convertIntoNewCurrency(PriceTest.java:22)

      The bean that I am looking for is also in this jar, it has a    local annotation, a name and normally it would work if this code would have been placed in my jar...
      But I need it in a lib/jar and has inside the jar a WEB-INF/components.xml properly configured but still raises me that exception. What could be the problem for that? Anyone knows? Thanks.