6 Replies Latest reply on Oct 20, 2008 9:27 AM by jaikiran

    appclient classpath additions for mc usage

    starksm64

      To run the appclient launcher when using the mc I had to add the following entries:

      ${jboss.home}/lib/jboss-classloader.jar
      ${jboss.home}/lib/jboss-classloading-spi.jar
      ${jboss.home}/lib/jboss-classloading-vfs.jar
      ${jboss.home}/lib/jboss-classloading.jar
      ${jboss.home}/lib/jboss-dependency.jar
      ${jboss.home}/lib/jboss-reflect.jar

      I'm going to look at just adding these via the client/jboss-appclient.jar manifest.

        • 1. Re: appclient classpath additions for mc usage
          jaikiran

          Apart from the ones listed in your post, while trying to get the EJB injection working (through -launcher org.jboss.ejb3.client.ClientLauncher) in application client https://www.jboss.org/community/docs/DOC-12835, i also had to add:

          %JBOSS_HOME%\client\jboss-metadata.jar
          %JBOSS_HOME%\lib\jboss-kernel.jar
          %JBOSS_HOME%\lib\jboss-xml-binding.jar
          %JBOSS_HOME%\lib\jboss-vfs.jar
          %JBOSS_HOME%\server\default\lib\jboss-ejb3-core.jar


          I had to add the %JBOSS_HOME%\server\default\lib\jboss-ejb3-core.jar because the %JBOSS_HOME%\client\jboss-ejb3-core-client.jar does not contain one of the required classes present in jboss-ejb3-core.jar.

          • 2. Re: appclient classpath additions for mc usage
            alrubinger

             

            "jaikiran" wrote:
            I had to add the %JBOSS_HOME%\server\default\lib\jboss-ejb3-core.jar because the %JBOSS_HOME%\client\jboss-ejb3-core-client.jar does not contain one of the required classes present in jboss-ejb3-core.jar.


            I see this also came up on the EJB3 User's Forum.

            Do you know which classes are missing from jboss-ejb3-client.jar?

            Once identified these get added to the M2 Assembly Plugin config in jbossas/projects/ejb3/trunk/core/jboss-ejb3-client.xml.

            S,
            ALR

            • 3. Re: appclient classpath additions for mc usage
              jaikiran

               

              "ALRubinger" wrote:
              Do you know which classes are missing from jboss-ejb3-client.jar?


              org.jboss.ejb3.DependencyPolicy was the one for which i got the class missing error. I will see if there are any other additional classes that need to be included in the client jar.


              • 4. Re: appclient classpath additions for mc usage
                jaikiran

                 

                "ALRubinger" wrote:

                Do you know which classes are missing from jboss-ejb3-client.jar?


                Here's the classes which are required in the client jar:

                org/jboss/ejb3/DependencyPolicy
                org/jboss/ejb3/entity/PersistenceUnitDeployment
                org/jboss/ejb3/deployers/JBoss5DependencyPolicy
                org/jboss/ejb3/MCDependencyPolicy

                "ALRubinger" wrote:

                Once identified these get added to the M2 Assembly Plugin config in jbossas/projects/ejb3/trunk/core/jboss-ejb3-client.xml.


                Do you want me to open a JIRA for this and commit it as a fix for that issue?


                • 5. Re: appclient classpath additions for mc usage
                  alrubinger

                   

                  "jaikiran" wrote:
                  Do you want me to open a JIRA for this and commit it as a fix for that issue?


                  Yep. :)

                  S,
                  ALR

                  • 6. Re: appclient classpath additions for mc usage
                    jaikiran