1 Reply Latest reply on Feb 7, 2004 2:21 AM by juha

    Hot deployment problem of JARs and WARs in JBoss 3.2.2 RC4

    single

      My application consists of 4 archives. 2 EJB JARs, and 2 WARs.

      I have tried hot deploying just the archive I modify and JBoss prints out that it has successfully deployed the archive but when I run my unit tests I immediately get a java.lang.ClassCastException on all my constructors.

      I have tried redeploying all archives since the WARs reference the EJB archives but that does not work either.

      I am only using local interfaces and do a regular cast of my home interfaces at lookup.

      If if reboot the server, everything works fine.

        • 1. Re: Hot deployment problem of JARs and WARs in JBoss 3.2.2 R

           

          "single" wrote:

          I have tried hot deploying just the archive I modify and JBoss prints out that it has successfully deployed the archive but when I run my unit tests I immediately get a java.lang.ClassCastException on all my constructors.



          This is expected. The easiest solution for you is to build an EAR (single package) that contains your two WARs and two EJB jars, and redeploy the entire EAR package at once.