From dev-return-18783-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Fri Feb 05 12:24:26 2010 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 86383 invoked from network); 5 Feb 2010 12:24:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 12:24:26 -0000 Received: (qmail 42294 invoked by uid 500); 5 Feb 2010 12:24:26 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 42244 invoked by uid 500); 5 Feb 2010 12:24:26 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 42234 invoked by uid 99); 5 Feb 2010 12:24:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 12:24:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 12:24:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NdNE1-00012T-P6 for dev@activemq.apache.org; Fri, 05 Feb 2010 04:23:53 -0800 Message-ID: <27467059.post@talk.nabble.com> Date: Fri, 5 Feb 2010 04:23:53 -0800 (PST) From: peterrhysjenkins To: dev@activemq.apache.org Subject: Re: Unable to find class com.ibm.mq.jms.MQQueueConnectionFactory In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: peter.rhys.jenkins@us.ibm.com References: <27458170.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org "Fixed" Hiram Chirino wrote: >=20 > try copying it to the activemq lib directory. >=20 > On Thu, Feb 4, 2010 at 2:15 PM, peterrhysjenkins > 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: >> >> > =C2=A0class=3D"com.ibm.mq.jms.MQQueueConnectionFactory"> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 >> >> 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=3DC:\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=3DC:\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 >> =C2=A0Heap sizes: current=3D15872k =C2=A0free=3D14612k =C2=A0max=3D50681= 6k >> =C2=A0 =C2=A0JVM args: -Dcom.sun.management.jmxremote -Xmx512M >> -Dorg.apache.activemq.UseDedicatedTaskRunner=3Dtrue >> -Djava.util.logging.config.file=3Dlogging.properties >> -Dactivemq.classpath=3DC:\activeMQ\bin\../conf; >> -Dactivemq.home=3DC:\activeMQ\bin\.. -Dactivemq.base=3DC:\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 t= o >> 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 t= o >> 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 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.ja= va:98) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.activemq.console.command.AbstractCommand.execute(AbstractComm= and.java:57) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.ja= va:129) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.activemq.console.command.AbstractCommand.execute(AbstractComm= and.java:57) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:= 79) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invok= e0(Native Method) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.reflect.Method.invoke(Method.jav= a:597) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.activemq.console.Main.runTaskCl= ass(Main.java:251) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at 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.MQQueueConnect= ionFactory-tp27458170p27458170.html >> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. >> >> >=20 >=20 >=20 > --=20 > Regards, > Hiram >=20 > Blog: http://hiramchirino.com >=20 > Open Source SOA > http://fusesource.com/ >=20 >=20 --=20 View this message in context: http://old.nabble.com/Unable-to-find-class-co= m.ibm.mq.jms.MQQueueConnectionFactory-tp27458170p27467059.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.