[jboss-user] [JBoss Seam] - Exception when redeploying ear with multiple wars.

trickyvail do-not-reply at jboss.com
Thu Nov 8 16:01:18 EST 2007


I have an ear that contains two wars. When I redeploy I get the following error in the log:
13:53:03,135 INFO  [TomcatDeployer] undeploy, ctxPath=/www.domain1.com, warUrl=.../deploy/admin.ear/www.domain1.com.war/
  | 13:53:03,277 INFO  [TomcatDeployer] undeploy, ctxPath=/www.admin.domain2.net, warUrl=.../deploy/admin.ear/www.admin.domain2.net.war/
  | 13:53:03,279 ERROR [net]] Exception sending context destroyed event to listener instance of class org.jboss.seam.servlet.SeamListener
  | java.lang.IllegalStateException: Attempted to invoke a Seam component outside the an initialized application
  |         at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
  |         at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:50)
  |         at org.jboss.seam.contexts.ServletLifecycle.endApplication(ServletLifecycle.java:118)
  |         at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:39)
  |         at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3893)
  |         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4525)
  |         at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1134)
  |         at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4615)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 
If I remove one of the wars from the ear, the application can be redeployed without error. It looks like the seam listener is destroyed for the first war, but then another message is sent to the now non-existent seam listener.

This error does not prevent the application from redeploying, but I thought a seam developer may want to be made aware of it.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103089#4103089

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103089



More information about the jboss-user mailing list