1 2 Previous Next 17 Replies Latest reply on Feb 2, 2012 7:20 AM by foutjo Go to original post
      • 15. Re: Can't resolve @Clustered in session bean
        foutjo

        I was finally able to get this to work.

         

        Here is a breakdown of the problem and resolution:

         

        Installed latest version of Eclipse Indigo.

        Installed latest version of JBoss 7.1.

        Installed the latest JBoss Tools 3.3.

         

        ***NOT USING MAVEN - so the previous <dependencies> suggestions would not work for me.

         

         

        Created a java project.

         

        Setup project's build path to include JRE 1.6 and JBoss 7.1 Runtimes.

         

        Created a simple stateless bean that was going to be clustered.

         

        @Stateless

        @Clustered

        public class clusterTest

        {     

           public void process()

           {

            

                  }

        }

         

         

        ***** Eclipse could not resolve the @Clustered annotation

         

        Stephen I tried your previous suggestion and though it did not work, it did point me in the right direction.

                   -->    You can add it in the Preferences from Server/Runtime Environments/Default Classpath Entries/

                   -->     The path you're looking for on AS7.0.2 is "modules/org/jboss/ejb3/main/jboss-ejb3-ext-api-2.0.0-beta-1.jar".

         

         

        When I looked at the jar files that where included in the JBoss7.1 Runtime libraries I did not see that the "jboss-ejb3-ext-api-2.0.0-beta-1.jar" was included.

         

        I went ahead and added "jboss-ejb3-ext-api-2.0.0-beta-1.jar" as an External JAR and THIS FINALLY resolved my problem.

         

         

        Now my question to the JBoss experts is this....  Being that I am not an expert one might ask how in the future can someone determine if an EJB feature(such as the @Clustered annotation) is included in the standard JBoss7.1 Runtime

        libraries or if you have to go add it?  And if adding an additional jar file is required then what would be the easiest way to determine what that missing jar file might be?  There has to be a better path than the one I took:)

         

         

        Thanks again for everyone's help with this problem.

        • 16. Re: Can't resolve @Clustered in session bean
          jaikiran

          Joseph Fouts wrote:

           

           

           

          Now my question to the JBoss experts is this....  Being that I am not an expert one might ask how in the future can someone determine if an EJB feature(such as the @Clustered annotation) is included in the standard JBoss7.1 Runtime

          libraries or if you have to go add it?  And if adding an additional jar file is required then what would be the easiest way to determine what that missing jar file might be?  There has to be a better path than the one I took:)

          I think you are a bit confused about JBoss AS runtime and the "runtime" term used by Eclipse IDE for the JBoss AS7 integration. What you are asking is actually related to IDE configurations. You want the AS7 specific jar files to be available in the build time classpath of your application when you create a project in your IDE against AS7. I'll move this to our JBoss Tools forum where you might get an answer.

          • 17. Re: Can't resolve @Clustered in session bean
            foutjo

            I believe the term "a bit confused" is the reason I started this thread to begin with.

             

            I guess if I knew what my problem actually was I might have been able to place it in the proper forum.

             

            I appreciate you moving it to the proper one.  Thanks.

            1 2 Previous Next