Thanks for responding, Deepak. Below is the stack trace, which includes
the error message. It's not clear to me why the
'GetCapabilitiesResponseMsg' class isn't being found, it's in the same
package as the 'SensorRegMsgListener' class. In any case, I will do as
you've suggested.

18:20:11,656 INFO  [SensorRegMsgListener] SensorRegMsgListener -
SensorML file exists, creating SensorMLMsg subclass
18:20:11,656 INFO  [STDOUT] 20 Aug 2009
18:20:11,656|INFO|[jmsContainer1-1]|mil.onr.ltsn2.acp.assetMgmt.messagin
g.SensorMLMsgFactory|(SensorMLMsgFactory.java:86)|SensorML file
'C:\SensorML\GetCapabilitiesResponse2.xml' exists
18:20:11,656 INFO  [SensorMLMsgFactory] SensorML file
'C:\SensorML\GetCapabilitiesResponse2.xml' exists
18:20:11,656 INFO  [STDOUT] 20 Aug 2009
18:20:11,656|INFO|[jmsContainer1-1]|mil.onr.ltsn2.acp.assetMgmt.messagin
g.SensorMLMsgFactory|(SensorMLMsgFactory.java:92)|New file name =
file:///C://SensorML//GetCapabilitiesResponse2.xml
18:20:11,656 INFO  [SensorMLMsgFactory] New file name =
file:///C://SensorML//GetCapabilitiesResponse2.xml
18:20:11,656 INFO  [STDOUT] 20 Aug 2009
18:20:11,656|INFO|[jmsContainer1-1]|mil.onr.ltsn2.acp.assetMgmt.messagin
g.SensorMLMsgFactory|(SensorMLMsgFactory.java:128)|SensorML msg is
Sensor Capability Msg
18:20:11,656 INFO  [SensorMLMsgFactory] SensorML msg is Sensor
Capability Msg

18:20:11,656 WARN  [DefaultMessageListenerContainer] Execution of JMS
message listener failed
java.lang.NoClassDefFoundError: Could not initialize class
mil.onr.ltsn2.acp.assetMgmt.messaging.registration.GetCapabilitiesRespon
seMsg
        at
mil.onr.ltsn2.acp.assetMgmt.messaging.SensorMLMsgFactory.getSensorMLMsg(
SensorMLMsgFactory.java:129)
        at
mil.onr.ltsn2.acp.assetMgmt.messaging.registration.SensorRegMsgListener.
onMessage(SensorRegMsgListener.java:142)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvo
keListener(AbstractMessageListenerContainer.java:543)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.invoke
Listener(AbstractMessageListenerContainer.java:482)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExec
uteListener(AbstractMessageListenerContainer.java:451)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer
.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer
.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMe
ssageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java
:982)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMe
ssageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.
java:974)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMe
ssageListenerInvoker.run(DefaultMessageListenerContainer.java:876)
        at java.lang.Thread.run(Thread.java:619)


-----Original Message-----
From: Deepak Shetty [mailto:[email protected]] 
Sent: Friday, August 21, 2009 5:02 PM
To: JMeter Users List
Subject: Re: Getting a 'NoClassDefFoundError' message

hi
you need to get the classes / jar out of the war file (usually Under
WEB-INF/lib and WEB-INF/classes inside the war) and put them in jmeter's
lib
directory. (The WAR is a web archive , you cannot directly add it to
classpath)
http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
(you
should add jars to lib not to classpath)
See also jmeter docs which need you to add some jars for JMS
http://jakarta.apache.org/jmeter/usermanual/get-started.html


What is the exact error message(i.e. which class isnt found)?

regards
deepak

On Fri, Aug 21, 2009 at 1:53 PM, Vance Arocho <[email protected]>
wrote:

> Hello, all. I'm running version 2.3.4, and have been trying to run a
JMS
> test plan, but I've been getting a 'NoClassDefFoundError' message,
even
> though I've added the directory containing the application's WAR file
to
> the classpath within the JMeter GUI. Any ideas as to how to resolve
> this? Do I just need to re-create the WAR file as a JAR file, and
update
> the classpath to include the JAR file?
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to