You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Denis Wang <dw...@brandmuscle.com> on 2002/09/18 02:52:19 UTC

RMI problem with JMeter; possibly caused by classpath setting

Hello, all,
I am using JMeter1.7.3 Java Request Sampler to invoke a standalone 
java application, which communicate with EJB container through RMI-
IIOP.  Environments include Windows XP command prompt and weblogic 
server 6.1.  However naming exception was thrown in the process for 
initial context looking up and setting.  Under exact the same command 
prompt environment, I can run the standalone java application without 
JMeter successfully.  

I am wondering whether this problem is caused by classpath setting.  
Does JMeter use its own classpath instead of appending the 
environmental classpath.  If this is the case, how to include my 
environmental classpath.  I find the following script in 
jmeter.properties:
search_paths=lib/ext

It doesn't work out when I changed the setting to 
search_paths=lib/ext;%classpath%

Any inputs will be highly appreciated!

Denis



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


How to capture image in JMeter HTTP Request

Posted by Wangke Liao <wa...@yahoo-inc.com>.
Hi, All,

I have a page where the submit button is an image:

<input type=image name="login" src="a link" alt="" width="60" height="20"
border="0"></a>
<img src="another link" alt="" width="10" height="1">

When I try to simulate this "Login" click in JMeter's "HTTP Request"
sampler, what should I use in the name/value pair for this? The method is
POST.

Thanks!

-wangke

P.S.: I tried name="login", value="a link"; also name="login.x", value=1 &
name="login.y", value=2. They worked sometime but failed others, really
weird.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: RMI problem with JMeter; possibly caused by classpath setting

Posted by Mike Stover <ms...@apache.org>.
You can drop libraries you need into just the /lib directory - the /lib/ext directory is for JMeter 
components of your making.  From the sounds of it, your original file you mentioned should 
go in /lib/ext and the bsf.jar should go in /lib.  

You didn't say what the stack trace was for the Exception in thread "main".  I'd guess that the 
nature of the jndi classes requires some configuration perhaps?

-Mike

On 18 Sep 2002 at 8:46, Denis Wang wrote:

> I made a jar file of my classes and dropped it into the directory.  My class
> demands weblogic.jndi.WLInitialContextFactory.
> 
> If I don't drop the weblogic.jar into /lib/ext, I will get exception A) when
> running my test plan.  If I do, I will get exception B) when starting up
> JMeter.  To solve the problem, I drop the bsf.jar into /lib/ext, and receive
> an error message when starting up JMeter: Exception in thread "main".  The
> system dies thereafter.
> 
> Exception A):
> .... (only list readable part of the exception)
> javax.naming.NoInitialContextException: Cannot instantiate class:
> weblogic.jndi.
> WLInitialContextFactory.  Root exception is
> java.lang.ClassNotFoundException: we
> blogic.jndi.WLInitialContextFactory
> .....
> 
> Exception B):
> java.lang.ClassNotFoundException: com.ibm.bsf.BSFManager
> .....
> 
> Denis
> -----Original Message-----
> From: Mike Stover [mailto:mstover1@apache.org]
> Sent: Tuesday, September 17, 2002 8:54 PM
> To: JMeter Users List
> Subject: Re: RMI problem with JMeter; possibly caused by classpath
> setting
> 
> 
> Make a jar of you classes and drop it into JMeter's /lib/ext directory.
> 
> -Mike
> 
> On 17 Sep 2002 at 20:52, Denis Wang wrote:
> 
> > Hello, all,
> > I am using JMeter1.7.3 Java Request Sampler to invoke a standalone
> > java application, which communicate with EJB container through RMI-
> > IIOP.  Environments include Windows XP command prompt and weblogic
> > server 6.1.  However naming exception was thrown in the process for
> > initial context looking up and setting.  Under exact the same command
> > prompt environment, I can run the standalone java application without
> > JMeter successfully.
> >
> > I am wondering whether this problem is caused by classpath setting.
> > Does JMeter use its own classpath instead of appending the
> > environmental classpath.  If this is the case, how to include my
> > environmental classpath.  I find the following script in
> > jmeter.properties:
> > search_paths=lib/ext
> >
> > It doesn't work out when I changed the setting to
> > search_paths=lib/ext;%classpath%
> >
> > Any inputs will be highly appreciated!
> >
> > Denis
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> 
> 
> --
> Michael Stover
> mstover1@apache.org
> Yahoo IM: mstover_ya
> ICQ: 152975688
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: RMI problem with JMeter; possibly caused by classpath setting

Posted by Denis Wang <dw...@brandmuscle.com>.
I made a jar file of my classes and dropped it into the directory.  My class
demands weblogic.jndi.WLInitialContextFactory.

If I don't drop the weblogic.jar into /lib/ext, I will get exception A) when
running my test plan.  If I do, I will get exception B) when starting up
JMeter.  To solve the problem, I drop the bsf.jar into /lib/ext, and receive
an error message when starting up JMeter: Exception in thread "main".  The
system dies thereafter.

Exception A):
.... (only list readable part of the exception)
javax.naming.NoInitialContextException: Cannot instantiate class:
weblogic.jndi.
WLInitialContextFactory.  Root exception is
java.lang.ClassNotFoundException: we
blogic.jndi.WLInitialContextFactory
.....

Exception B):
java.lang.ClassNotFoundException: com.ibm.bsf.BSFManager
.....

Denis
-----Original Message-----
From: Mike Stover [mailto:mstover1@apache.org]
Sent: Tuesday, September 17, 2002 8:54 PM
To: JMeter Users List
Subject: Re: RMI problem with JMeter; possibly caused by classpath
setting


Make a jar of you classes and drop it into JMeter's /lib/ext directory.

-Mike

On 17 Sep 2002 at 20:52, Denis Wang wrote:

> Hello, all,
> I am using JMeter1.7.3 Java Request Sampler to invoke a standalone
> java application, which communicate with EJB container through RMI-
> IIOP.  Environments include Windows XP command prompt and weblogic
> server 6.1.  However naming exception was thrown in the process for
> initial context looking up and setting.  Under exact the same command
> prompt environment, I can run the standalone java application without
> JMeter successfully.
>
> I am wondering whether this problem is caused by classpath setting.
> Does JMeter use its own classpath instead of appending the
> environmental classpath.  If this is the case, how to include my
> environmental classpath.  I find the following script in
> jmeter.properties:
> search_paths=lib/ext
>
> It doesn't work out when I changed the setting to
> search_paths=lib/ext;%classpath%
>
> Any inputs will be highly appreciated!
>
> Denis
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: RMI problem with JMeter; possibly caused by classpath setting

Posted by Mike Stover <ms...@apache.org>.
Make a jar of you classes and drop it into JMeter's /lib/ext directory.

-Mike

On 17 Sep 2002 at 20:52, Denis Wang wrote:

> Hello, all,
> I am using JMeter1.7.3 Java Request Sampler to invoke a standalone 
> java application, which communicate with EJB container through RMI-
> IIOP.  Environments include Windows XP command prompt and weblogic 
> server 6.1.  However naming exception was thrown in the process for 
> initial context looking up and setting.  Under exact the same command 
> prompt environment, I can run the standalone java application without 
> JMeter successfully.  
> 
> I am wondering whether this problem is caused by classpath setting.  
> Does JMeter use its own classpath instead of appending the 
> environmental classpath.  If this is the case, how to include my 
> environmental classpath.  I find the following script in 
> jmeter.properties:
> search_paths=lib/ext
> 
> It doesn't work out when I changed the setting to 
> search_paths=lib/ext;%classpath%
> 
> Any inputs will be highly appreciated!
> 
> Denis
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>