3 Replies Latest reply on Aug 5, 2008 8:26 AM by alexeinov

    Building embedded jboss from JBoss-5.0.0.CR-src failed

    arakasi69

      Hello,

      after trying to build the JbossAS 5CR1 from source with some problems (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138371 after that the build of embedded jboss fails too with:

      Reference jboss.cache.classpath not found


      After the successful build of Jboss5 CR1 i changed the directory to 'embedded' and executed the build with default.

      How can i fix the dependency ?

        • 1. Re: Building embedded jboss from JBoss-5.0.0.CR-src failed
          johanmicoud

          I Have the same problem and it seems that nobody at JBoss cares since Embedded mode is not a priority.

          JBoss Embedded is really a great concept, What JBoss miss is that someone who hesitates to use or not JBoss AS will certainly look for to any kind of Embedded Support.

          OpenEJB has Embedded Support
          GlassFish V3 has Embedded Support

          Bill did the job to mockup the JNDI stuff but there still a lot of issues that are not solved. Providing the build of Embedded binaries from the AS source codebase is a minimum. That doesn't work and the current version (beta 3) is obsolete. So, what we do ?

          Sam

          • 2. Re: Building embedded jboss from JBoss-5.0.0.CR-src failed
            skajotde

             

            "johanmicoud" wrote:
            JBoss Embedded is really a great concept, What JBoss miss is that someone who hesitates to use or not JBoss AS will certainly look for to any kind of Embedded Support.

            OpenEJB has Embedded Support
            GlassFish V3 has Embedded Support

            Bill did the job to mockup the JNDI stuff but there still a lot of issues that are not solved. Providing the build of Embedded binaries from the AS source codebase is a minimum. That doesn't work and the current version (beta 3) is obsolete. So, what we do ?


            +1

            I have read that Jboss 5 is bunch of preconfigured services around OSGi and in this model for me is very strong point/virtue to running these services in whatever environment (junit, jse, server, jboss, tomcat, weblogic). Time of standalone Jee servers is gone, and Jboss way with preconfigured services on OSGi is fine but that services have to be able running in many context ;) Great success Spring is that Spring is running in many environments ().

            • 3. Re: Building embedded jboss from JBoss-5.0.0.CR-src failed
              alexeinov

               

              "Arakasi69" wrote:

              Reference jboss.cache.classpath not found

              How can i fix the dependency ?


              I found what's wrong with the dependency. The path reference
              <path refid="jboss.cache.classpath"/>

              used in the file embedded/build.xml does not exist any more in the included entity file
               <!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
              


              The offending reference should be replaced by these two:
               <path refid="jboss.cache.jbosscache.core.classpath"/>
               <path refid="jboss.cache.jbosscache.pojo.classpath"/>
              

              I'm not sure if both are needed, but the compiler accepts this classpath.

              Then, the compiler would miss the class aspects/SecurityClientInterceptor that was moved to the ejb3 module according to https://jira.jboss.org/jira/browse/EJBTHREE-1266

              It would probably be more correct to update the import statement in the classes that use that class, but it also works adding this reference to embedded/build.xml:
              <path refid="org.jboss.aspects.classpath" />


              Compilation goes well with those fixes, though the build breaks later on trying to assemble library jars. References to ejb3 jar files are not correct, and I have no idea how to fix them. I gave up at this point.