try copying it to the activemq lib directory. On Thu, Feb 4, 2010 at 2:15 PM, peterrhysjenkins <[email protected]> wrote: > > I am trying to create an ActiveMQ to WebSphereMQ bridge and I just cant seem > to get the Jar file loaded. It's been driving me mad - and I'm sure there's > some trick to forcing it to find the Jar - please let me know what the trick > is. Here is my bean: > > <bean id="webspheremq" > class="com.ibm.mq.jms.MQQueueConnectionFactory"> > <property name="hostName" value="localhost"/> > <property name="port" value="1414"/> > <property name="queueManager" value="QM1"/> > <property name="channel" value="TESTQ"/> > <property name="transportType" value="1"/> > </bean> > > The class is inside com.ibm.mqjms.jar - which I have verified. I even tried > copying the jar to activemq/bin - here is my classpath: > > CLASSPATH=C:\Program Files\IBM\WebSphere > MQ\java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere > MQ\tools\jms;c:\ActiveMQ\bin; > > And here is my JAVA_HOME - JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18 > > And here is the top of the output: > > Java Runtime: Sun Microsystems Inc. 1.6.0_18 C:\Program > Files\Java\jdk1.6.0_18\jre > Heap sizes: current=15872k free=14612k max=506816k > JVM args: -Dcom.sun.management.jmxremote -Xmx512M > -Dorg.apache.activemq.UseDedicatedTaskRunner=true > -Djava.util.logging.config.file=logging.properties > -Dactivemq.classpath=C:\activeMQ\bin\../conf; > -Dactivemq.home=C:\activeMQ\bin\.. -Dactivemq.base=C:\activeMQ\bin\.. > ACTIVEMQ_HOME: C:\activeMQ\bin\.. > ACTIVEMQ_BASE: C:\activeMQ\bin\.. > Loading message broker from: xbean:activemq.xml > ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: > org.springframework.beans.factory.BeanDefinitionStoreException: Failed to > load type: com.ibm.mq.jms.MQQueueConnectionFactory. Reason: > java.lang.ClassNotFoundException: com.ibm.mq.jms.MQQueueConnectionFactory; > nested exception is java.lang.ClassNotFoundException: > com.ibm.mq.jms.MQQueueConnectionFactory > java.lang.RuntimeException: Failed to execute start task. Reason: > org.springframework.beans.factory.BeanDefinitionStoreException: Failed to > load type: com.ibm.mq.jms.MQQueueConnectionFactory. Reason: > java.lang.ClassNotFoundException: com.ibm.mq.jms.MQQueueConnectionFactory; > nested exception is java.lang.ClassNotFoundException: > com.ibm.mq.jms.MQQueueConnectionFactory > at > org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) > at > org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) > at > org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.activemq.console.Main.runTaskClass(Main.java:251) > at org.apache.activemq.console.Main.main(Main.java:107) > Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: > Failed to load type: com.ibm.mq.jms.MQQueueConnectionFactory. Reason: > java.lang.ClassNotFoundException: com.ibm.mq.jms.MQQueueConnectionFactory; > nested exception is java.lang.ClassNotFoundException: > com.ibm.mq.jms.MQQueueConnectionFactory > > Can anyone help me to figure out how to force the class loader to load the > Jar ? > > Thanks in advance - Peter. > > > > > > -- > View this message in context: > http://old.nabble.com/Unable-to-find-class-com.ibm.mq.jms.MQQueueConnectionFactory-tp27458170p27458170.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > >
-- Regards, Hiram Blog: http://hiramchirino.com Open Source SOA http://fusesource.com/
