You probably have a suppressed exception somewhere (you need to print out the exception so you can see whats wrong). Typically you should get some JNDI exception or NameNotFoundException, you dont normally get null. If you have this working from a standalone java class, see what is there in the classpath (including property files etc)
On Tue, Mar 16, 2010 at 10:32 PM, sandy320 <[email protected]> wrote: > > There are some problem when I tried to test an EJB server with JMeter. The > EJB container is Jboss. > > The scenario is : > > 1. write a Class extends AbstractJavaSamplerClient, and override the > runTest() method. In the method, I lookup the EJB bean. Put the jar to > %jmeter_home%/lib/ext > > 2. Put the EJB business related jar to %jmeter_home%/lib/ext > > 3. Put the jnp-client.jar to %jmeter_home%/lib/ext > > 4. Run the Test in JMeter Java Request > > The issue is that the Object which I lookup in runTest() is null. > > ps. I could get the instance of this Object in main() without JMeter > > Please help,thx > -- > View this message in context: > http://old.nabble.com/Help-on-Test-EJB-server-with-Java-Request-tp27927988p27927988.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

