0 Replies Latest reply on Feb 23, 2011 8:59 AM by Julio Cezar Canezin

    ERROR Attempted to invoke a Seam component outside an initialized application

    Julio Cezar Canezin Newbie

      I'm trying to configure seam 2 with Spring Security 3, but an Exception seems not to cooperate when I start up the Server:


      The exception is this:


      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.ioc.spring.SeamScopePostProcessor.postProcessBeanFacto
      ry(SeamScopePostProcessor.java:74)
              at org.springframework.context.support.AbstractApplicationContext.invoke
      BeanFactoryPostProcessors(AbstractApplicationContext.java:663)
              at org.springframework.context.support.AbstractApplicationContext.invoke
      BeanFactoryPostProcessors(AbstractApplicationContext.java:653)
              at org.springframework.context.support.AbstractApplicationContext.refres
      h(AbstractApplicationContext.java:407)
              at org.springframework.web.context.ContextLoader.createWebApplicationCon
      text(ContextLoader.java:276)
              at org.springframework.web.context.ContextLoader.initWebApplicationConte
      xt(ContextLoader.java:197)
              at org.springframework.web.context.ContextLoaderListener.contextInitiali
      zed(ContextLoaderListener.java:47)
              at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.
      java:530)
              at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
              at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
      a:1218)
              at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
      500)
              at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448
      )
              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
      40)
              at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
      .java:147)
              at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
      dlerCollection.java:161)
              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
      40)
              at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
      .java:147)
              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
      40)
              at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
      117)
              at org.mortbay.jetty.Server.doStart(Server.java:220)
              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
      40)
              at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.
      java:132)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
      jo.java:345)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.
      java:286)
              at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRu
      nMojo.java:204)
              at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183
      )
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:490)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:694)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
      Goal(DefaultLifecycleExecutor.java:569)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:539)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:387)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:348)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:180)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
      0)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
              at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
              at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)


              at org.codehaus.classworlds.Launcher.main(Launcher.java:375)