1 2 Previous Next 19 Replies Latest reply on May 22, 2009 4:50 AM by Daniel Bevenius

    ESB under JBossAS 5?

    - - Newbie

      Does ESB 4.5 run under JBoss AS 5?
      If not I have a problem with <jar-file> in persistence.xml which should scan for entities inside other jar files. It works with JBoss 5, but not with JBoss 4. Is there a workaround?

        • 1. Re: ESB under JBossAS 5?
          Daniel Bevenius Master

           

          Does ESB 4.5 run under JBoss AS 5?

          Not at the moment. We are currently working on this. Keep an eye on the forums as we will post there as soon as we have something for you to try out.

          If not I have a problem with <jar-file> in persistence.xml which should scan for entities inside other jar files. It works with JBoss 5, but not with JBoss 4. Is there a workaround?

          So you have an .esb archive that contains a persistence.xml and an 'jar-file' tag that references a jar file in the .esb archive?
          Would you be able to provide an example of this perhaps by modifying on of the quickstarts and I'd be happy to take a look.

          Regards,

          /Daniel

          • 2. Re: ESB under JBossAS 5?
            - - Newbie

            No I dont yet have any ESB archives. I am at the very beginning of the prototype. What I have done, is:

            Create an EAR project (using Eclipse)
            Create a EJB project
            Create some simple Java project

            The EJB project (later packed as ejbModule.jar) contains one annotated entity.

            The simple Java project containts only META-INF/persistence.xml and is packed as persistence.jar. In this persistence.xml I use the <jar-file> tag to add ejbModule.jar.

            The EAR project containst of course the META-INF/application.xml which includes the persistence.jar as EJB Module. And of course another module called ejbModule.

            Thats how the persistence is separated from the bean. Deploying this under JBoss 5 works, JBoss 4 fails. But my next step would be configuring ESB, which actually doesnt run under JBoss 5 :(

            Is there a different way to do this in ESB? Or any workaround?

            • 3. Re: ESB under JBossAS 5?
              Daniel Bevenius Master

               

              Deploying this under JBoss 5 works, JBoss 4 fails.

              OK so the ESB is not involved yet then. I think this is a more general issue and you might have better luck trying the JBoss AS forum.

              Regards,

              /Daniel

              • 4. Re: ESB under JBossAS 5?
                - - Newbie

                you were right. thanks!

                • 5. Re: ESB under JBossAS 5?
                  Vijay Phagura Newbie

                  I have used <jar-file> tag in Jboss 4.2.3 and jboss 5 successfully.

                  The only difference I found is the under Jboss 4.2.3 an absolute path works fine but under Jboss 5 it needs a relative path from the root of the EJB jar. So if you are using Jboss 4.x.x try giving a absolute path to your jar file.

                  • 6. Re: ESB under JBossAS 5?
                    - - Newbie

                    you are right vphagura. i did as i was told by beve and postet in the JBoss AS forum. This was the thread:

                    http://www.jboss.org/index.html?module=bb&op=viewtopic&t=155280

                    In fact this solution works now with JBoss AS 4.2.3. My tables are being created.

                    Anyways trying the same under JBoss AS with ESB installed as told in the gettingstarted.pdf, i keep getting the following error (anyways the table is being created, so this yet works):

                    http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154726

                    ERROR [SessionFactoryImpl] Error in named query: ProcessInst

                    What is wrong with ESB :( ?

                    • 7. Re: ESB under JBossAS 5?
                      Kevin Conner Master

                       

                      "Tashtego" wrote:
                      ERROR [SessionFactoryImpl] Error in named query: ProcessInst

                      What is wrong with ESB :( ?

                      Nothing as far as we are aware, yet :)

                      Lets continue this on the other topic.

                      • 8. Re: ESB under JBossAS 5?
                        Vijay Phagura Newbie

                        I'm curious when we are going to get JBossESB working with JBossAS 5?

                        We have JBoss 4.4 working currently with JBoss AS 4.2.3 and want to upgrade JBoss AS to 5 soon.

                        • 9. Re: ESB under JBossAS 5?
                          Marius Huianu Newbie

                          Does anybody know whether JBoss ESB 4.5 is compatible with JBoss AS version 4.0.5?

                          • 10. Re: ESB under JBossAS 5?
                            Daniel Bevenius Master

                            We've been working of getting JBossESB 4.x running on JBossAS 5 and in the process we discovered a few issues that needed to be fixed in AS for the ESB to work. This is the reason why you will need to check out a specific branch of AS to be able to test this. These fixes are scheduled for the next release for AS which is 5.1.0.GA.

                            If you'd like to try this out then please follow the instructions below.

                            Installation steps.
                            1. svn checkout http://anonsvn.jboss.org/repos/jbossas/branches/Branch_5_x.
                            2. Run build.sh or build.bat from the build directory. Server will be built in bulid/output/jboss-5.1.0.GA.
                            3. Remove the admin-console.war from the servers deploy directory (server/default/deploy/)
                            4. svn checkout http://anonsvn.jboss.org/repos/labs/labs/jbossesb/workspace/dbevenius/jbossas5.
                            5. Run 'ant dist' from the product directory.
                            6. Edit install/deployment.properties and set org.jboss.esb.server.home=/path/to/checkedout/AS5/Branch_5_x/build/output/jboss-5.1.0.GA.
                            7. Run 'ant deploy' from the product directory.
                            8. Startup the server.
                            9. Try out some quickstarts or deploy your .esb archive.

                            Running the integration tests:
                            1. Edit qa/test.properties and set org.jboss.esb.server.home to point to the same location as in step 6 above.
                            2. Run 'ant -f integration-build.xml integration' from the product directory.

                            We will be merging this branch into our main branch shortly so after that there will be no need to checkout the working branch above. I'll post a message to this thread when the merge has been done.

                            Please let us know if you discover anything that does not work of if you have any suggestions or comments.

                            Thanks,

                            /Daniel

                            • 11. Re: ESB under JBossAS 5?
                              bate Newbie

                              Hi Daniel
                              i just tried to build JBoss 5.1.0.GA under MS Windows Vista.
                              But the build failed with the following error ( sihe the last lines):
                              i am using jdk1.6.0_13

                              [java] [INFO] Generating component info files...
                              [java] [INFO] Creating testsuite-libraries.ent...
                              [java] [INFO] [site:attach-descriptor]
                              [java] [INFO] Preparing source:jar
                              [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive
                              invocation.
                              [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
                              [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]
                              [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
                              [java] [INFO] [enforcer:enforce {execution: ban-app-server-modules}]
                              [java] [INFO] [dependency:sources {execution: download-sources}]
                              [java] [INFO] [source:jar {execution: attach-sources}]
                              [java] [INFO] [install:install]
                              [java] [INFO] Installing D:\tools\jboss\Branch_5_x\thirdparty\pom.xml to C:
                              \Users\kaba\.m2\repository\org\jboss\jbossas\jboss-as-thirdparty\5.1.0-SNAPSHOT\
                              jboss-as-thirdparty-5.1.0-SNAPSHOT.pom
                              [java] [INFO]
                              [java] [INFO]
                              [java] [INFO] -------------------------------------------------------------
                              -----------
                              [java] [INFO] Reactor Summary:
                              [java] [INFO] -------------------------------------------------------------
                              -----------
                              [java] [INFO] JBossAS Component Matrix .............................. SUCCE
                              SS [5.287s]
                              [java] [INFO] JBoss Application Server Parent POM ................... SUCCE
                              SS [0.077s]
                              [java] [INFO] JBoss Application Server Thirdparty Build ............. SUCCE
                              SS [13.280s]
                              [java] [INFO] -------------------------------------------------------------
                              -----------
                              [java] [INFO] -------------------------------------------------------------
                              -----------
                              [java] [INFO] BUILD SUCCESSFUL
                              [java] [INFO] -------------------------------------------------------------
                              -----------
                              [java] [INFO] Total time: 21 seconds
                              [java] [INFO] Finished at: Fri May 15 11:01:52 CEST 2009
                              [java] [INFO] Final Memory: 34M/69M
                              [java] [INFO] -------------------------------------------------------------
                              -----------

                              _buildmagic:init:
                              Trying to override old definition of task property

                              _buildmagic:init:local-properties:

                              _buildmagic:init:buildlog:

                              configure:
                              [echo] groups: default
                              [echo] modules: main,j2se,mbeans,jmx,system,system-jmx,security,server,depl
                              oyment,jbossas/remoting,jmx-remoting,jbossas/jmx-remoting,messaging,cluster,vari
                              a,iiop,aspects,profileservice,connector,management,ejb3,tomcat,webservices,hiber
                              nate-int,console,spring-int

                              init:

                              _buildmagic:modules:most:

                              ======================================================================
                              == Executing 'most' in module 'main'...
                              ==

                              _buildmagic:init:

                              configure:
                              [echo] Classpath = D:\tools\jboss\Branch_5_x\thirdparty\gnu-getopt\lib\geto
                              pt.jar

                              _default:task-init:

                              init:

                              _buildmagic:build-bypass-checker:

                              _buildmagic:build-bypass-notice:

                              _buildmagic:build-bypass-check:

                              jars:

                              _buildmagic:init:

                              init:

                              _default:compile-classes:

                              _default:compile-resources:

                              _default:compile-etc:

                              _default:compile-bin:

                              _buildmagic:init:

                              init:

                              _default:fix-bin:

                              compile:

                              module-jars:
                              [mkdir] Created dir: D:\tools\jboss\Branch_5_x\main\tmp-bootstrap
                              [unjar] Expanding: D:\tools\jboss\Branch_5_x\thirdparty\jboss\jboss-bootstra
                              p\lib\jboss-bootstrap.jar into D:\tools\jboss\Branch_5_x\main\tmp-bootstrap
                              [delete] Deleting directory D:\tools\jboss\Branch_5_x\main\tmp-bootstrap

                              most:

                              ==
                              == Finished with 'most' in module 'main'.
                              ======================================================================


                              _module-main-most:

                              _module-main-most:

                              ======================================================================
                              == Executing 'most' in module 'j2se'...
                              ==

                              _buildmagic:init:

                              configure:

                              _default:task-init:

                              init:

                              _buildmagic:build-bypass-checker:

                              _buildmagic:build-bypass-notice:

                              _buildmagic:build-bypass-check:

                              jars:

                              _buildmagic:init:

                              init:

                              compile-classes:

                              _default:compile-etc:

                              compile:

                              module-jars:

                              most:

                              ==
                              == Finished with 'most' in module 'j2se'.
                              ======================================================================


                              _module-j2se-most:

                              _module-j2se-most:

                              ======================================================================
                              == Executing 'most' in module 'mbeans'...
                              ==

                              _buildmagic:init:

                              configure:

                              init:

                              _buildmagic:build-bypass-checker:

                              _buildmagic:build-bypass-notice:

                              _buildmagic:build-bypass-check:

                              output:

                              _buildmagic:init:

                              init:

                              _default:compile-classes:

                              _default:compile-etc:

                              compile-resources:

                              compile:

                              _default:most:

                              most:

                              ==
                              == Finished with 'most' in module 'mbeans'.
                              ======================================================================


                              _module-mbeans-most:

                              _module-mbeans-most:

                              ======================================================================
                              == Executing 'most' in module 'jmx'...
                              ==

                              _buildmagic:init:

                              configure:

                              init:

                              _buildmagic:build-bypass-checker:

                              _buildmagic:build-bypass-notice:

                              _buildmagic:build-bypass-check:

                              output:

                              _buildmagic:init:

                              init:

                              _default:compile-classes:

                              _default:compile-etc:

                              compile-resources:

                              compile:

                              _default:most:

                              most:

                              ==
                              == Finished with 'most' in module 'jmx'.
                              ======================================================================


                              _module-jmx-most:

                              _module-jmx-most:

                              ======================================================================
                              == Executing 'most' in module 'system'...
                              ==

                              _buildmagic:init:

                              configure:

                              _default:task-init:

                              init:

                              _buildmagic:build-bypass-checker:

                              _buildmagic:build-bypass-notice:

                              _buildmagic:build-bypass-check:

                              jars:

                              _buildmagic:init:

                              init:

                              _default:compile-classes:
                              [depend] Deleted 3 out of date files in 0 seconds
                              [javac] Compiling 44 source files to D:\tools\jboss\Branch_5_x\system\output
                              \classes
                              D:\tools\jboss\Branch_5_x\system\src\main\org\jboss\system\server\profileservice
                              \repository\clustered\local\JAXBRepositoryContentMetadataPersister.java:85: warn
                              ing: [deprecation] toURL() in java.io.File has been deprecated
                              return (RepositoryContentMetadata) unmarshaller.unmarshal(metadataStore.to
                              URL().openStream(), resolver);
                              ^
                              D:\tools\jboss\Branch_5_x\system\src\main\org\jboss\system\server\profileservice
                              \repository\clustered\local\JAXBRepositoryContentMetadataPersister.java:98: cann
                              ot find symbol
                              symbol : method marshal(org.jboss.system.server.profileservice.repository.clust
                              ered.metadata.RepositoryContentMetadata,java.io.File)
                              location: interface javax.xml.bind.Marshaller
                              marshaller.marshal(metadata, metadataStore);
                              ^
                              1 error
                              1 warning

                              BUILD FAILED
                              D:\tools\jboss\Branch_5_x\tools\etc\buildmagic\buildmagic.ent:436: Compile faile
                              d; see the compiler error output for details.

                              Total time: 34 seconds

                              • 12. Re: ESB under JBossAS 5?
                                Daniel Bevenius Master

                                Hi Kaba,

                                I've not build that branch today. Let me update and try it.

                                /Daniel

                                • 13. Re: ESB under JBossAS 5?
                                  Daniel Bevenius Master

                                  I've updated and tried building with Java 5 and Java 6 and both pass on Linux.
                                  Can you try updating if this is not a fresh checkout and also try cleaning out your maven repository.

                                  Thanks,

                                  /Daniel

                                  • 14. Re: ESB under JBossAS 5?
                                    bate Newbie

                                    build successfull!!!!!!!!!!!!!!!!
                                    i will try it now
                                    Than a lot Daniel

                                    1 2 Previous Next