I don't think that should be necessary should it but my earlier
mistake was not using the right classname but I don't know why it's
doing what it's doing now.
When running in IntelliJ and you have all the jars in ext added to the
classpath how are you suppose to relate that to
./src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/
JMSSampler.java
which is needed to debug the JMSSampler.
In general I'd rather debug with all class compiled and put in the
output directory instead of this classpath switcheroo stuff.
Is this cast a supported way of getting the object
Queue queue = (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
one although that said I cannot browse temporary queues that were
created because they have :'s in their name and therefore parse as
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 <[email protected]> wrote:
I would expect that it will complain about the contents of the
binding. As
you can see already it can
see from my P2P configuration that it needs this context factory
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
classpath.
On Sep 13, 2009, at 5:25 PM, Evandro Grezeli wrote:
cause the jndi binding itÅ› your contextFactory class. You have to
pass it
as
parameter in your test plan!
On Sun, Sep 13, 2009 at 6:49 PM, sebb <[email protected]> wrote:
On 13/09/2009, Robert Nicholson <[email protected]> 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-
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
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
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-
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
xpp3_min-1.1.4c.jar
-rw-r--r--@ 1 robert staff 431406 Jun 17 10:11
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:
[email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]
For additional commands, e-mail:
[email protected]
--
Atenciosamente
Regards
Evandro Grezeli de B. Neves
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]