5 Replies Latest reply on Jan 3, 2009 9:09 PM by Yong Hao Gao

    JBM Examples in JBoss 5.x

    Yong Hao Gao Master



      Here are what I'm doing for the examples:

      In JBoss 5 trunk, I put the examples under messaging/src/etc/examples

      Also I change the build scripts to let jb5 build to include the examples.

      I also change each example's build.xml to deploy and undeploy the needed destinations for the example, so that the examples don't reply on a pre-deployed destinations-service.xml.
      The clustered examples is slightly different from the non-clustered ones in that the clustered destinations deployment is done by deploying the destination's xml file, while the non-clustered ones use ServerPeer mbean interface to deploy and undeploy queues and topics.

      So far the JBoss 5 trunk version is JBoss-5.1.0.beta, all non-clustered examples can run successfully, but I still have problem starting clustered node. The error is that when I copy the hajndi-jms-ds.xml to the node and start it, it gives me such error message:

      18:39:46,944 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS IN ERROR: Name -> Error

      vfsfile:/home/howard/apps/jboss-5.1.0.Beta1/server/messaging-node0/deploy/messaging/hajndi-jms-ds.xml -> java.lang.ClassNotFoundException: org.jboss.jms.asf.ServerSessionPoolLoader from BaseClassLoader@a48d59{VFSClassLoaderPolicy@13c03bb{name=vfsfile:/home/howard/apps/jboss-5.1.0.Beta1/server/messaging-node0/deploy/messaging/hajndi-jms-ds.xml domain=ClassLoaderDomain@185ad79{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@183f74d} roots=[MemoryContextHandler@18411456[path= context=vfsmemory://3j011-mwezny-fpduvira-1-fpduvz0u-26 real=vfsmemory://3j011-mwezny-fpduvira-1-fpduvz0u-26]] delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}


      I found a fresh build of JB5 now hasn't hajndi-jms-ds.xml. Did I miss something? I'll look further into it, maybe ask JBoss guy to help.