10 Replies Latest reply on Nov 7, 2005 9:01 PM by Petr Fischer

    jboss newbie question: re-deploy

    Patrick Angeles Novice

      I'm using the Seam build of JBoss.

      I use the 'deploy' target similar to the supplied build.xml file in the Seam source (i.e., copy .ear file to jboss deployment dir). This works about 3/4 of the time. Every now and then, when I re-compile and deploy, I get the following error:

      13:35:21,542 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=com.inertiabev.affiliate.account.RegisterAction
      java.lang.ClassCastException: org.jboss.ejb3.stateful.StatefulContainer
      at org.jboss.util.naming.Util.createSubcontext(Util.java:54)
      at org.jboss.util.naming.Util.createSubcontext(Util.java:37)
      at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:50)
      at org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.java:69)
      at org.jboss.ejb3.stateful.StatefulManager.startService(StatefulManager.java:91)

      Whenever I get this, the appserver seems to be in a corrupted state, and my apps stop working. This goes away if I shutdown and restart the jboss process.

      I've checked all my SFSBs and they all have the appropriate @Remove annotations.

      Any tips to doing graceful redeploys?

      Thanks in advance...