Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

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

Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

David Johnson-21
Hi,

I have a virtual product with two variants.

If I click on the Features tab when I'm looking at the virtual product I
get:

java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes

Which seems to indicate that a groovy script is being called and it
can't find a required jar:

java.lang.NoClassDefFoundError
        groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
        groovy.lang.Binding.<init>(Binding.java:32)
        org.ofbiz.base.util.GroovyUtil.getShell(GroovyUtil.java:33)
        org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:60)
        org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:398)
        org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:216)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:400)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92)
        org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:96)
        org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:651)
        org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:435)
        org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255)


Has anyone else experienced this?

Reagrds

dave Johnson

--
Black Pepper Software Limited
The Mews, Trinity House,
Trinity Street, Leamington Spa,
Warwickshire. CV32 5Yo

Registered in England, No. 3763392
VAT No. 747 8497 68

Tel: 01926 886467
Mob: 07733 106990
Skype: davidajohnson1
Reply | Threaded
Open this post in threaded view
|

Re: Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

Scott Gray
Hi David

That jar is required for Groovy itself and should be present under
framework/base/lib/scripting/asm-2.2.jar

The screen you mentioned loads fine for me on the latest trunk revision.

Regards
Scott

2008/7/14 David Johnson <[hidden email]>:

> Hi,
>
> I have a virtual product with two variants.
>
> If I click on the Features tab when I'm looking at the virtual product I
> get:
>
> java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
>
> Which seems to indicate that a groovy script is being called and it can't
> find a required jar:
>
> java.lang.NoClassDefFoundError
>        groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
>        groovy.lang.Binding.<init>(Binding.java:32)
>        org.ofbiz.base.util.GroovyUtil.getShell(GroovyUtil.java:33)
>
>  org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:60)
>
>  org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:398)
>
>  org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122)
>
>  org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:216)
>
>  org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:400)
>
>  org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129)
>        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92)
>
>  org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:96)
>
>  org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:651)
>
>  org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:435)
>
>  org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>
>  org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255)
>
>
> Has anyone else experienced this?
>
> Reagrds
>
> dave Johnson
>
> --
> Black Pepper Software Limited
> The Mews, Trinity House,
> Trinity Street, Leamington Spa,
> Warwickshire. CV32 5Yo
>
> Registered in England, No. 3763392
> VAT No. 747 8497 68
>
> Tel: 01926 886467
> Mob: 07733 106990
> Skype: davidajohnson1
>
Reply | Threaded
Open this post in threaded view
|

Re: Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

David Johnson-21
Hi,

I'm running it in Eclipse and it wasn't on te project classpath.

Thanks

Dave

Scott Gray wrote:

> Hi David
>
> That jar is required for Groovy itself and should be present under
> framework/base/lib/scripting/asm-2.2.jar
>
> The screen you mentioned loads fine for me on the latest trunk revision.
>
> Regards
> Scott
>
> 2008/7/14 David Johnson <[hidden email]>:
>> Hi,
>>
>> I have a virtual product with two variants.
>>
>> If I click on the Features tab when I'm looking at the virtual product I
>> get:
>>
>> java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
>>
>> Which seems to indicate that a groovy script is being called and it can't
>> find a required jar:
>>
>> java.lang.NoClassDefFoundError
>>        groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
>>        groovy.lang.Binding.<init>(Binding.java:32)
>>        org.ofbiz.base.util.GroovyUtil.getShell(GroovyUtil.java:33)
>>
>>  org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:60)
>>
>>  org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:398)
>>
>>  org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122)
>>
>>  org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:216)
>>
>>  org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:400)
>>
>>  org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129)
>>        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92)
>>
>>  org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:96)
>>
>>  org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:651)
>>
>>  org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:435)
>>
>>  org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198)
>>        javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>>        javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>
>>  org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255)
>>
>>
>> Has anyone else experienced this?
>>
>> Reagrds
>>
>> dave Johnson
>>
>> --
>> Black Pepper Software Limited
>> The Mews, Trinity House,
>> Trinity Street, Leamington Spa,
>> Warwickshire. CV32 5Yo
>>
>> Registered in England, No. 3763392
>> VAT No. 747 8497 68
>>
>> Tel: 01926 886467
>> Mob: 07733 106990
>> Skype: davidajohnson1
>>
>


--
Black Pepper Software Limited
The Mews, Trinity House,
Trinity Street, Leamington Spa,
Warwickshire. CV32 5Yo

Registered in England, No. 3763392
VAT No. 747 8497 68

Tel: 01926 886467
Mob: 07733 106990
Skype: davidajohnson1
Reply | Threaded
Open this post in threaded view
|

Re: Clicking on Attribute Tab causes NoClassDefFoundError from a Groovy script call

Jacques Le Roux
Administrator
I looked in last trunk revision. It's there, so I guess you should update

Jacques

From: "David Johnson" <[hidden email]>

> Hi,
>
> I'm running it in Eclipse and it wasn't on te project classpath.
>
> Thanks
>
> Dave
>
> Scott Gray wrote:
>> Hi David
>>
>> That jar is required for Groovy itself and should be present under
>> framework/base/lib/scripting/asm-2.2.jar
>>
>> The screen you mentioned loads fine for me on the latest trunk revision.
>>
>> Regards
>> Scott
>>
>> 2008/7/14 David Johnson <[hidden email]>:
>>> Hi,
>>>
>>> I have a virtual product with two variants.
>>>
>>> If I click on the Features tab when I'm looking at the virtual product I
>>> get:
>>>
>>> java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
>>>
>>> Which seems to indicate that a groovy script is being called and it can't
>>> find a required jar:
>>>
>>> java.lang.NoClassDefFoundError
>>>        groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
>>>        groovy.lang.Binding.<init>(Binding.java:32)
>>>        org.ofbiz.base.util.GroovyUtil.getShell(GroovyUtil.java:33)
>>>
>>>  org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:60)
>>>
>>>  org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:398)
>>>
>>>  org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122)
>>>
>>>  org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:216)
>>>
>>>  org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:400)
>>>
>>>  org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129)
>>>        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92)
>>>
>>>  org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:96)
>>>
>>>  org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:651)
>>>
>>>  org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:435)
>>>
>>>  org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198)
>>>        javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>>>        javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>
>>>  org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255)
>>>
>>>
>>> Has anyone else experienced this?
>>>
>>> Reagrds
>>>
>>> dave Johnson
>>>
>>> --
>>> Black Pepper Software Limited
>>> The Mews, Trinity House,
>>> Trinity Street, Leamington Spa,
>>> Warwickshire. CV32 5Yo
>>>
>>> Registered in England, No. 3763392
>>> VAT No. 747 8497 68
>>>
>>> Tel: 01926 886467
>>> Mob: 07733 106990
>>> Skype: davidajohnson1
>>>
>>
>
>
> --
> Black Pepper Software Limited
> The Mews, Trinity House,
> Trinity Street, Leamington Spa,
> Warwickshire. CV32 5Yo
>
> Registered in England, No. 3763392
> VAT No. 747 8497 68
>
> Tel: 01926 886467
> Mob: 07733 106990
> Skype: davidajohnson1
>