JMeter normally starts with the main function in NewDriver.java. Before this calls start(), it sets up the classpath from all the jars it can find. You need to make sure that the classpath is set appropriately before calling start().
When you run from the command prompt, presumably the working directory is JMETER/bin. This also needs to be the case when running under WSAD or JMeter may not be able to find some required files. The start() method allows you to pass in a complete command line, so you can use this to specify an alternate jmeter.properties file (or the full path to the default one). This might help. Note that there is a long-standing bug in the Sun Windows JVMs - these do not honour the "user.dir" property for certain java.io methods - instead of using "user.dir", some functions use the Java launch directory. Very annoying. S. On 4/21/05, Sangeetha Srinivasan <[EMAIL PROTECTED]> wrote: > I am calling the jmeter . start() method from a java program which is > called from a servlet. I have the JMETER_HOME/bin in my system path. and > when I run the jmx file from windows command prompt, it seems to work ok. > where else should I set it while running from WSAD? Any suggestions? > > sebb <[EMAIL PROTECTED]> > 04/19/2005 04:16 AM > Please respond to > "JMeter Users List" > > To > JMeter Users List <[email protected]> > cc > > Subject > Re: Running JMeter using WSAD/ WebSphere > > It sounds like you are trying to run JMeter as a servlet in WebSphere > - is that correct? > > It looks like JMeter has failed to open its log file and is therefore > using System.out which is appearing in the WAS console. > > It also looks like JMeter has not found various properties it needs, > so I suspect the JMeter Home directory has not been set up properly, > and/or the current working directory has not been set to > JMETER_HOME/bin. > > S. > On 4/18/05, Sangeetha Srinivasan <[EMAIL PROTECTED]> wrote: > > It is from websphere's log, but that is being printed by JMeter when > > start() method is invoked right? > > > > Peter Lin <[EMAIL PROTECTED]> > > 04/18/2005 10:31 AM > > Please respond to > > "JMeter Users List" > > > > To > > JMeter Users List <[email protected]> > > cc > > > > Subject > > Re: Running JMeter using WSAD/ WebSphere > > > > > > hmm... it's hard to tell what is going on. is that from jmeter's log > > or websphere's log? > > > > peter > > > > On 4/18/05, Sangeetha Srinivasan <[EMAIL PROTECTED]> wrote: > > > I have a WSAD (WebSphere Studio Application Developer) application > that > > > invokes JMETER to run a java workload. My WSAD install directory is: > > > > > > C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2 > > > > > > and my JMeter install directory is : C:\Program Files\IBM\WebSphere > > > Studio\Application Developer\bin > > > > > > When I try to execute the workload from a servlet using the start() > > > method, I see the messages: > > > [4/18/05 10:09:57:759 PDT] 15cb2e9e SystemOut O Starting run > > > [4/18/05 10:09:58:260 PDT] 15cb2e9e SystemOut O Created the tree > > > successfully > > > [4/18/05 10:09:58:260 PDT] 15cb2e9e SystemOut O Starting the test > > > > > > in my WAS console..but nothing gets logged on to jmeter.log and no > > output > > > file gets generated as well. Can somebody help me with why it is not > > > working? or what else can be done to debug the problem? Let me know if > > you > > > need any additional information. > > > > > > Thanks, > > > > > > Sangeetha. > > > > > > ************************************ > > > Sangeetha Srinivasan > > > IBM Silicon Valley Lab > > > (408) 463-2845 - T/L 543-2845 > > > ************************************* > > > > > > > > > > --------------------------------------------------------------------- > > 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]

