3 Replies Latest reply on Jun 26, 2006 4:28 AM by Marc Reis

    configuring jboss cache for EJB3/hibernate

    blalls asdsd Novice

      Could you please tell me how can I configure my EJB3 application to use jboss cache. I searched the documentation but there is not a step by step guid to be followed

        • 1. Re: configuring jboss cache for EJB3/hibernate
          Marc Reis Novice

          I also have some issues on this, but maybe I can help a bit.
          Do you want to configure the 2nd level Cache? If you have a hibernate.cfg.xml in your project, you can set it up in there.
          Alternatively the "shiped" full install comes with the ejb3-clustered-sfsbcache-service.xml and ejb3-entity-cache-service.xml where caches are Setup.

          • 2. Re: configuring jboss cache for EJB3/hibernate
            Ben Wang Master

            What issue you have now? Just curious. Thanks.


            • 3. Re: configuring jboss cache for EJB3/hibernate
              Marc Reis Novice

              (I hope I am not hijacking...)
              I have the problem, that when I try to use the cache, it results in a:

              16:51:44,625 WARN [ServiceController] Problem starting service jboss.j2ee:ear=t
              java.lang.RuntimeException: java.lang.NoSuchFieldError: eviction_policy_provider at org.jboss.ejb3.
              pper.java:105) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
              upport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB

              I guess it is due to configuration or version missmatching.. (AS4.0.4GA with 1.3.0 or 1.4.0CR1). I wanted to use a cache >=1.3.0 so that I can use the optimistic node locking (prefarable the 1.4.0 since its been tuned for speed).

              I posted about it here (with details)
              , but I guess it got kind of lost (after the 1.2.4 issue).