bsh-2.0b-4.jar

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

bsh-2.0b-4.jar

SkipDever
I know you guys have moved on to groovy, but I still have several hundred
bsh scripts that I do not have the time to deal with.

BSH works fine for me, but I am getting a logging message:
experiment: creating class manager

I updated the bsh jar file to 2.1b, but got compile errors in BshUtil.java.

So, I downloaded the 2.0b-4 source, removed the offending System.out message
and rebuilt it.

However, I am still getting the same compile errors in BshUtil.java, namely

BshClassManager.createClassManager() does not exist (there is a
createClassManager(Interpreter)

Interpreter.ParsedScript does not exist.  There is nothing in the bsh code
that looks like anything similiar.

I am guessing that someone rename the jar file to bsh-2.0b-4.jar and it is
really not based on bsh-2.0b-4 code base.

Can anyone shed some light on this so I can get rid of the several hundreds
of lines of stupid log entries?

Skip

Reply | Threaded
Open this post in threaded view
|

Re: bsh-2.0b-4.jar

Adrian Crum-3
 From the jar file commit message:

"Updated bsh to version 2.0b4, with additions needed by OFBiz for
caching parsed scripts as an object; Jira issue #OFBIZ-528; thanks to
Cameron Smith for the initial efforts and testing on this; see that
issue for more details"


Adrian Crum
Sandglass Software
www.sandglass-software.com

On 10/18/2013 12:18 PM, Skip wrote:

> I know you guys have moved on to groovy, but I still have several hundred
> bsh scripts that I do not have the time to deal with.
>
> BSH works fine for me, but I am getting a logging message:
> experiment: creating class manager
>
> I updated the bsh jar file to 2.1b, but got compile errors in BshUtil.java.
>
> So, I downloaded the 2.0b-4 source, removed the offending System.out message
> and rebuilt it.
>
> However, I am still getting the same compile errors in BshUtil.java, namely
>
> BshClassManager.createClassManager() does not exist (there is a
> createClassManager(Interpreter)
>
> Interpreter.ParsedScript does not exist.  There is nothing in the bsh code
> that looks like anything similiar.
>
> I am guessing that someone rename the jar file to bsh-2.0b-4.jar and it is
> really not based on bsh-2.0b-4 code base.
>
> Can anyone shed some light on this so I can get rid of the several hundreds
> of lines of stupid log entries?
>
> Skip
>
Reply | Threaded
Open this post in threaded view
|

RE: bsh-2.0b-4.jar

SkipDever
Thanks Adrian

These additions have the changes required to eliminate the missing
references.  I'll see if I can merge them with fixed 2.0b-4 source by jaring
NameSpace.class with the Ofbiz supplied bsh-2.0b-4.jar.  I havent done this
in a coons age.  Does someone remember how to replace a class file in a jar
file?

Skip

-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Friday, October 18, 2013 1:01 PM
To: [hidden email]
Subject: Re: bsh-2.0b-4.jar


 From the jar file commit message:

"Updated bsh to version 2.0b4, with additions needed by OFBiz for
caching parsed scripts as an object; Jira issue #OFBIZ-528; thanks to
Cameron Smith for the initial efforts and testing on this; see that
issue for more details"


Adrian Crum
Sandglass Software
www.sandglass-software.com

On 10/18/2013 12:18 PM, Skip wrote:
> I know you guys have moved on to groovy, but I still have several hundred
> bsh scripts that I do not have the time to deal with.
>
> BSH works fine for me, but I am getting a logging message:
> experiment: creating class manager
>
> I updated the bsh jar file to 2.1b, but got compile errors in
BshUtil.java.
>
> So, I downloaded the 2.0b-4 source, removed the offending System.out
message
> and rebuilt it.
>
> However, I am still getting the same compile errors in BshUtil.java,
namely

>
> BshClassManager.createClassManager() does not exist (there is a
> createClassManager(Interpreter)
>
> Interpreter.ParsedScript does not exist.  There is nothing in the bsh code
> that looks like anything similiar.
>
> I am guessing that someone rename the jar file to bsh-2.0b-4.jar and it is
> really not based on bsh-2.0b-4 code base.
>
> Can anyone shed some light on this so I can get rid of the several
hundreds
> of lines of stupid log entries?
>
> Skip
>

Reply | Threaded
Open this post in threaded view
|

RE: bsh-2.0b-4.jar

SkipDever
Found the command, because the System.out is in NameSpace.class, the command
is

jar uf bsh-2.0b4.jar NameSpace.class

where NameSpace.class is the compiled class with the System.out.println
removed.

Skip

-----Original Message-----
From: Skip [mailto:[hidden email]]
Sent: Friday, October 18, 2013 1:56 PM
To: [hidden email]
Subject: RE: bsh-2.0b-4.jar


Thanks Adrian

These additions have the changes required to eliminate the missing
references.  I'll see if I can merge them with fixed 2.0b-4 source by jaring
NameSpace.class with the Ofbiz supplied bsh-2.0b-4.jar.  I havent done this
in a coons age.  Does someone remember how to replace a class file in a jar
file?

Skip

-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Friday, October 18, 2013 1:01 PM
To: [hidden email]
Subject: Re: bsh-2.0b-4.jar


 From the jar file commit message:

"Updated bsh to version 2.0b4, with additions needed by OFBiz for
caching parsed scripts as an object; Jira issue #OFBIZ-528; thanks to
Cameron Smith for the initial efforts and testing on this; see that
issue for more details"


Adrian Crum
Sandglass Software
www.sandglass-software.com

On 10/18/2013 12:18 PM, Skip wrote:
> I know you guys have moved on to groovy, but I still have several hundred
> bsh scripts that I do not have the time to deal with.
>
> BSH works fine for me, but I am getting a logging message:
> experiment: creating class manager
>
> I updated the bsh jar file to 2.1b, but got compile errors in
BshUtil.java.
>
> So, I downloaded the 2.0b-4 source, removed the offending System.out
message
> and rebuilt it.
>
> However, I am still getting the same compile errors in BshUtil.java,
namely

>
> BshClassManager.createClassManager() does not exist (there is a
> createClassManager(Interpreter)
>
> Interpreter.ParsedScript does not exist.  There is nothing in the bsh code
> that looks like anything similiar.
>
> I am guessing that someone rename the jar file to bsh-2.0b-4.jar and it is
> really not based on bsh-2.0b-4 code base.
>
> Can anyone shed some light on this so I can get rid of the several
hundreds
> of lines of stupid log entries?
>
> Skip
>


Reply | Threaded
Open this post in threaded view
|

RE: bsh-2.0b-4.jar

taher
In reply to this post by SkipDever
Hi skip,

You replace such files by updating the jar manifest using the jar command
u&f flags. Make sure to have the class in the same directory structure

A good article on this is
http://docs.oracle.com/javase/tutorial/deployment/jar/update.html

Hope that helps

Taher
Thanks Adrian

These additions have the changes required to eliminate the missing
references.  I'll see if I can merge them with fixed 2.0b-4 source by jaring
NameSpace.class with the Ofbiz supplied bsh-2.0b-4.jar.  I havent done this
in a coons age.  Does someone remember how to replace a class file in a jar
file?

Skip

-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Friday, October 18, 2013 1:01 PM
To: [hidden email]
Subject: Re: bsh-2.0b-4.jar


 From the jar file commit message:

"Updated bsh to version 2.0b4, with additions needed by OFBiz for
caching parsed scripts as an object; Jira issue #OFBIZ-528; thanks to
Cameron Smith for the initial efforts and testing on this; see that
issue for more details"


Adrian Crum
Sandglass Software
www.sandglass-software.com

On 10/18/2013 12:18 PM, Skip wrote:
> I know you guys have moved on to groovy, but I still have several hundred
> bsh scripts that I do not have the time to deal with.
>
> BSH works fine for me, but I am getting a logging message:
> experiment: creating class manager
>
> I updated the bsh jar file to 2.1b, but got compile errors in
BshUtil.java.
>
> So, I downloaded the 2.0b-4 source, removed the offending System.out
message
> and rebuilt it.
>
> However, I am still getting the same compile errors in BshUtil.java,
namely

>
> BshClassManager.createClassManager() does not exist (there is a
> createClassManager(Interpreter)
>
> Interpreter.ParsedScript does not exist.  There is nothing in the bsh code
> that looks like anything similiar.
>
> I am guessing that someone rename the jar file to bsh-2.0b-4.jar and it is
> really not based on bsh-2.0b-4 code base.
>
> Can anyone shed some light on this so I can get rid of the several
hundreds
> of lines of stupid log entries?
>
> Skip
>