Hello, Philippe,

yeah it works, thanks.
But it not simply very slow, it just awfully slow.
I also noticed, it writes lot of output to the console window during execution. 

-----
VR

-----Original Message-----
From: Philippe Mouawad [mailto:[email protected]] 
Sent: Friday, May 30, 2014 12:31 AM
To: JMeter Users List
Subject: Re: JSR223 + scala

Hello,

Here is how I setup scala:
1/ In user.properties, I added:
user.classpath=../scala

2/ I created a scala folder under jmeter (same level as lib) where I have put 
all scala jars

3/ In system.properties, I added:
scala.usejavacp=true

4/ I fixed the code :
Replaced :
logger.warn("Hello world!");
by
var logger = log.asInstanceOf[org.apache.log.Logger];
logger.warn("Hello world!");


Note 1/ and 2/ are only to be clean.
3/ is the way to fix you issue

Note even with caching of compiled classes, it seems to be very slow.



Regards
Philippe M.
@philmdot


On Tue, May 27, 2014 at 8:21 AM, Ryabtsev Vladimir <[email protected]>
wrote:

> Hello,
>
> done: https://issues.apache.org/bugzilla/show_bug.cgi?id=56567
> Please comment if you need any additional info.
>
> -----
> VR
>
>
> -----Original Message-----
> From: Philippe Mouawad [mailto:[email protected]]
> Sent: Friday, May 23, 2014 11:51 PM
> To: JMeter Users List
> Subject: Re: JSR223 + scala
>
> Hello,
> Could you open a bugzilla and attach your test plan with settings 
> description ?
> Thank you
>
>
> On Fri, May 23, 2014 at 3:18 PM, Ryabtsev Vladimir <[email protected]
> >wrote:
>
> > Hi,
> >
> > did anyone try to use scala language in JSR223? I've downloaded 
> > scala lib and put it into lib folder. After that scala appeared in 
> > language list of
> > JSR223 as 'scala (Scala version 2.11.1 / Scala Interpreter 1.0)' in 
> > my nightly build of JMeter. But during the execution of the test 
> > plan error
> > appears:
> >
> > In log:
> > Error while processing sampler 'JSR223 Sampler' :
> > scala.reflect.internal.MissingRequirementError: object scala in 
> > compiler mirror not found.
> >
> > And in console:
> > Failed to initialize compiler: object scala in compiler mirror not found.
> > ** Note that as of 2.8 scala does not assume use of the java classpath.
> > ** For the old behavior pass -usejavacp to scala, or if using a 
> > Settings
> > ** object programatically, settings.usejavacp.value = true.
> >
> >  Does anybody knows solution to this issue?
> >
> > -----
> > VR
> >
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


--
Cordialement.
Philippe Mouawad.

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

Reply via email to