2 Replies Latest reply on Aug 11, 2009 10:06 PM by israel.bgf

    Groovy Exception without Groovy

    israel.bgf

      Today I got a really strange exception when accessing a Seam Application, it's in another server and I don't have access to it, but i got this exception:


      java.lang.NoClassDefFoundError: Could not initialize class org.jboss.seam.deployment.GroovyHotDeploymentStrategy
           sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           java.lang.reflect.Constructor.newInstance(Constructor.java:513)
           org.jboss.seam.deployment.HotDeploymentStrategy.createInstance(HotDeploymentStrategy.java:149)
           org.jboss.seam.init.Initialization.createHotDeployment(Initialization.java:856)
           org.jboss.seam.init.Initialization.redeploy(Initialization.java:758)
           org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:45)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      



      The strange thin is: I'm not using groovy in anyway in this application. Someone have already faced it before? Any ideas?


      Thanks in advance,


      Israel


      (Using Seam 2.1.1 and JBoss 4.2.3 JDK6)

        • 1. Re: Groovy Exception without Groovy
          asookazian

          Are you sure?  Something is obviously using groovy:


          org.jboss.seam.init.Initialization.java:


          private HotDeploymentStrategy createHotDeployment(ClassLoader classLoader, boolean hotDeployEnabled)
             {
                if (isGroovyPresent())
                {
                   log.debug("Using Java + Groovy hot deploy");
                   return HotDeploymentStrategy.createInstance("org.jboss.seam.deployment.GroovyHotDeploymentStrategy", classLoader, hotDeployDirectory, hotDeployEnabled);
                }
                else 
                {
                   log.debug("Using Java hot deploy");
                   return new HotDeploymentStrategy(classLoader, hotDeployDirectory, hotDeployEnabled);
                }
             }

          • 2. Re: Groovy Exception without Groovy
            israel.bgf

            Well they restarted the server and the thing started to work automagically. Weird, but some groovy stuff is indeed loaded by default.