1 Reply Latest reply on Apr 14, 2014 7:45 AM by Marek Novotny

    Seam 2.2.2 on JBoss EAP 6.2 (Hibernate Unknown Enitity)

    Grigoriy Tkachuk Newbie

      I'm trying to migrate application from old JBoss 4.2.3 to JBoss EAP 6.2. And I stuck with problem on deployment .

       

      Deployment exception:

      0m [31m13:03:15,847 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/justshop]] (ServerService Thread Pool -- 20) JBWEB000287: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: org.jboss.seam.InstantiationException: Could not instantiate Seam component: qiwiOrderChecker
        at org.jboss.seam.Component.newInstance(Component.java:2170) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.init.Initialization.init(Initialization.java:744) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_51]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: java.lang.IllegalArgumentException: Unknown entity: ru.makingpages.justshop.model.ServerParameter
        at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:626) [hibernate-entitymanager-3.6.0.Final.jar:3.6.0.Final]
        at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:589) [hibernate-entitymanager-3.6.0.Final.jar:3.6.0.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:46) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at com.sun.proxy.$Proxy72.find(Unknown Source)
        at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.find(FullTextEntityManagerImpl.java:137) [hibernate-search-3.4.1.Final.jar:3.4.1.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:46) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at com.sun.proxy.$Proxy73.find(Unknown Source)
        at ru.makingpages.justshop.common.ServerParameterController.isQiwiActivated(ServerParameterController.java:37) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at ru.makingpages.justshop.common.ServerParameterController_$$_javassist_seam_2.isQiwiActivated(ServerParameterController_$$_javassist_seam_2.java) [classes:]
        at ru.makingpages.justshop.payment.qiwi.QIWIPayOrderChecker.start(QIWIPayOrderChecker.java:28) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at ru.makingpages.justshop.payment.qiwi.QIWIPayOrderChecker_$$_javassist_seam_0.start(QIWIPayOrderChecker_$$_javassist_seam_0.java) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.Component.callCreateMethod(Component.java:2198) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.Component.newInstance(Component.java:2158) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        ... 16 more
      0m [31m13:03:15,847 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/justshop]] (ServerService Thread Pool -- 20) JBWEB000287: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: org.jboss.seam.InstantiationException: Could not instantiate Seam component: qiwiOrderChecker
        at org.jboss.seam.Component.newInstance(Component.java:2170) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.init.Initialization.init(Initialization.java:744) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_51]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: java.lang.IllegalArgumentException: Unknown entity: ru.makingpages.justshop.model.ServerParameter
        at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:626) [hibernate-entitymanager-3.6.0.Final.jar:3.6.0.Final]
        at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:589) [hibernate-entitymanager-3.6.0.Final.jar:3.6.0.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:46) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at com.sun.proxy.$Proxy72.find(Unknown Source)
        at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.find(FullTextEntityManagerImpl.java:137) [hibernate-search-3.4.1.Final.jar:3.4.1.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:46) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at com.sun.proxy.$Proxy73.find(Unknown Source)
        at ru.makingpages.justshop.common.ServerParameterController.isQiwiActivated(ServerParameterController.java:37) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at ru.makingpages.justshop.common.ServerParameterController_$$_javassist_seam_2.isQiwiActivated(ServerParameterController_$$_javassist_seam_2.java) [classes:]
        at ru.makingpages.justshop.payment.qiwi.QIWIPayOrderChecker.start(QIWIPayOrderChecker.java:28) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at ru.makingpages.justshop.payment.qiwi.QIWIPayOrderChecker_$$_javassist_seam_0.start(QIWIPayOrderChecker_$$_javassist_seam_0.java) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.Component.callCreateMethod(Component.java:2198) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        at org.jboss.seam.Component.newInstance(Component.java:2158) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
        ... 16 more
      
      

       

      WEB-INF/jboss-deployment-structure.xml

      <jboss-deployment-structure>
          <deployment>
              <exclusions>
                  <module name="javax.faces.api" slot="main" />
                  <module name="com.sun.jsf-impl" slot="main" />
                  <module name="javassist" slot="main" />
                  <module name="org.hibernate" slot="main" />
              </exclusions>
              <dependencies>
                  <module name="org.apache.commons.logging" />
                  <module name="org.apache.log4j" />
                  <module name="org.dom4j" />
                  <module name="com.sun.jsf-impl" slot="1.2" />
                  <module name="org.hibernate" slot="3" />
                  <module name="javax.faces.api" slot="1.2"/>
                  <module name="com.sun.jsf-impl" slot="1.2"/>
              </dependencies>
          </deployment>
      </jboss-deployment-structure> 
      

       

      META-INF/persistence.xml

      <persistence xmlns="http://java.sun.com/xml/ns/persistence"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
                   version="1.0">
      
      
          <persistence-unit name="justshopUnit" transaction-type="RESOURCE_LOCAL">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>java:/PostgreSQLDS</jta-data-source>
              <properties>
                  <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
                  <property name="hibernate.hbm2ddl.auto" value="update"/>
                  <!--<property name="hibernate.show_sql" value="true"/>-->
                  <!--<property name="hibernate.format_sql" value="true"/>-->
                  <property name="hibernate.transaction.manager_lookup_class"
                            value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
                  <property name="hibernate.default_schema" value="public"/>
                  <!--Hibernate Search-->
                  <property name="hibernate.search.default.directory_provider"
                            value="org.hibernate.search.store.FSDirectoryProvider"/>
                  <property name="hibernate.search.default.indexBase" value="./mpsobaka/luceneindexes"/>
                  <property name="jboss.as.jpa.providerModule" value="org.hibernate:3" />
      
      
              </properties>
          </persistence-unit>
      
      
      
      
      
      
      </persistence>
      

       

      components.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
                  xmlns:web="http://jboss.com/products/seam/web"
                  xmlns:core="http://jboss.com/products/seam/core"
                  xmlns:persistence="http://jboss.com/products/seam/persistence"
                  xmlns:security="http://jboss.com/products/seam/security"
                  xmlns:mail="http://jboss.com/products/seam/mail"
                  xmlns:async="http://jboss.com/products/seam/async"
                  xmlns:transaction="http://jboss.com/products/seam/transaction">
      
      
          <core:init debug="false"/>
          <core:manager conversation-timeout="120000"
                        concurrent-request-timeout="500"
                        conversation-id-parameter="cid"/>
      
      
          <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
      
      
          <transaction:entity-transaction entity-manager="${entityManager}"/>
      
      
      
      
          <persistence:entity-manager-factory name="entityManagerFactory" persistence-unit-name="justshopUnit"/>
      
      
          <persistence:managed-persistence-context name="entityManager"
                                                   auto-create="true"
      
      
      
      
      
      
      
      
      
      
      
      
      
      
                  .....                                entity-manager-factory="#{entityManagerFactory}"/>
      

       

      libs in war:

       

      WEB-INF/lib/antlr-2.7.6.jar

      WEB-INF/lib/asm-3.1.jar

      WEB-INF/lib/castor-core-1.3.2.jar

      WEB-INF/lib/castor-xml-1.3.2.jar

      WEB-INF/lib/cglib-2.2.jar

      WEB-INF/lib/commons-beanutils-1.7.0.jar

      WEB-INF/lib/commons-codec-1.4.jar

      WEB-INF/lib/commons-collections-3.1.jar

      WEB-INF/lib/commons-digester-1.8.1.jar

      WEB-INF/lib/commons-fileupload-1.2.2.jar

      WEB-INF/lib/commons-io-2.0.1.jar

      WEB-INF/lib/commons-lang-2.6.jar

      WEB-INF/lib/commons-logging-1.1.1.jar

      WEB-INF/lib/dom4j-1.6.1.jar

      WEB-INF/lib/el-api-1.0.jar

      WEB-INF/lib/gson-2.2.2.jar

      WEB-INF/lib/guava-14.0.1.jar

      WEB-INF/lib/hibernate-commons-annotations-3.2.0.Final.jar

      WEB-INF/lib/hibernate-core-3.6.0.Final.jar

      WEB-INF/lib/hibernate-entitymanager-3.6.0.Final.jar

      WEB-INF/lib/hibernate-jpa-2.0-api-1.0.0.Final.jar

      WEB-INF/lib/hibernate-search-3.4.1.Final.jar

      WEB-INF/lib/hibernate-search-analyzers-3.4.1.Final.jar

      WEB-INF/lib/hibernate-validator-3.1.0.GA.jar

      WEB-INF/lib/httpclient-4.1.3.jar

      WEB-INF/lib/httpcore-4.1.4.jar

      WEB-INF/lib/javassist-3.12.0.GA.jar

      WEB-INF/lib/jboss-el-1.0_02.CR5.jar

      WEB-INF/lib/jboss-seam-2.2.2.Final.jar

      WEB-INF/lib/jboss-seam-debug-2.2.2.Final.jar

      WEB-INF/lib/jboss-seam-jul-2.2.2.Final.jar

      WEB-INF/lib/jboss-seam-mail-2.2.2.Final.jar

      WEB-INF/lib/jboss-seam-ui-2.2.2.Final.jar

      WEB-INF/lib/jboss-servlet-api_3.0_spec-1.0.2.Final.jar

      WEB-INF/lib/jsf-facelets-1.1.15.B1.jar

      WEB-INF/lib/jta-1.1.jar

      WEB-INF/lib/lucene-analyzers-3.1.0.jar

      WEB-INF/lib/lucene-core-3.1.0.jar

      WEB-INF/lib/lucene-highlighter-3.1.0.jar

      WEB-INF/lib/lucene-memory-3.1.0.jar

      WEB-INF/lib/lucene-misc-3.1.0.jar

      WEB-INF/lib/lucene-smartcn-3.1.0.jar

      WEB-INF/lib/lucene-spatial-3.1.0.jar

      WEB-INF/lib/lucene-spellchecker-3.1.0.jar

      WEB-INF/lib/lucene-stempel-3.1.0.jar

      WEB-INF/lib/persistence-api-1.0.jar

      WEB-INF/lib/quartz-1.6.1.jar

      WEB-INF/lib/richfaces-api-3.3.4.Final.jar

      WEB-INF/lib/richfaces-impl-3.3.4.Final.jar

      WEB-INF/lib/richfaces-ui-3.3.4.Final.jar

      WEB-INF/lib/slf4j-api-1.4.2.jar

      WEB-INF/lib/solr-analysis-extras-3.1.0.jar

      WEB-INF/lib/solr-commons-csv-3.1.0.jar

      WEB-INF/lib/solr-core-3.1.0.jar

      WEB-INF/lib/solr-solrj-3.1.0.jar

      WEB-INF/lib/stax-1.2.0.jar

      WEB-INF/lib/stax-api-1.0.1.jar

      WEB-INF/lib/validation-api-1.0.0.GA.jar

      WEB-INF/lib/xpp3_min-1.1.3.4.O.jar

      WEB-INF/lib/xstream-1.3.1.jar