[ https://issues.apache.org/jira/browse/CAMEL-14457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-14457: -------------------------------- Priority: Minor (was: Major) > Groovy language: NoClassDefFoundError in OSGi environment > --------------------------------------------------------- > > Key: CAMEL-14457 > URL: https://issues.apache.org/jira/browse/CAMEL-14457 > Project: Camel > Issue Type: Bug > Components: camel-groovy > Affects Versions: 3.0.0, 3.0.1 > Environment: Apache Karaf 4.2.8 > Reporter: Alex Soto > Priority: Minor > > With Camel 3.0.1, I am experiencing this error: > > {quote}{{java.lang.RuntimeException: java.lang.NoClassDefFoundError: > groovy/lang/Script}} > \{{ at > org.codehaus.groovy.control.CompilationUnit.convertUncaughtExceptionToCompilationError(CompilationUnit.java:1107)}} > \{{ at > org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)}} > \{{ at > org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:634)}} > \{{ at > org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:612)}} > \{{ at > org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:589)}} > \{{ at > groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:401)}} > \{{ at groovy.lang.GroovyClassLoader.access$300(GroovyClassLoader.java:89)}} > \{{ at groovy.lang.GroovyClassLoader$5.provide(GroovyClassLoader.java:341)}} > \{{ at groovy.lang.GroovyClassLoader$5.provide(GroovyClassLoader.java:338)}} > \{{ at > org.codehaus.groovy.runtime.memoize.ConcurrentCommonCache.getAndPut(ConcurrentCommonCache.java:147)}} > \{{ at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:336)}} > \{{ at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:320)}} > \{{ at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:262)}} > \{{ at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:272)}} > \{{ at > org.apache.camel.language.groovy.GroovyExpression.instantiateScript(GroovyExpression.java:73)}}{{…}} > {quote} > > > I am running Camel in Karaf OSGi environment with _camel-groovy_ feature > installed. In old Camel 2.X, I had to install features _camel-script,_ and > _camel-script-groovy,_ but they are no longer available. > > {color:#000000}Adding:{color} > {quote}DynamicImport-Package: groovy.**, org.codehaus.groovy.**{quote} > Fixes the issue. > -- This message was sent by Atlassian Jira (v8.3.4#803005)