in my opinion i had set the classpath correctly but it must be something in 
this direction.

mbean was build using ant: here my build.xml file
command was: ant mb-build


  |   <!-- The jar containing the classes necessary for the different JMS 
client samples -->
  |   <property name="jms.client.jar"  value="jms-client.jar"/>
  |   <!-- The jar deployed in the EJB contained for the Message Driven Bean 
(MDB) --> 
  |   <property name="jms.mdb.jar"  value="wsmqmdb.jar"/>
  |   <!-- The jar containing the custom MBean classes for WSMQ JBoss JMS 
provider support -->
  |   <property name="jms.mb.sar" value="wsmqmb.sar"/>
  |   
  |   <!--The classpath required to compile all the code. Quite minimal since 
small application-->
  |   <path id="compile.classpath">
  |     <pathelement location="${jboss.dist}/client/jbossall-client.jar"/>
  |     <pathelement location="${jboss.server}/lib/com.ibm.mqjms.jar"/>
  |     <!-- For the custom MBeans -->
  |     <pathelement location="${jboss.server}/lib/jboss.jar"/>
  |   </path>
  | 
  |   <path id="client.run.classpath">
  |     <pathelement location="${jars}/${jms.client.jar}"/>
  |     <pathelement location="${jboss.server}/lib/com.ibm.mqjms.jar"/>
  |     <pathelement location="${jboss.server}/lib/com.ibm.mq.jar"/>
  |     <pathelement location="${jboss.dist}/client/jbossall-client.jar"/>
  |     <pathelement location="${jboss.dist}/client/log4j.jar"/>
  |   </path>
  | 
  |   <target name="main" description="Default target displaying a short usage">
  |     <echo message="You can process the different targets in the following 
order:"/>
  |     <echo message=""/>
  |     <echo message="    Compile/package MBs:   mb-build"/>
  |     <echo message="    Deploy MBs:            mb-deploy"/>
  |     <echo message="    Compile/package MDBs:  mdb-build"/>
  |     <echo message="    Deploy MDBs:           mdb-deploy"/>
  |     <echo message="    Run JMS client:        jms-client"/>
  |     <echo message="    Undeploy MBs:          mb-undeploy"/>
  |     <echo message="    Undeploy MDBs:         mdb-undeploy"/>
  |     <echo message="    clean:                 clean classes and jars/wars"/>
  |     <echo message="    veryclean:             clean target and backup 
files"/>
  |     <echo message=""/>
  |   </target>
  |   
  |   <target name="mb-build" description="Build and package MBs">
  |     <mkdir dir="${jars}"/>
  |     <mkdir dir="${classes}"/>
  | 
  |     <!-- Compile -->
  |     <javac srcdir="${src}"
  |            destdir="${classes}"
  |            includes="jmx/**"
  |            classpathref="compile.classpath"
  |            debug="true"
  |            deprecation="false"
  |            optimize="false"/>
  | 
  |     <!-- Package -->
  |     <mkdir dir="${classes}/META-INF"/>
  |     <copy file="${resources}/jboss-service.xml" 
todir="${classes}/META-INF"/>
  |     <jar jarfile="${jars}/${jms.mb.sar}">
  |       <fileset dir="${classes}">
  |         <include name="jmx/**"/>
  |         <include name="META-INF/jboss-service.xml"/>
  |       </fileset>
  |     </jar>
  |   </target>
  | 

com.ibm.mq.jar, com.ibm.mqjms.jar, com.ibm.mqbind.jar are in 
JBOSS_HOME/server/default/lib.

greetings

dominique






View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864439#3864439

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864439


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to