2 Replies Latest reply on Mar 15, 2011 3:09 AM by Wolf-Dieter Fink

    Can 2 EAR share common libraries

    Andreas Hess Newbie



      In JBoss AS 5.1.0 our software works fine, but as we try JBoss AS 6.0.0 it just refuses to work!


      In JBoss AS 5.1.0:


      We have a couple of EAR deployments (some with EJB/MDB other with WAR contents). We created many single EAR deployments,

      because this way it is easier to hot deploy a single component without any down time.


      One EAR (called common) has all the libraries as well as the client EBJ parts (interfaces). All other EAR can access any of the classes

      from the common EAR without any issues. One single class loader is default in 5.1.0.


      In JBoss AS 6.0.0:


      Isolation between the EAR deployments is default. I will spare you from the histoy of failed attempts except the last:


      We have added all libraries to each EAR (also the client EJB interfaces). The EJB lookup seems to work, but a cast ends in a


      "$Proxy155 can not cast to ...." (or similar).


      Is there a way to have all EAR deployments share all libraries, but being isolated from other applications not being a part of our software?


      Any help is much apreciated.