Re: [BSF] Couldn't build bsf project from source

vijayaratha vijayasingam <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.devel
Message-ID <[email protected]>
Hi,
Thanks a lot for the information...
What i actually try to do is,In my project(wso2 ESB, which uses apache synapse 
as a base mediation engine, )i try to test a script mediator(groovy script 
mediator)
Synapse uses bsf 3.0 version and groovy-all-1.1-rc-1 .jar as groovy 
engine..Anyway this works fine in synapse..but not in WSO2 ESB. Error i get is " 
script engine not found for groovy...:(  anyway  groovy-all-1.1-rc-1.jar is 
available in classpath....Thatsy wanted to look into BSF source(3.0 version) 
code..

p.s: Same BSF version(3.0) we use in wso2ESB also..(Because synapse is our base 
mediation engine)

Thanks
-Ratha.




________________________________
From: sebb <[email protected]>
To: [email protected]
Sent: Wed, 27 April, 2011 17:34:28
Subject: Re: [BSF] Couldn't build bsf project from source

On 27 April 2011 12:57, vijayaratha vijayasingam
<[email protected]> wrote:
>
>
>
>
>
> ________________________________
> From: sebb <[email protected]>
> To: [email protected]
> Sent: Wed, 27 April, 2011 17:19:20
> Subject: Re: [BSF] Couldn't build bsf project from source
>
> On 27 April 2011 12:43, vijayaratha vijayasingam
> <[email protected]> wrote:
>> Hi,
>> After commenting commented out testing/bsf-engines and commented out
>>bsf-engines
>> @ the build.xml of distribution module i was able to build project
>> successfully... Anyway i couldnt start my application because im getting 
class
>> not found exception[1]
>
> This error is nothing to do with BSF; you need to download the
> appropriate scripting engine.
> BSF 3.1 does not include any scripting engines.
>
>> Partial build is not working for my case to debug...
>> Without a full success build i can not debug...:(
>
> What Java version are you using?
>
> JDK1.6.0_20

In which case (as I already wrote) you don't need BSF 3.1.

> I tried to find a location to down that particular jsr223-engines.zip in 
google
> and all point to this location "https://scripting.dev.java.net"..
> BTW if there is no any other solution from ASF side..I try to debug with BSF 
>3.1
> and see..

I repeat: you don't need BSF 3.1 with Java 1.6+.
In fact adding bsf-api-3.1 to the classpath may cause problems.

You do need to ensure that you have the appropriate scripting engine
on the classpath.

> Thanks a lot for your help...
>
> Regards,
> -Ratha.
>
>> Regards,
>> -Ratha.
>>
>> [1]
>> java.lang.NoClassDefFoundError:
>> com/sun/phobos/script/javascript/RhinoScriptEngineFactory
>>        at
>>org.apache.synapse.mediators.bsf.ScriptMediator.initScriptEngine(ScriptMediator.java:402)
>>
>>)
>>
>>
>>        at
>>org.apache.synapse.mediators.bsf.ScriptMediator.initInlineScript(ScriptMediator.java:268)
>>
>>)
>>
>>
>>
>>
>>
>>
>> ________________________________
>> From: sebb <[email protected]>
>> To: [email protected]
>> Sent: Wed, 27 April, 2011 16:51:48
>> Subject: Re: [BSF] Couldn't build bsf project from source
>>
>> On 27 April 2011 12:00, vijayaratha vijayasingam
>> <[email protected]> wrote:
>>>
>>>
>>>
>>>
>>>
>>> ________________________________
>>> From: sebb <[email protected]>
>>> To: [email protected]
>>> Sent: Wed, 27 April, 2011 16:21:18
>>> Subject: Re: [BSF] Couldn't build bsf project from source
>>>
>>> On 27 April 2011 11:22, vijayaratha vijayasingam
>>> <[email protected]> wrote:
>>>> Hi all,
>>>> I'm trying to build the bsf project from source (version  3.0.0) .I
>> downloaded
>>>> the source distribution and tried  to build it.. but  anyway  i'm failing
>>>  with
>>>> the following issue [1], since 'jsr' site is  unavailable..
>>>
>>> Not a lot we can do to fix that; it's not an ASF resource.
>>>
>>>> Would be great if someone look into this issue ASAP.. i'm trying to debug 
my
>>>> project,  for that i need the bsf source..
>>>
>>> Which is available from the download location as usual.
>>>
>>> The engines are only needed to test some parts of BSF; just comment
>>> out the following lines in the top level pom:
>>>
>>>        <module>bsf-engines</module>
>>> and
>>>        <module>testing</module>
>>>
>>> Hi,
>>> Thanks for the response ,
>>>  i tried to avoid testing/bsf-engines modules..but distribution needs
>>> bsf-engines jar..so couldn't build the project...:(
>>
>> bsf-engines.jar is NOT needed for the distribution.
>>
>> However, bsf-utils has a dependency on bsf-engines which needs to be
>> commented out as well.
>> Not sure why it is a compile-time depend (that may be incorrect)
>>
>> You will then need to run Maven with -DskipTests otherwise the
>> bsf-utils module will fail.
>>
>> ---------------------------------------------------------------------
>> 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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.