Announcement Announcement Module
Collapse
No announcement yet.
NoClassDefFoundError using Groovy in Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NoClassDefFoundError using Groovy in Spring

    Hi,

    I am using groovy in Spring context. I am running the spring container loaded in an application server.
    I have set the Thread current context class loader correctly and that context classloader is able to find groovy/lang/GroovyClassLoader.

    The problem is, when Spring is creating the bean, it fails with the following exception:

    Caused By: java.lang.NoClassDefFoundError: groovy/lang/GroovyClassLoader
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2427)
    at java.lang.Class.privateGetPublicMethods(Class.java :2547)
    at java.lang.Class.getMethods(Class.java:1410)
    at
    java.beans.Introspector.getPublicDeclaredMethods(I ntrospector.java:1284)
    at java.beans.Introspector.getTargetMethodInfo(Intros pector.java:1158)
    at java.beans.Introspector.getBeanInfo(Introspector.j ava:408)
    at java.beans.Introspector.getBeanInfo(Introspector.j ava:167)
    at
    org.springframework.beans.CachedIntrospectionResul ts.<init>(CachedIntrospection
    Results.java:220)
    at
    org.springframework.beans.CachedIntrospectionResul ts.forClass(CachedIntrospecti
    onResults.java:144)
    at
    org.springframework.beans.BeanWrapperImpl.getCache dIntrospectionResults(BeanWra
    pperImpl.java:252)
    at
    org.springframework.beans.BeanWrapperImpl.getPrope rtyDescriptorInternal(BeanWra
    pperImpl.java:282)
    at
    org.springframework.beans.BeanWrapperImpl.isWritab leProperty(BeanWrapperImpl.ja
    va:333)
    at
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.ap
    plyPropertyValues(AbstractAutowireCapableBeanFacto ry.java:1247)
    at
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.po
    pulateBean(AbstractAutowireCapableBeanFactory.java :1010)

    Can any one suggest something? Should this question be posted to the Spring Forum instead?
Working...
X