Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 96857 invoked from network); 14 Sep 2009 01:52:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Sep 2009 01:52:00 -0000 Received: (qmail 25685 invoked by uid 500); 14 Sep 2009 01:51:59 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 25614 invoked by uid 500); 14 Sep 2009 01:51:59 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 25604 invoked by uid 99); 14 Sep 2009 01:51:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2009 01:51:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FB_WORD1_END_DOLLAR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.nicholson@gmail.com designates 209.85.132.245 as permitted sender) Received: from [209.85.132.245] (HELO an-out-0708.google.com) (209.85.132.245) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2009 01:51:48 +0000 Received: by an-out-0708.google.com with SMTP id d14so1057346and.13 for ; Sun, 13 Sep 2009 18:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=4+QhHttvg8DL7GnugzhjTDjROIzSisTUAhCH9Xi46kU=; b=nyAuDMI3Ao/ZwXaUY1N93duscd7lINjXFlKmZDWZgubirjz0PJeENjaohA1RL8ZdmF VeAu2iIqJzlf6gJTJV5Aei8HOyzQ1GJSvuKdvff/4zaRZL5xaAzFAZy8DBVWDKqZ2Vkx Bm1wlkNDlCcnFDOqqtglehgHELIkXRQepXDCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=A+PR2tVqWXBcwtJjO7lrsresMY1MI7JiOWdcsLMRcXo+0okpPN1LGfztpWhgdkH4yh BLeBYr+3reoESvD0tFLCG+Yw2m7YFsdHme9QVbD2B+R3BDsU9WHHl2uuLpuuXHk7sQAh 5gSyZmjIdwiLaEj/6/Foi3h6wFkfycW+oWc3M= Received: by 10.101.5.22 with SMTP id h22mr5688619ani.186.1252893087242; Sun, 13 Sep 2009 18:51:27 -0700 (PDT) Received: from ?10.0.1.5? ([66.102.121.53]) by mx.google.com with ESMTPS id 22sm2444344yxe.7.2009.09.13.18.51.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Sep 2009 18:51:26 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: Cannot get an Active MQ Publish working. From: Robert Nicholson In-Reply-To: <25aac9fc0909131643s450724b7na3298e64cfa00829@mail.gmail.com> Date: Sun, 13 Sep 2009 20:51:24 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <25aac9fc0909131449o64bb72d0w78e6e1a0573aca6a@mail.gmail.com> <25aac9fc0909131643s450724b7na3298e64cfa00829@mail.gmail.com> To: "JMeter Users List" X-Mailer: Apple Mail (2.1076) X-Virus-Checked: Checked by ClamAV on apache.org I don't think that should be necessary should it but my earlier =20 mistake was not using the right classname but I don't know why it's =20 doing what it's doing now. When running in IntelliJ and you have all the jars in ext added to the =20= classpath how are you suppose to relate that to ./src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/=20 JMSSampler.java which is needed to debug the JMSSampler. In general I'd rather debug with all class compiled and put in the =20 output directory instead of this classpath switcheroo stuff. Is this cast a supported way of getting the object Queue queue =3D (Queue) context.lookup(getSendQueue()); That looks a little spurious to me. Is it necessary to have a jndi.properties file? I ask because HermesJMS works against ActiveMQ without the need for =20 one although that said I cannot browse temporary queues that were =20 created because they have :'s in their name and therefore parse as =20 schemes resulting in an error in HermesJMS. The following url suggests I need a jndi.properties file http://activemq.apache.org/jndi-support.html if I want to look up any JMS resources with JNDI when using ActiveMQ On Sep 13, 2009, at 6:43 PM, sebb wrote: > On 14/09/2009, Robert Nicholson wrote: >> I would expect that it will complain about the contents of the =20 >> binding. As >> you can see already it can >> see from my P2P configuration that it needs this context factory =20 >> and even >> though those jars are in the lib >> directory it still complains with a ClassNotFoundException. >> > > Are you running JMeter directly from its command file, or are you > running it under an IDE? > > If running under an IDE you probably need to add the jars to the IDE =20= > classpath. > >> On Sep 13, 2009, at 5:25 PM, Evandro Grezeli wrote: >> >> >>> cause the jndi binding it=C5=9B your contextFactory class. You have = to =20 >>> pass it >> as >>> parameter in your test plan! >>> >>> On Sun, Sep 13, 2009 at 6:49 PM, sebb wrote: >>> >>> >>>> On 13/09/2009, Robert Nicholson wrote: >>>> >>>>> jmeter.protocol.jms.sampler.JMSSampler: Cannot >> instantiate >>>>> class: >> org.activemq.jndi.ActiveMQInitialContextFactory >>>>> javax.naming.NoInitialContextException: Cannot >> instantiate >>>>> class: >> org.activemq.jndi.ActiveMQInitialContextFactory >>>>> [Root exception is java.lang.ClassNotFoundException: >>>>> org.activemq.jndi.ActiveMQInitialContextFactory] >>>>> >>>>> Please note I've have the following in JMETER_HOME/lib >>>>> >>>>> drwxr-xr-x@ 40 robert staff 1360 Sep 13 11:19 . >>>>> drwxr-xr-x@ 11 robert staff 374 Sep 13 10:39 .. >>>>> -rw-r--r--@ 1 robert staff 192042 Jun 17 10:11 Tidy.jar >>>>> -rw-r--r--@ 1 robert staff 2315826 Sep 13 10:37 >>>>> >>>> activemq-core-5.2.0.jar >>>> >>>>> -rw-r--r--@ 1 robert staff 72851 Jun 17 10:11 >>>>> avalon-framework-4.1.4.jar >>>>> -rw-r--r--@ 1 robert staff 113369 Jun 17 10:11 bsf-2.4.0.jar >>>>> -rw-r--r--@ 1 robert staff 281694 Jun 17 10:11 bsh-2.0b4.jar >>>>> -rw-r--r--@ 1 robert staff 29337 Jun 17 10:16 bshclient.jar >>>>> -rw-r--r--@ 1 robert staff 46725 Jun 17 10:11 >>>>> >>>> commons-codec-1.3.jar >>>> >>>>> -rw-r--r--@ 1 robert staff 571259 Jun 17 10:11 >>>>> commons-collections-3.2.jar >>>>> -rw-r--r--@ 1 robert staff 305001 Jun 17 10:11 >>>>> commons-httpclient-3.1.jar >>>>> -rw-r--r--@ 1 robert staff 109043 Jun 17 10:11 commons-=20 >>>>> io-1.4.jar >>>>> -rw-r--r--@ 1 robert staff 132165 Jun 17 10:11 >> commons-jexl-1.1.jar >>>>> -rw-r--r--@ 1 robert staff 261809 Jun 17 10:11 >> commons-lang-2.4.jar >>>>> -rw-r--r--@ 1 robert staff 60841 Jun 17 10:11 >>>>> commons-logging-1.1.1.jar >>>>> -rw-r--r--@ 1 robert staff 180792 Jun 17 10:11 >>>>> >>>> commons-net-1.4.1.jar >>>> >>>>> -rw-r--r--@ 1 robert staff 56089 Jun 17 10:11 >>>>> excalibur-datasource-1.1.1.jar >>>>> -rw-r--r--@ 1 robert staff 17669 Jun 17 10:11 >>>>> excalibur-instrument-1.0.jar >>>>> -rw-r--r--@ 1 robert staff 76725 Jun 17 10:11 >>>>> >>>> excalibur-logger-1.1.jar >>>> >>>>> -rw-r--r--@ 1 robert staff 44462 Jun 17 10:11 >>>>> >>>> excalibur-pool-1.2.jar >>>> >>>>> drwxr-xr-x@ 16 robert staff 544 Jun 17 10:16 ext >>>>> -rw-r--r--@ 1 robert staff 16030 Sep 13 10:37 >>>>> geronimo-j2ee-management_1.0_spec-1.0.jar >>>>> -rw-r--r--@ 1 robert staff 71952 Jun 17 10:11 >>>>> htmllexer-2.0-20060923.jar >>>>> -rw-r--r--@ 1 robert staff 138838 Jun 17 10:11 >>>>> htmlparser-2.0-20060923.jar >>>>> -rw-r--r--@ 1 robert staff 142391 Jun 17 10:11 =20 >>>>> jCharts-0.7.5.jar >>>>> -rw-r--r--@ 1 robert staff 65261 Jun 17 10:11 >>>>> >>>> jakarta-oro-2.0.8.jar >>>> >>>>> -rw-r--r--@ 1 robert staff 153115 Jun 17 10:11 jdom-1.1.jar >>>>> -rw-r--r--@ 1 robert staff 116243 Jun 17 10:16 jorphan.jar >>>>> -rw-r--r--@ 1 robert staff 708951 Jun 17 10:11 =20 >>>>> js_rhino1_6R5.jar >>>>> drwxr-xr-x@ 3 robert staff 102 Sep 10 00:20 junit >>>>> -rw-r--r--@ 1 robert staff 120640 Jun 17 10:11 junit3.8.2.jar >>>>> -rw-r--r--@ 1 robert staff 86165 Jun 17 10:11 logkit-1.2.jar >>>>> -rw-r--r--@ 1 robert staff 278286 Jun 17 10:11 >> serializer-2_9_1.jar >>>>> -rw-r--r--@ 1 robert staff 232498 Jun 17 10:11 soap.jar >>>>> -rw-r--r--@ 1 robert staff 3176148 Jun 17 10:11 xalan_2_7_1.jar >>>>> -rw-r--r--@ 1 robert staff 1229289 Jun 17 10:11 >> xercesImpl-2_9_1.jar >>>>> -rw-r--r--@ 1 robert staff 194354 Jun 17 10:11 xml-=20 >>>>> apis-2_9_1.jar >>>>> -rw-r--r--@ 1 robert staff 517073 Jun 17 10:11 >>>>> xmlgraphics-commons-1.3.1.jar >>>>> -rw-r--r--@ 1 robert staff 24956 Jun 17 10:11 =20 >>>>> xpp3_min-1.1.4c.jar >>>>> -rw-r--r--@ 1 robert staff 431406 Jun 17 10:11 =20 >>>>> xstream-1.3.1.jar >>>>> >>>>> audrey:lib robert$ jar tf activemq-core-5.2.0.jar |grep jndi >>>>> org/apache/activemq/jndi/ >>>>> >> org/apache/activemq/jndi/ActiveMQInitialContextFactory$1.class >>>>> >> org/apache/activemq/jndi/ActiveMQInitialContextFactory$2.class >>>>> >> org/apache/activemq/jndi/ActiveMQInitialContextFactory.class >>>>> >> org/apache/activemq/jndi/ActiveMQWASInitialContextFactory.class >>>>> org/apache/activemq/jndi/JNDIBaseStorable.class >>>>> org/apache/activemq/jndi/JNDIReferenceFactory.class >>>>> org/apache/activemq/jndi/JNDIStorableInterface.class >>>>> org/apache/activemq/jndi/LazyCreateContext.class >>>>> org/apache/activemq/jndi/NameParserImpl.class >>>>> org/apache/activemq/jndi/ReadOnlyContext$1.class >>>>> >> org/apache/activemq/jndi/ReadOnlyContext$ListBindingEnumeration.class >>>>> >> org/apache/activemq/jndi/ReadOnlyContext$ListEnumeration.class >>>>> >> org/apache/activemq/jndi/ReadOnlyContext$LocalNamingEnumeration.class >>>>> org/apache/activemq/jndi/ReadOnlyContext.class >>>>> >>>>> Isn't JMeter suppose to find these classes? >>>>> >>>> >>>> Yes, perhaps the jar needs a later version of Java? >>>> >>>> >>>>> I would prefer that Jmeter log it's classpath >>>>> >>>>> >>>> >>>> Which is rarely needed, and is very long ... it is available if you >>>> enable debug logging. >>>> >>>> >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: >>>>> jmeter-user-unsubscribe@jakarta.apache.org >>>>> For additional commands, e-mail: >>>>> jmeter-user-help@jakarta.apache.org >>>>> >>>>> >>>>> >>>> >>>> >> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: >> jmeter-user-unsubscribe@jakarta.apache.org >>>> For additional commands, e-mail: >> jmeter-user-help@jakarta.apache.org >>>> >>>> >>>> >>> >>> >>> -- >>> Atenciosamente >>> Regards >>> Evandro Grezeli de B. Neves >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: >> jmeter-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: >> jmeter-user-help@jakarta.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org