You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Cédric Tabin <ta...@gmail.com> on 2008/07/22 10:40:57 UTC

JMeter Integration into a Enterprise application

Hello,

I'm currently trying to integrate JMeter into an Enterprise application
module. There is no problem to launch JMeter, it work fine. The point is
that JMeter doesn't find my sampler&gui classes (that are in the same .jar
that launch JMeter).
So I added the jar into the search_paths
(search_paths=./dist/SNV3SRV-testing-client.jar) => JMeter find it and
(re)add it to the classpath. Then, when the menu is created, there is a
ClassNotFoundException that is found (cannot be instancied)... You'll find
the logs below. It seems that the classloader doesn't like that :)

How can I solve that ? Can I tell JMeter programmatically to add a specific
gui/sampler class ?

Thansk & best regards !



2008/07/22 10:04:43 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US

2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading user properties from:
/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/user.properties
2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading system properties from:
/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/system.properties
2008/07/22 10:04:43 INFO  - jmeter.JMeter: Copyright (c) 1998-2008 The
Apache Software Foundation
2008/07/22 10:04:43 INFO  - jmeter.JMeter: Version 2.3.2 r665936
2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.version=1.6.0_07
2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM)
Server VM
2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.name=Linux
2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.arch=i386
2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.version=2.6.25-gentoo-r6
2008/07/22 10:04:43 INFO  - jmeter.JMeter: file.encoding=UTF-8
2008/07/22 10:04:43 INFO  - jmeter.JMeter: Default Locale=English (United
States)
2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeter  Locale=English (United
States)
2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeterHome=./JMeter
2008/07/22 10:04:43 INFO  - jmeter.JMeter: user.dir
=/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
2008/07/22 10:04:43 INFO  - jmeter.JMeter: PWD
=/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
2008/07/22 10:04:43 INFO  - jmeter.JMeter: IP: 127.0.0.1 Name: thelinux
FullName: localhost
2008/07/22 10:04:43 INFO  - jmeter.JMeter:
search_paths=./dist/SNV3SRV-testing-client.jar
2008/07/22 10:04:43 INFO  - jmeter.JMeter: Adding to classpath:
./dist/SNV3SRV-testing-client.jar
2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties
2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
Function class names must contain the string: '.functions.'
2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
Function class names must not contain the string: '.gui.'
2008/07/22 10:04:44 ERROR - jmeter.gui.action.Help: Couldn't load help file
java.io.FileNotFoundException:
/./JMeter/printable_docs/usermanual/component_reference.html (No such file
or directory)
2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Cannot find .className property for htmlParser, using default
2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/html is
2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for application/xhtml+xml is
2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for application/xml is
2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/xml is
2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/vnd.wap.wml is
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
org.apache.jmeter.protocol.http.modifier.gui.UserParameterModifierGui
2008/07/22 10:04:45 INFO  - jmeter.protocol.http.sampler.HTTPSampler:
Maximum connection retries = 10
2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult: Note: Sample
TimeStamps are START times
2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1
2008/07/22 10:04:45 WARN  - jmeter.gui.util.MenuFactory: Could not
instantiate saierp.testing.config.WorkflowConfigurationGui
java.lang.ClassNotFoundException:
saierp.testing.config.WorkflowConfigurationGui
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at
org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:389)
    at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:128)
    at
org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:84)
    at
org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:111)
    at
org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:44)
    at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
    at
org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
    at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Re: JMeter Integration into a Enterprise application

Posted by sebb <se...@gmail.com>.
On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
> Hello,
>
>  Thanks for the reply :) I already read this page and I totally understand
>  how JMeter works. My problem is that I want to reach an EJB entry point, so
>  I put my launching-jar into a enterprise application with the samplers
>  classes. In fact, JMeter doesn't find them if I don't add my jar into the
>  search paths. If I do, then there is a ClassLoader error, probably due to
>  some restrictions... So if there is a way to programmatically add classes
>  "to" JMeter, it would be useful :)
>

Have a look at the NewDriver class.

However, the properties user.classpath and search_paths already use
that for updating the search path, so I don't see how it will help to
use it directly.

Also, the search_paths property is used in
JMeterUtils.getSearchPaths(), so bypassing that will cause problems.

I think you will have to sort out why search_paths is not working in
your case and fix that in the EJB application.

>  Thanks,
>  Cedric
>
>
>  On Tue, Jul 22, 2008 at 1:54 PM, sebb <se...@gmail.com> wrote:
>
>  > On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
>  > > Hello,
>  > >
>  > >  If I launch JMeter directly, it works well, my samplers are listed and I
>  > can
>  > >  use them. There is probably something with recursive loading of
>  > classes...
>  > >  Is there a way to add manually sampler classes to JMeter ?
>  > >
>  >
>  > http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
>  >
>  > explains it all.
>  >
>  > Try putting the sampler classes in a separate jar from the launcher.
>  >
>  > >  Regards,
>  > >  Cedric
>  > >
>  > >
>  > >  On Tue, Jul 22, 2008 at 12:40 PM, sebb <se...@gmail.com> wrote:
>  > >
>  > >  > On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
>  > >  > > Hello,
>  > >  > >
>  > >  > >  I'm currently trying to integrate JMeter into an Enterprise
>  > application
>  > >  > >  module. There is no problem to launch JMeter, it work fine. The
>  > point is
>  > >  > >  that JMeter doesn't find my sampler&gui classes (that are in the
>  > same
>  > >  > .jar
>  > >  > >  that launch JMeter).
>  > >  > >  So I added the jar into the search_paths
>  > >  > >  (search_paths=./dist/SNV3SRV-testing-client.jar) => JMeter find it
>  > and
>  > >  > >  (re)add it to the classpath. Then, when the menu is created, there
>  > is a
>  > >  > >  ClassNotFoundException that is found (cannot be instancied)...
>  > You'll
>  > >  > find
>  > >  > >  the logs below. It seems that the classloader doesn't like that :)
>  > >  > >
>  > >  >
>  > >  > How does it work when using JMeter stand-alone?
>  > >  >
>  > >  > >  How can I solve that ? Can I tell JMeter programmatically to add a
>  > >  > specific
>  > >  > >  gui/sampler class ?
>  > >  > >
>  > >  >
>  > >  >
>  > http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
>  > >  >
>  > >  > explains how JMeter loads classes.
>  > >  >
>  > >  > >  Thansk & best regards !
>  > >  > >
>  > >  > >
>  > >  > >
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.util.JMeterUtils: Setting Locale
>  > to
>  > >  > en_US
>  > >  > >
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading user properties
>  > from:
>  > >  > >  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/user.properties
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading system
>  > properties
>  > >  > from:
>  > >  > >
>  >  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/system.properties
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Copyright (c) 1998-2008
>  > The
>  > >  > >  Apache Software Foundation
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Version 2.3.2 r665936
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.version=1.6.0_07
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.vm.name=Java
>  > >  > HotSpot(TM)
>  > >  > >  Server VM
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.name=Linux
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.arch=i386
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter:
>  > os.version=2.6.25-gentoo-r6
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: file.encoding=UTF-8
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Default Locale=English
>  > >  > (United
>  > >  > >  States)
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeter  Locale=English
>  > >  > (United
>  > >  > >  States)
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeterHome=./JMeter
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: user.dir
>  > >  > >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: PWD
>  > >  > >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: IP: 127.0.0.1 Name:
>  > thelinux
>  > >  > >  FullName: localhost
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter:
>  > >  > >  search_paths=./dist/SNV3SRV-testing-client.jar
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Adding to classpath:
>  > >  > >  ./dist/SNV3SRV-testing-client.jar
>  > >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loaded icon properties
>  > from
>  > >  > >  org/apache/jmeter/images/icon.properties
>  > >  > >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable:
>  > Note:
>  > >  > >  Function class names must contain the string: '.functions.'
>  > >  > >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable:
>  > Note:
>  > >  > >  Function class names must not contain the string: '.gui.'
>  > >  > >  2008/07/22 10:04:44 ERROR - jmeter.gui.action.Help: Couldn't load
>  > help
>  > >  > file
>  > >  > >  java.io.FileNotFoundException:
>  > >  > >  /./JMeter/printable_docs/usermanual/component_reference.html (No
>  > such
>  > >  > file
>  > >  > >  or directory)
>  > >  > >  2008/07/22 10:04:44 INFO  -
>  > >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  > >  Cannot find .className property for htmlParser, using default
>  > >  > >  2008/07/22 10:04:44 INFO  -
>  > >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  > >  Parser for text/html is
>  > >  > >  2008/07/22 10:04:44 INFO  -
>  > >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  > >  Parser for application/xhtml+xml is
>  > >  > >  2008/07/22 10:04:44 INFO  -
>  > >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  > >  Parser for application/xml is
>  > >  > >  2008/07/22 10:04:44 INFO  -
>  > >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  > >  Parser for text/xml is
>  > >  > >  2008/07/22 10:04:44 INFO  -
>  > >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  > >  Parser for text/vnd.wap.wml is
>  > >  > >  org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
>  > >  > >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
>  > >  > >  org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
>  > >  > >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
>  > >  > >
>  >  org.apache.jmeter.protocol.http.modifier.gui.UserParameterModifierGui
>  > >  > >  2008/07/22 10:04:45 INFO  -
>  > jmeter.protocol.http.sampler.HTTPSampler:
>  > >  > >  Maximum connection retries = 10
>  > >  > >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult: Note:
>  > Sample
>  > >  > >  TimeStamps are START times
>  > >  > >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult:
>  > >  > >  sampleresult.default.encoding is set to ISO-8859-1
>  > >  > >  2008/07/22 10:04:45 WARN  - jmeter.gui.util.MenuFactory: Could not
>  > >  > >  instantiate saierp.testing.config.WorkflowConfigurationGui
>  > >  > >  java.lang.ClassNotFoundException:
>  > >  > >  saierp.testing.config.WorkflowConfigurationGui
>  > >  > >     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>  > >  > >     at java.security.AccessController.doPrivileged(Native Method)
>  > >  > >     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>  > >  > >     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>  > >  > >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>  > >  > >     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>  > >  > >     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>  > >  > >     at java.lang.Class.forName0(Native Method)
>  > >  > >     at java.lang.Class.forName(Class.java:169)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:389)
>  > >  > >     at
>  > >  > org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:128)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:84)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:111)
>  > >  > >     at
>  > >  > >
>  >  org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:44)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
>  > >  > >     at
>  > >  > org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59)
>  > >  > >     at
>  > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>  > >  > >     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
>  > >  > >     at
>  > >  > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
>  > >  > >     at
>  > >  > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
>  > >  > >     at
>  > java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
>  > >  > >
>  > >  >
>  > >
>  > > > ---------------------------------------------------------------------
>  > >  > 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


Re: JMeter Integration into a Enterprise application

Posted by Cédric Tabin <ta...@gmail.com>.
Hello,

Thanks for the reply :) I already read this page and I totally understand
how JMeter works. My problem is that I want to reach an EJB entry point, so
I put my launching-jar into a enterprise application with the samplers
classes. In fact, JMeter doesn't find them if I don't add my jar into the
search paths. If I do, then there is a ClassLoader error, probably due to
some restrictions... So if there is a way to programmatically add classes
"to" JMeter, it would be useful :)

Thanks,
Cedric

On Tue, Jul 22, 2008 at 1:54 PM, sebb <se...@gmail.com> wrote:

> On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
> > Hello,
> >
> >  If I launch JMeter directly, it works well, my samplers are listed and I
> can
> >  use them. There is probably something with recursive loading of
> classes...
> >  Is there a way to add manually sampler classes to JMeter ?
> >
>
> http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
>
> explains it all.
>
> Try putting the sampler classes in a separate jar from the launcher.
>
> >  Regards,
> >  Cedric
> >
> >
> >  On Tue, Jul 22, 2008 at 12:40 PM, sebb <se...@gmail.com> wrote:
> >
> >  > On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
> >  > > Hello,
> >  > >
> >  > >  I'm currently trying to integrate JMeter into an Enterprise
> application
> >  > >  module. There is no problem to launch JMeter, it work fine. The
> point is
> >  > >  that JMeter doesn't find my sampler&gui classes (that are in the
> same
> >  > .jar
> >  > >  that launch JMeter).
> >  > >  So I added the jar into the search_paths
> >  > >  (search_paths=./dist/SNV3SRV-testing-client.jar) => JMeter find it
> and
> >  > >  (re)add it to the classpath. Then, when the menu is created, there
> is a
> >  > >  ClassNotFoundException that is found (cannot be instancied)...
> You'll
> >  > find
> >  > >  the logs below. It seems that the classloader doesn't like that :)
> >  > >
> >  >
> >  > How does it work when using JMeter stand-alone?
> >  >
> >  > >  How can I solve that ? Can I tell JMeter programmatically to add a
> >  > specific
> >  > >  gui/sampler class ?
> >  > >
> >  >
> >  >
> http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
> >  >
> >  > explains how JMeter loads classes.
> >  >
> >  > >  Thansk & best regards !
> >  > >
> >  > >
> >  > >
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.util.JMeterUtils: Setting Locale
> to
> >  > en_US
> >  > >
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading user properties
> from:
> >  > >  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/user.properties
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading system
> properties
> >  > from:
> >  > >
>  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/system.properties
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Copyright (c) 1998-2008
> The
> >  > >  Apache Software Foundation
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Version 2.3.2 r665936
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.version=1.6.0_07
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.vm.name=Java
> >  > HotSpot(TM)
> >  > >  Server VM
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.name=Linux
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.arch=i386
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter:
> os.version=2.6.25-gentoo-r6
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: file.encoding=UTF-8
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Default Locale=English
> >  > (United
> >  > >  States)
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeter  Locale=English
> >  > (United
> >  > >  States)
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeterHome=./JMeter
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: user.dir
> >  > >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: PWD
> >  > >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: IP: 127.0.0.1 Name:
> thelinux
> >  > >  FullName: localhost
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter:
> >  > >  search_paths=./dist/SNV3SRV-testing-client.jar
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Adding to classpath:
> >  > >  ./dist/SNV3SRV-testing-client.jar
> >  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loaded icon properties
> from
> >  > >  org/apache/jmeter/images/icon.properties
> >  > >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable:
> Note:
> >  > >  Function class names must contain the string: '.functions.'
> >  > >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable:
> Note:
> >  > >  Function class names must not contain the string: '.gui.'
> >  > >  2008/07/22 10:04:44 ERROR - jmeter.gui.action.Help: Couldn't load
> help
> >  > file
> >  > >  java.io.FileNotFoundException:
> >  > >  /./JMeter/printable_docs/usermanual/component_reference.html (No
> such
> >  > file
> >  > >  or directory)
> >  > >  2008/07/22 10:04:44 INFO  -
> >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  > >  Cannot find .className property for htmlParser, using default
> >  > >  2008/07/22 10:04:44 INFO  -
> >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  > >  Parser for text/html is
> >  > >  2008/07/22 10:04:44 INFO  -
> >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  > >  Parser for application/xhtml+xml is
> >  > >  2008/07/22 10:04:44 INFO  -
> >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  > >  Parser for application/xml is
> >  > >  2008/07/22 10:04:44 INFO  -
> >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  > >  Parser for text/xml is
> >  > >  2008/07/22 10:04:44 INFO  -
> >  > jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  > >  Parser for text/vnd.wap.wml is
> >  > >  org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
> >  > >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
> >  > >  org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
> >  > >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
> >  > >
>  org.apache.jmeter.protocol.http.modifier.gui.UserParameterModifierGui
> >  > >  2008/07/22 10:04:45 INFO  -
> jmeter.protocol.http.sampler.HTTPSampler:
> >  > >  Maximum connection retries = 10
> >  > >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult: Note:
> Sample
> >  > >  TimeStamps are START times
> >  > >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult:
> >  > >  sampleresult.default.encoding is set to ISO-8859-1
> >  > >  2008/07/22 10:04:45 WARN  - jmeter.gui.util.MenuFactory: Could not
> >  > >  instantiate saierp.testing.config.WorkflowConfigurationGui
> >  > >  java.lang.ClassNotFoundException:
> >  > >  saierp.testing.config.WorkflowConfigurationGui
> >  > >     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >  > >     at java.security.AccessController.doPrivileged(Native Method)
> >  > >     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >  > >     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >  > >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> >  > >     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >  > >     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >  > >     at java.lang.Class.forName0(Native Method)
> >  > >     at java.lang.Class.forName(Class.java:169)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:389)
> >  > >     at
> >  > org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:128)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:84)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:111)
> >  > >     at
> >  > >
>  org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:44)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
> >  > >     at
> >  > org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59)
> >  > >     at
> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> >  > >     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
> >  > >     at
> >  > >
> >  >
>  java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
> >  > >     at
> >  > >
> >  >
>  java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
> >  > >     at
> >  > >
> >  >
>  java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
> >  > >     at
> >  > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
> >  > >     at
> >  > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
> >  > >     at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
> >  > >
> >  >
> >
> > > ---------------------------------------------------------------------
> >  > 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
>
>

Re: JMeter Integration into a Enterprise application

Posted by sebb <se...@gmail.com>.
On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
> Hello,
>
>  If I launch JMeter directly, it works well, my samplers are listed and I can
>  use them. There is probably something with recursive loading of classes...
>  Is there a way to add manually sampler classes to JMeter ?
>

http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath

explains it all.

Try putting the sampler classes in a separate jar from the launcher.

>  Regards,
>  Cedric
>
>
>  On Tue, Jul 22, 2008 at 12:40 PM, sebb <se...@gmail.com> wrote:
>
>  > On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
>  > > Hello,
>  > >
>  > >  I'm currently trying to integrate JMeter into an Enterprise application
>  > >  module. There is no problem to launch JMeter, it work fine. The point is
>  > >  that JMeter doesn't find my sampler&gui classes (that are in the same
>  > .jar
>  > >  that launch JMeter).
>  > >  So I added the jar into the search_paths
>  > >  (search_paths=./dist/SNV3SRV-testing-client.jar) => JMeter find it and
>  > >  (re)add it to the classpath. Then, when the menu is created, there is a
>  > >  ClassNotFoundException that is found (cannot be instancied)... You'll
>  > find
>  > >  the logs below. It seems that the classloader doesn't like that :)
>  > >
>  >
>  > How does it work when using JMeter stand-alone?
>  >
>  > >  How can I solve that ? Can I tell JMeter programmatically to add a
>  > specific
>  > >  gui/sampler class ?
>  > >
>  >
>  > http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
>  >
>  > explains how JMeter loads classes.
>  >
>  > >  Thansk & best regards !
>  > >
>  > >
>  > >
>  > >  2008/07/22 10:04:43 INFO  - jmeter.util.JMeterUtils: Setting Locale to
>  > en_US
>  > >
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading user properties from:
>  > >  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/user.properties
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading system properties
>  > from:
>  > >  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/system.properties
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Copyright (c) 1998-2008 The
>  > >  Apache Software Foundation
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Version 2.3.2 r665936
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.version=1.6.0_07
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.vm.name=Java
>  > HotSpot(TM)
>  > >  Server VM
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.name=Linux
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.arch=i386
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.version=2.6.25-gentoo-r6
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: file.encoding=UTF-8
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Default Locale=English
>  > (United
>  > >  States)
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeter  Locale=English
>  > (United
>  > >  States)
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeterHome=./JMeter
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: user.dir
>  > >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: PWD
>  > >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: IP: 127.0.0.1 Name: thelinux
>  > >  FullName: localhost
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter:
>  > >  search_paths=./dist/SNV3SRV-testing-client.jar
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Adding to classpath:
>  > >  ./dist/SNV3SRV-testing-client.jar
>  > >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loaded icon properties from
>  > >  org/apache/jmeter/images/icon.properties
>  > >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
>  > >  Function class names must contain the string: '.functions.'
>  > >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
>  > >  Function class names must not contain the string: '.gui.'
>  > >  2008/07/22 10:04:44 ERROR - jmeter.gui.action.Help: Couldn't load help
>  > file
>  > >  java.io.FileNotFoundException:
>  > >  /./JMeter/printable_docs/usermanual/component_reference.html (No such
>  > file
>  > >  or directory)
>  > >  2008/07/22 10:04:44 INFO  -
>  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  Cannot find .className property for htmlParser, using default
>  > >  2008/07/22 10:04:44 INFO  -
>  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  Parser for text/html is
>  > >  2008/07/22 10:04:44 INFO  -
>  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  Parser for application/xhtml+xml is
>  > >  2008/07/22 10:04:44 INFO  -
>  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  Parser for application/xml is
>  > >  2008/07/22 10:04:44 INFO  -
>  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  Parser for text/xml is
>  > >  2008/07/22 10:04:44 INFO  -
>  > jmeter.protocol.http.sampler.HTTPSamplerBase:
>  > >  Parser for text/vnd.wap.wml is
>  > >  org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
>  > >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
>  > >  org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
>  > >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
>  > >  org.apache.jmeter.protocol.http.modifier.gui.UserParameterModifierGui
>  > >  2008/07/22 10:04:45 INFO  - jmeter.protocol.http.sampler.HTTPSampler:
>  > >  Maximum connection retries = 10
>  > >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult: Note: Sample
>  > >  TimeStamps are START times
>  > >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult:
>  > >  sampleresult.default.encoding is set to ISO-8859-1
>  > >  2008/07/22 10:04:45 WARN  - jmeter.gui.util.MenuFactory: Could not
>  > >  instantiate saierp.testing.config.WorkflowConfigurationGui
>  > >  java.lang.ClassNotFoundException:
>  > >  saierp.testing.config.WorkflowConfigurationGui
>  > >     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>  > >     at java.security.AccessController.doPrivileged(Native Method)
>  > >     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>  > >     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>  > >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>  > >     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>  > >     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>  > >     at java.lang.Class.forName0(Native Method)
>  > >     at java.lang.Class.forName(Class.java:169)
>  > >     at
>  > >
>  >  org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:389)
>  > >     at
>  > org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:128)
>  > >     at
>  > >
>  >  org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:84)
>  > >     at
>  > >
>  >  org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:111)
>  > >     at
>  > >  org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:44)
>  > >     at
>  > >
>  >  org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
>  > >     at
>  > >
>  >  org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
>  > >     at
>  > org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59)
>  > >     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>  > >     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
>  > >     at
>  > >
>  >  java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
>  > >     at
>  > >
>  >  java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
>  > >     at
>  > >
>  >  java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
>  > >     at
>  > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
>  > >     at
>  > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
>  > >     at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
>  > >
>  >
>
> > ---------------------------------------------------------------------
>  > 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


Re: JMeter Integration into a Enterprise application

Posted by Cédric Tabin <ta...@gmail.com>.
Hello,

If I launch JMeter directly, it works well, my samplers are listed and I can
use them. There is probably something with recursive loading of classes...
Is there a way to add manually sampler classes to JMeter ?

Regards,
Cedric

On Tue, Jul 22, 2008 at 12:40 PM, sebb <se...@gmail.com> wrote:

> On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
> > Hello,
> >
> >  I'm currently trying to integrate JMeter into an Enterprise application
> >  module. There is no problem to launch JMeter, it work fine. The point is
> >  that JMeter doesn't find my sampler&gui classes (that are in the same
> .jar
> >  that launch JMeter).
> >  So I added the jar into the search_paths
> >  (search_paths=./dist/SNV3SRV-testing-client.jar) => JMeter find it and
> >  (re)add it to the classpath. Then, when the menu is created, there is a
> >  ClassNotFoundException that is found (cannot be instancied)... You'll
> find
> >  the logs below. It seems that the classloader doesn't like that :)
> >
>
> How does it work when using JMeter stand-alone?
>
> >  How can I solve that ? Can I tell JMeter programmatically to add a
> specific
> >  gui/sampler class ?
> >
>
> http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
>
> explains how JMeter loads classes.
>
> >  Thansk & best regards !
> >
> >
> >
> >  2008/07/22 10:04:43 INFO  - jmeter.util.JMeterUtils: Setting Locale to
> en_US
> >
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading user properties from:
> >  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/user.properties
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading system properties
> from:
> >  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/system.properties
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Copyright (c) 1998-2008 The
> >  Apache Software Foundation
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Version 2.3.2 r665936
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.version=1.6.0_07
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.vm.name=Java
> HotSpot(TM)
> >  Server VM
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.name=Linux
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.arch=i386
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.version=2.6.25-gentoo-r6
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: file.encoding=UTF-8
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Default Locale=English
> (United
> >  States)
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeter  Locale=English
> (United
> >  States)
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeterHome=./JMeter
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: user.dir
> >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: PWD
> >  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: IP: 127.0.0.1 Name: thelinux
> >  FullName: localhost
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter:
> >  search_paths=./dist/SNV3SRV-testing-client.jar
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Adding to classpath:
> >  ./dist/SNV3SRV-testing-client.jar
> >  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loaded icon properties from
> >  org/apache/jmeter/images/icon.properties
> >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
> >  Function class names must contain the string: '.functions.'
> >  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
> >  Function class names must not contain the string: '.gui.'
> >  2008/07/22 10:04:44 ERROR - jmeter.gui.action.Help: Couldn't load help
> file
> >  java.io.FileNotFoundException:
> >  /./JMeter/printable_docs/usermanual/component_reference.html (No such
> file
> >  or directory)
> >  2008/07/22 10:04:44 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  Cannot find .className property for htmlParser, using default
> >  2008/07/22 10:04:44 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  Parser for text/html is
> >  2008/07/22 10:04:44 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  Parser for application/xhtml+xml is
> >  2008/07/22 10:04:44 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  Parser for application/xml is
> >  2008/07/22 10:04:44 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  Parser for text/xml is
> >  2008/07/22 10:04:44 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase:
> >  Parser for text/vnd.wap.wml is
> >  org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
> >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
> >  org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
> >  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
> >  org.apache.jmeter.protocol.http.modifier.gui.UserParameterModifierGui
> >  2008/07/22 10:04:45 INFO  - jmeter.protocol.http.sampler.HTTPSampler:
> >  Maximum connection retries = 10
> >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult: Note: Sample
> >  TimeStamps are START times
> >  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult:
> >  sampleresult.default.encoding is set to ISO-8859-1
> >  2008/07/22 10:04:45 WARN  - jmeter.gui.util.MenuFactory: Could not
> >  instantiate saierp.testing.config.WorkflowConfigurationGui
> >  java.lang.ClassNotFoundException:
> >  saierp.testing.config.WorkflowConfigurationGui
> >     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >     at java.security.AccessController.doPrivileged(Native Method)
> >     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >     at java.lang.Class.forName0(Native Method)
> >     at java.lang.Class.forName(Class.java:169)
> >     at
> >
>  org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:389)
> >     at
> org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:128)
> >     at
> >
>  org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:84)
> >     at
> >
>  org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:111)
> >     at
> >  org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:44)
> >     at
> >
>  org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
> >     at
> >
>  org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
> >     at
> org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59)
> >     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> >     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
> >     at
> >
>  java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
> >     at
> >
>  java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
> >     at
> >
>  java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
> >     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
> >     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
> >     at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: JMeter Integration into a Enterprise application

Posted by sebb <se...@gmail.com>.
On 22/07/2008, Cédric Tabin <ta...@gmail.com> wrote:
> Hello,
>
>  I'm currently trying to integrate JMeter into an Enterprise application
>  module. There is no problem to launch JMeter, it work fine. The point is
>  that JMeter doesn't find my sampler&gui classes (that are in the same .jar
>  that launch JMeter).
>  So I added the jar into the search_paths
>  (search_paths=./dist/SNV3SRV-testing-client.jar) => JMeter find it and
>  (re)add it to the classpath. Then, when the menu is created, there is a
>  ClassNotFoundException that is found (cannot be instancied)... You'll find
>  the logs below. It seems that the classloader doesn't like that :)
>

How does it work when using JMeter stand-alone?

>  How can I solve that ? Can I tell JMeter programmatically to add a specific
>  gui/sampler class ?
>

http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath

explains how JMeter loads classes.

>  Thansk & best regards !
>
>
>
>  2008/07/22 10:04:43 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US
>
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading user properties from:
>  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/user.properties
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loading system properties from:
>  /home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client/system.properties
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Copyright (c) 1998-2008 The
>  Apache Software Foundation
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Version 2.3.2 r665936
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.version=1.6.0_07
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM)
>  Server VM
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.name=Linux
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.arch=i386
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: os.version=2.6.25-gentoo-r6
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: file.encoding=UTF-8
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Default Locale=English (United
>  States)
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeter  Locale=English (United
>  States)
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: JMeterHome=./JMeter
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: user.dir
>  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: PWD
>  =/home/ctabin/svn/sai/SNV3SRV/SNV3SRV-testing-client
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: IP: 127.0.0.1 Name: thelinux
>  FullName: localhost
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter:
>  search_paths=./dist/SNV3SRV-testing-client.jar
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Adding to classpath:
>  ./dist/SNV3SRV-testing-client.jar
>  2008/07/22 10:04:43 INFO  - jmeter.JMeter: Loaded icon properties from
>  org/apache/jmeter/images/icon.properties
>  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
>  Function class names must contain the string: '.functions.'
>  2008/07/22 10:04:44 INFO  - jmeter.engine.util.CompoundVariable: Note:
>  Function class names must not contain the string: '.gui.'
>  2008/07/22 10:04:44 ERROR - jmeter.gui.action.Help: Couldn't load help file
>  java.io.FileNotFoundException:
>  /./JMeter/printable_docs/usermanual/component_reference.html (No such file
>  or directory)
>  2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
>  Cannot find .className property for htmlParser, using default
>  2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
>  Parser for text/html is
>  2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
>  Parser for application/xhtml+xml is
>  2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
>  Parser for application/xml is
>  2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
>  Parser for text/xml is
>  2008/07/22 10:04:44 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
>  Parser for text/vnd.wap.wml is
>  org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
>  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
>  org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
>  2008/07/22 10:04:44 INFO  - jmeter.gui.util.MenuFactory: Skipping
>  org.apache.jmeter.protocol.http.modifier.gui.UserParameterModifierGui
>  2008/07/22 10:04:45 INFO  - jmeter.protocol.http.sampler.HTTPSampler:
>  Maximum connection retries = 10
>  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult: Note: Sample
>  TimeStamps are START times
>  2008/07/22 10:04:45 INFO  - jmeter.samplers.SampleResult:
>  sampleresult.default.encoding is set to ISO-8859-1
>  2008/07/22 10:04:45 WARN  - jmeter.gui.util.MenuFactory: Could not
>  instantiate saierp.testing.config.WorkflowConfigurationGui
>  java.lang.ClassNotFoundException:
>  saierp.testing.config.WorkflowConfigurationGui
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:169)
>     at
>  org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:389)
>     at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:128)
>     at
>  org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:84)
>     at
>  org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:111)
>     at
>  org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:44)
>     at
>  org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
>     at
>  org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
>     at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59)
>     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
>     at
>  java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
>     at
>  java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
>     at
>  java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
>     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
>     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
>     at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org