Hi Scott,
i agree, embedded groovy is not good idea at all. But i didn't found any
other solution that works. External libraries in same versions didn't
works for me:
java.lang.AbstractMethodError
org.codehaus.groovy.control.CompilationUnit$10.call(CompilationUnit.java:711)
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:885)
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:436)
net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:84)
net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:188)
net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)
net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:201)
org.ofbiz.webapp.view.JasperReportsPdfViewHandler.render(JasperReportsPdfViewHandler.java:87)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:789)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:533)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
Groovy-all library works. I prefer groovy library, not groovy-all, but
for unknown reason works only groovy-all.
Btw, iReport use groovy-all too.
ya
Dňa Ut, 2009-11-24 o 01:45 +1300, Scott Gray napísal:
> Hi Ján
>
> It makes no sense for us to use groovy-all because half of the
> included libraries are already present in OFBiz. You should not add
> groovy-all to your classpath but instead add the individual libraries
> as you need them, they are right there in the lib folder of the groovy
> binary download.
>
> Regards
> Scott
>
> On 24/11/2009, at 12:17 AM, Ján Valkovič wrote:
>
> > Hi,
> > why OFBiz use library groovy-1.5.5.jar and not groovy-all-1.5.5.jar? I
> > need goovy-all library for jasper report with groovy language and i
> > don't know if there will be any version (or other) conflict with any
> > other library.
> >
> > After quick check it seems it's ok, but it's not possible check
> > all :-)
> >
> > Thanks
> >
> > ya
> >
> >
>