2 Replies Latest reply on Aug 6, 2012 6:31 PM by jgohlke

    java.lang.NoClassDefFoundError: groovy/lang/Script

    baleado

      Hi people,

       

      I'm trying to use the camel:choice with a groovy condition but I'm getting the follow error:

       

      java.lang.NoClassDefFoundError: groovy/lang/Script

       

      I checked and the osgi bundle camel-groovy is Active.

       

      What could it be?

        • 1. Re: java.lang.NoClassDefFoundError: groovy/lang/Script
          davsclaus

          Hi

           

          Can you try to undeploy camel-groovy, and install camel-script, and camel-script-groovy instead.

           

          You may have to restart the ESB to be fully sure to get it working.

          • 2. Re: java.lang.NoClassDefFoundError: groovy/lang/Script
            jgohlke

            Unfortunately, I'm getting this error too. If I add the dependency on camel-script, I don't get it anymore, but I get a blueprint context that hangs waiting for an SpiComponentResolver with the name 'groovy', 'js', or 'ruby'. I'm throughly stumped as I've gone as far as to delete the entire 'data' directory and reinstall everything. Nothing

             

            >(&(language=groovy)(objectClass=org.apache.camel.spi.LanguageResolver))

             

            Edited by: jgohlke on Aug 6, 2012 10:30 PM

             

            Edited by: jgohlke on Aug 6, 2012 10:30 PM