0 Replies Latest reply on Aug 15, 2005 3:05 PM by Denis Souza

    Clustering problem with EJB 3 RC1

    Denis Souza Newbie

      Hi,

      I decided to try out clustering so I got some of my working EJBs and added the @Clustered annotation to them. Now, whenever I deploy I get this:

      15:50:01,703 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,name=shoppingcart.ShoppingCartBean
      java.lang.RuntimeException: java.lang.TypeNotPresentException: Type org.jboss.ha.framework.interfaces.LoadBalancePolicy not present
       at org.jboss.ejb3.SessionContainer.createMethodMap(SessionContainer.java:123)
       at org.jboss.aop.ClassContainer.initializeMetadata(ClassContainer.java:52)
      
      ...
      
      Caused by: java.lang.TypeNotPresentException: Type org.jboss.ha.framework.interfaces.LoadBalancePolicy not present
       at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(Unknown Source)
       at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown Source)
      
      ...
      
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ha.framework.interfaces.LoadBalancePolicy
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:292)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      


      I'm using JBOSS 4.0.3 RC1 with EJB3 RC1. I used the installer to set evertything up and selected all packages. I'm thinking it's probably a .jar file that's missing or some misconfiguration. Any ideas?

      Thanks,
      Denis Souza