[jboss-user] [Clustering/JBoss] - Some trouble with EJB3 StatefulSessionBean in Clustering of

chencao0524 do-not-reply at jboss.com
Sun Dec 31 23:35:52 EST 2006


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!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997097#3997097

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997097



More information about the jboss-user mailing list