Beanshell source code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Beanshell source code

Daniel McAllister
Hello!

I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking for
is the Beanshell source-code that is bundled with this version. More
specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
patched, but the jar file's name doesn't reflect the patches. I have found
several patches at here https://issues.apache.org/jira/browse/OFBIZ but
it's very confusing what patches should i apply on the original Beanshell
source.

Someone please send me the source-code of the bsh jar.

Thx, Daniel.
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

Jacques Le Roux
Administrator
So you mean https://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/base/lib/scripting/bsf-2.4.0.jar
is wrong?

Jacques

From: "Daniel McAllister" <[hidden email]>

> Hello!
>
> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking for
> is the Beanshell source-code that is bundled with this version. More
> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
> patched, but the jar file's name doesn't reflect the patches. I have found
> several patches at here https://issues.apache.org/jira/browse/OFBIZ but
> it's very confusing what patches should i apply on the original Beanshell
> source.
>
> Someone please send me the source-code of the bsh jar.
>
> Thx, Daniel.
>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

Daniel McAllister
It's not wrong. Can you please help me with getting the source code? I need
the source for both bsf and bsh.
I have downloaded the bsf source code from here
http://commons.apache.org/bsf/download_bsf.cgi but it seems that it's not
the correct source.

What I try to do is debug bsh files and write a debugger for it.

On Fri, Mar 23, 2012 at 5:51 PM, Jacques Le Roux <
[hidden email]> wrote:

> So you mean https://svn.apache.org/repos/**asf/ofbiz/branches/release4.0/*
> *framework/base/lib/scripting/**bsf-2.4.0.jar<https://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/base/lib/scripting/bsf-2.4.0.jar>
> is wrong?
>
> Jacques
>
> From: "Daniel McAllister" <[hidden email]>
>
>  Hello!
>>
>> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking
>> for
>> is the Beanshell source-code that is bundled with this version. More
>> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
>> patched, but the jar file's name doesn't reflect the patches. I have found
>> several patches at here https://issues.apache.org/**jira/browse/OFBIZ<https://issues.apache.org/jira/browse/OFBIZ>but
>> it's very confusing what patches should i apply on the original Beanshell
>> source.
>>
>> Someone please send me the source-code of the bsh jar.
>>
>> Thx, Daniel.
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

Jacques Le Roux
Administrator
Ha yes, I remember now, David made some changes there indeed. Mostly for the cache part IIRW.

Mmm... no ideas about where the source could be now... Maybe David will read this...

Jacques

From: "Daniel McAllister" <[hidden email]>

> It's not wrong. Can you please help me with getting the source code? I need
> the source for both bsf and bsh.
> I have downloaded the bsf source code from here
> http://commons.apache.org/bsf/download_bsf.cgi but it seems that it's not
> the correct source.
>
> What I try to do is debug bsh files and write a debugger for it.
>
> On Fri, Mar 23, 2012 at 5:51 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> So you mean https://svn.apache.org/repos/**asf/ofbiz/branches/release4.0/*
>> *framework/base/lib/scripting/**bsf-2.4.0.jar<https://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/base/lib/scripting/bsf-2.4.0.jar>
>> is wrong?
>>
>> Jacques
>>
>> From: "Daniel McAllister" <[hidden email]>
>>
>>  Hello!
>>>
>>> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking
>>> for
>>> is the Beanshell source-code that is bundled with this version. More
>>> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
>>> patched, but the jar file's name doesn't reflect the patches. I have found
>>> several patches at here https://issues.apache.org/**jira/browse/OFBIZ<https://issues.apache.org/jira/browse/OFBIZ>but
>>> it's very confusing what patches should i apply on the original Beanshell
>>> source.
>>>
>>> Someone please send me the source-code of the bsh jar.
>>>
>>> Thx, Daniel.
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

Mansour
Daniel,
2 of the jars included with ofbiz are modified

bsh-2.0b4.jar  jdbm-1.0-SNAPSHOT.jar

Or at least I was not able to find them anywhere else.
The following IVY dependencies are required to compile base component.
I didn't not test it running.

  <dependency org="javax" name="javaee-api" rev="6.0" conf="runtime->*" />
        <dependency org="org.javolution" name="javolution" rev="5.3.1" />
        <dependency org="org.mnode.ical4j" name="ical4j" rev="1.0.3">
            <exclude module="groovy-all" />
            <exclude module="slf4j-api" />
        </dependency>
        <dependency org="org.freemarker" name="freemarker" rev="2.3.18"/>
        <dependency org="org.codehaus.groovy" name="groovy-all"
rev="2.0.0-beta-2">
            <exclude module="junit" />
            <exclude module="xstream" />
        </dependency>
        <dependency org="org.hamcrest" name="hamcrest-all" rev="1.2">
            <exclude module="junit" />
        </dependency>
        <dependency org="httpunit" name="httpunit" rev="1.7">
            <exclude module="junit" />
        </dependency>
        <dependency org="junit" name="junit" rev="3.8.2" force="true"  />
        <dependency org="log4j" name="log4j" rev="1.2.15">
            <exclude module="jmxri" />
            <exclude module="jmxtools" />
        </dependency>
        <dependency org="com.googlecode.concurrentlinkedhashmap"
name="concurrentlinkedhashmap-lru" rev="1.2_jdk5"/>
        <dependency org="com.ibm.icu" name="icu4j" rev="4.8.1.1"/>
        <dependency org="com.thoughtworks.xstream" name="xstream"
rev="1.4.2" />
        <dependency org="commons-validator" name="commons-validator"
rev="1.3.1"/>
        <dependency org="avalon-util" name="avalon-util-exception" rev="1.0.0"/>
        <dependency org="commons-fileupload" name="commons-fileupload"
 rev="1.2.2"/>
        <dependency org="org.apache.commons" name="commons-compress" rev="1.1"/>
        <dependency  org="org.apache.httpcomponents" name="httpcore" rev="4.1"/>
        <dependency rev="4.1.1" org="org.apache.httpcomponents"
name="httpclient-cache" >
            <exclude module="memcached" />
        </dependency>
        <dependency org="oro" name="oro" rev="2.0.8" conf="compile->*" />
        <dependency org="xerces" name="xercesImpl" rev="2.9.1"
conf="compile->*" />
        <dependency org="commons-io" name="commons-io" rev="2.1"/>
        <dependency org="net.sourceforge.nekohtml" name="nekohtml" rev="1.9.7"/>
        <dependency org="bsf" name="bsf" rev="2.4.0"/>
        <dependency org="de.odysseus.juel" name="juel" rev="2.1.3"/>

For owasp-esapi-full-java-1.4.jar it had to be downloaded manually.
As you can see bsf:bsf:2.4.0 is in the list, so it should be ok to get
the corresponding source code.



On Fri, Mar 23, 2012 at 1:52 PM, Jacques Le Roux
<[hidden email]> wrote:

> Ha yes, I remember now, David made some changes there indeed. Mostly for the
> cache part IIRW.
>
> Mmm... no ideas about where the source could be now... Maybe David will read
> this...
>
>
> Jacques
>
> From: "Daniel McAllister" <[hidden email]>
>>
>> It's not wrong. Can you please help me with getting the source code? I
>> need
>> the source for both bsf and bsh.
>> I have downloaded the bsf source code from here
>> http://commons.apache.org/bsf/download_bsf.cgi but it seems that it's not
>> the correct source.
>>
>> What I try to do is debug bsh files and write a debugger for it.
>>
>> On Fri, Mar 23, 2012 at 5:51 PM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>> So you mean
>>> https://svn.apache.org/repos/**asf/ofbiz/branches/release4.0/*
>>>
>>> *framework/base/lib/scripting/**bsf-2.4.0.jar<https://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/base/lib/scripting/bsf-2.4.0.jar>
>>> is wrong?
>>>
>>> Jacques
>>>
>>> From: "Daniel McAllister" <[hidden email]>
>>>
>>>  Hello!
>>>>
>>>>
>>>> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking
>>>> for
>>>> is the Beanshell source-code that is bundled with this version. More
>>>> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
>>>> patched, but the jar file's name doesn't reflect the patches. I have
>>>> found
>>>> several patches at here
>>>> https://issues.apache.org/**jira/browse/OFBIZ<https://issues.apache.org/jira/browse/OFBIZ>but
>>>> it's very confusing what patches should i apply on the original
>>>> Beanshell
>>>> source.
>>>>
>>>> Someone please send me the source-code of the bsh jar.
>>>>
>>>> Thx, Daniel.
>>>>
>>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

BJ Freeman
In reply to this post by Daniel McAllister
http://svn.apache.org/viewvc?view=revision&revision=533448
https://issues.apache.org/jira/browse/OFBIZ-528

Daniel McAllister sent the following on 3/23/2012 6:13 AM:

> Hello!
>
> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking for
> is the Beanshell source-code that is bundled with this version. More
> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
> patched, but the jar file's name doesn't reflect the patches. I have found
> several patches at here https://issues.apache.org/jira/browse/OFBIZ but
> it's very confusing what patches should i apply on the original Beanshell
> source.
>
> Someone please send me the source-code of the bsh jar.
>
> Thx, Daniel.
>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

BJ Freeman
http://svn.apache.org/viewvc?view=revision&revision=929809

BJ Freeman sent the following on 3/25/2012 2:12 AM:

> http://svn.apache.org/viewvc?view=revision&revision=533448
> https://issues.apache.org/jira/browse/OFBIZ-528
>
> Daniel McAllister sent the following on 3/23/2012 6:13 AM:
>> Hello!
>>
>> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm
>> looking for
>> is the Beanshell source-code that is bundled with this version. More
>> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
>> patched, but the jar file's name doesn't reflect the patches. I have
>> found
>> several patches at here https://issues.apache.org/jira/browse/OFBIZ but
>> it's very confusing what patches should i apply on the original Beanshell
>> source.
>>
>> Someone please send me the source-code of the bsh jar.
>>
>> Thx, Daniel.
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

Jacques Le Roux
Administrator
In reply to this post by BJ Freeman
in https://issues.apache.org/jira/browse/OFBIZ-528
I updated the link to <<OFBiz Customized BeanShell Source (with ParsedScript object)>> in wiki

Hopefully the required sources are in OFBIZ-528, I did not check.

Ha yes it's here https://issues.apache.org/jira/browse/OFBIZ-303, right?

Jacques

From: "BJ Freeman" <[hidden email]>

> http://svn.apache.org/viewvc?view=revision&revision=533448
> https://issues.apache.org/jira/browse/OFBIZ-528
>
> Daniel McAllister sent the following on 3/23/2012 6:13 AM:
>> Hello!
>>
>> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm looking for
>> is the Beanshell source-code that is bundled with this version. More
>> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
>> patched, but the jar file's name doesn't reflect the patches. I have found
>> several patches at here https://issues.apache.org/jira/browse/OFBIZ but
>> it's very confusing what patches should i apply on the original Beanshell
>> source.
>>
>> Someone please send me the source-code of the bsh jar.
>>
>> Thx, Daniel.
>>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

BJ Freeman
thanks for clean up on wiki.
I missed 303 so now we have a complete path.


Jacques Le Roux sent the following on 3/25/2012 2:41 AM:

> in https://issues.apache.org/jira/browse/OFBIZ-528
> I updated the link to <<OFBiz Customized BeanShell Source (with
> ParsedScript object)>> in wiki
>
> Hopefully the required sources are in OFBIZ-528, I did not check.
>
> Ha yes it's here https://issues.apache.org/jira/browse/OFBIZ-303, right?
>
> Jacques
>
> From: "BJ Freeman" <[hidden email]>
>> http://svn.apache.org/viewvc?view=revision&revision=533448
>> https://issues.apache.org/jira/browse/OFBIZ-528
>>
>> Daniel McAllister sent the following on 3/23/2012 6:13 AM:
>>> Hello!
>>>
>>> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm
>>> looking for
>>> is the Beanshell source-code that is bundled with this version. More
>>> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
>>> patched, but the jar file's name doesn't reflect the patches. I have
>>> found
>>> several patches at here https://issues.apache.org/jira/browse/OFBIZ but
>>> it's very confusing what patches should i apply on the original
>>> Beanshell
>>> source.
>>>
>>> Someone please send me the source-code of the bsh jar.
>>>
>>> Thx, Daniel.
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Beanshell source code

Jacques Le Roux
Administrator
Thanks for the initial headup

Jacques

From: "BJ Freeman" <[hidden email]>

> thanks for clean up on wiki.
> I missed 303 so now we have a complete path.
>
>
> Jacques Le Roux sent the following on 3/25/2012 2:41 AM:
>> in https://issues.apache.org/jira/browse/OFBIZ-528
>> I updated the link to <<OFBiz Customized BeanShell Source (with
>> ParsedScript object)>> in wiki
>>
>> Hopefully the required sources are in OFBIZ-528, I did not check.
>>
>> Ha yes it's here https://issues.apache.org/jira/browse/OFBIZ-303, right?
>>
>> Jacques
>>
>> From: "BJ Freeman" <[hidden email]>
>>> http://svn.apache.org/viewvc?view=revision&revision=533448
>>> https://issues.apache.org/jira/browse/OFBIZ-528
>>>
>>> Daniel McAllister sent the following on 3/23/2012 6:13 AM:
>>>> Hello!
>>>>
>>>> I'm using an old version of Ofbiz. It's the Ofbiz 4.0. What I'm
>>>> looking for
>>>> is the Beanshell source-code that is bundled with this version. More
>>>> specifically the the bsh-2.0b4.jar. Unfortunately the jar file has been
>>>> patched, but the jar file's name doesn't reflect the patches. I have
>>>> found
>>>> several patches at here https://issues.apache.org/jira/browse/OFBIZ but
>>>> it's very confusing what patches should i apply on the original
>>>> Beanshell
>>>> source.
>>>>
>>>> Someone please send me the source-code of the bsh jar.
>>>>
>>>> Thx, Daniel.
>>>>
>>