1 Reply Latest reply on Dec 5, 2013 12:48 AM by selvaraj chennappan

    java.lang.NoClassDefFoundError: Could not initialize class org.jboss.seam.persistence.HibernatePersistenceProvider

    selvaraj chennappan Newbie

      Hi

       

      I am getting below exception

       

      Caused by: java.lang.RuntimeException: exception invoking: validate

        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)

        at org.jboss.seam.Component.callComponentMethod(Component.java:2313)

        at org.jboss.seam.Component.callCreateMethod(Component.java:2236)

        at org.jboss.seam.Component.newInstance(Component.java:2196)

        ... 83 more

      Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)

        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)

        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

        at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)

        at org.jboss.seam.util.Work.workInTransaction(Work.java:61)

        at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)

        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196)

        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114)

        at com.mavenir.sps.session.BrowserSupportList_$$_javassist_seam_5.validate(BrowserSupportList_$$_javassist_seam_5.java)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)

        ... 86 more

      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.seam.persistence.HibernatePersistenceProvider

        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:513)

        at java.lang.Class.newInstance0(Class.java:355)

        at java.lang.Class.newInstance(Class.java:308)

        at org.jboss.seam.Component.instantiateJavaBean(Component.java:1445)

        at org.jboss.seam.Component.instantiate(Component.java:1364)

        at org.jboss.seam.Component.newInstance(Component.java:2186)

        at org.jboss.seam.Component.getInstance(Component.java:2034)

        at org.jboss.seam.Component.getInstance(Component.java:2013)

        at org.jboss.seam.Component.getInstance(Component.java:2007)

        at org.jboss.seam.Component.getInstance(Component.java:1980)

        at org.jboss.seam.Component.getInstance(Component.java:1975)

        at org.jboss.seam.persistence.PersistenceProvider.instance(PersistenceProvider.java:204)

        at org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:44)

       

       

      I have seam 2.3.1 jboss-seam .jar .

       

        class org.jboss.seam.persistence.HibernatePersistenceProvider

       

      is available in that jar .
      Could anyone help me to solve

      -Selvaraj C