2 Replies Latest reply on Jan 9, 2007 11:21 AM by cao chen

    Some trouble with EJB3 StatefulSessionBean in Clustering of

    cao chen Newbie

      Hi, All.
      I'm using EJB3 Cluster in Jboss, when I learned the jboss Tutorial, I met some trouble. This is:
      When I deploy the jar to jboss, I always met the error:

      12:11:21,937 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:jar=tutorial.jar,name=StatefulBean,service=EJB3
      State: FAILED
      Reason: java.lang.RuntimeException: java.lang.NoSuchFieldError: eviction_polic
      y_provider

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.j2ee:jar=tutorial.jar,name=StatefulBean,service=EJB3
      State: FAILED
      Reason: java.lang.RuntimeException: java.lang.NoSuchFieldError : eviction_polic
      y_provider



      the sources are below:

      //interface
      public interface StatefulRemote
      {
       void increment();
      }


      //stateful sessionbean
      @Stateful
      @Clustered
      @Remote( StatefulRemote.class)
      public class StatefulBean implements java.io.Serializable, StatefulRemote
      {
       private int state = 0;
      
       public void increment()
       {
       System.out.println("counter: " + (++state));
       }
      
       public String toString()
       {
       return super.toString() + " state-(" + state + ")";
       }
      }



      My environments are: JBoss 4.0.5.GA and java-cache.jar version is 1.4.0.SP1



      It trouble me several days, Anyone could help me? ^_^~

      Happy new year!