3 Replies Latest reply on Jun 4, 2007 10:37 AM by fatbatman

    Habanero CR2 on Jboss 4.2.0

      Can Habanero CR2 run on Jboss 4.2.0?

      I tried doing a quick and dirty copy of all the jars from Habanero lib into my JBoss4.2/server/all/lib

      but I got a NoSuchMethodError error when something was trying to call;

      org.jboss.aop.ClassContainer.setChainOverridingForInheritedMethods(boolean)


      Is it possible ? or is there some code in Jboss4.2 that depends on the older 1.4 JBossCache/PojoCache?

      Thanks

      James

        • 1. Re: Habanero CR2 on Jboss 4.2.0
          manik

          Depends. You can use Habanero in a webapp or ear in AS 4.2.0, as long as the jbc libs are a part of your application.

          You cannot replace the JBoss Cache 1.x jars shipped with AS 4.2 with JBoss Cache 2.x jars.

          • 2. Re: Habanero CR2 on Jboss 4.2.0
            brian.stansberry

            More specifically you cannot replace the JBoss Cache 1.x jars in JBoss 4.x if you are using any of the following AS services which depend on the API-incompatible JBC 1.x:

            1) HttpSession replication.
            2) EJB3 SFSB replication
            3) JBC as a Hibernate 2nd Level Cache (which includes EJB3 entities).

            If you remove those services, you should be able to replace the jars in server/all/lib. But it's probably easier to package JBC in a war.

            • 3. Re: Habanero CR2 on Jboss 4.2.0

              Thanks, I'll try and package it in an ear.