Still get "java.lang.NoClassDefFoundError"

Help
liny
2008-04-11
2013-04-23
  • liny
    liny
    2008-04-11

    Hi, Sir:

    According to http://wiki.apache.org/myfaces/Trinidad_and_JDK_1%2e4
    I use Retroweaver 2.0.5 and weaved Trinidad 1.0.7 jar file for JDK 1.4 successfully.
    Then I put backport-util-concurrent.jar, retroweaver-rt-2.0.5.jar, and ThreadLocal_ class to WEB-INF/lib in my war file, then deploy.

    But occurred following exception:

    Caused by: java.lang.NoClassDefFoundError: java/util/concurrent/ConcurrentHashMap
            at org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase.<init>(RenderKitBase.java:47)
            at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.<init>(RenderKitDecorator.java:39)
            at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.<init>(CoreRenderKit.java:168)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at java.lang.Class.newInstance0(Class.java:308)
            at java.lang.Class.newInstance(Class.java:261)
            at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:277)
            ... 42 more

    I use MyFaces 1.1.5 for my web application, too.
    Could you please help me how to solve it?

    Thanks and best regards,

    liny