You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Skip <sk...@thedevers.org> on 2013/10/18 21:18:38 UTC
bsh-2.0b-4.jar
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
RE: bsh-2.0b-4.jar
Posted by Taher Alkhateeb <sl...@gmail.com>.
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:adrian.crum@sandglass-software.com]
Sent: Friday, October 18, 2013 1:01 PM
To: user@ofbiz.apache.org
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
>
RE: bsh-2.0b-4.jar
Posted by Skip <sk...@thedevers.org>.
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:skip@thedevers.org]
Sent: Friday, October 18, 2013 1:56 PM
To: user@ofbiz.apache.org
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:adrian.crum@sandglass-software.com]
Sent: Friday, October 18, 2013 1:01 PM
To: user@ofbiz.apache.org
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
>
RE: bsh-2.0b-4.jar
Posted by Skip <sk...@thedevers.org>.
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:adrian.crum@sandglass-software.com]
Sent: Friday, October 18, 2013 1:01 PM
To: user@ofbiz.apache.org
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
>
Re: bsh-2.0b-4.jar
Posted by Adrian Crum <ad...@sandglass-software.com>.
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
>