0 Replies Latest reply on Oct 29, 2009 3:02 PM by Lobsang Ludd

    Seam Hibernate WAS6.1

    Lobsang Ludd Newbie

      I'm trying to integrate seam into an existing application. I tried running seam hibernate JPA example to test if everything works fine.


      I get the following output:


      [29.10.09 14:59:01:468 CET] 0000003a SystemOut     O 14:59:01,468 INFO  [ServletContextListener] Welcome to Seam 2.1.2
      [29.10.09 14:59:01:468 CET] 0000003a SystemOut     O 14:59:01,468 DEBUG [ServletLifecycle] Cached the context classloader in servletContext as 'seam.context.classLoader'
      [29.10.09 14:59:01:781 CET] 0000003a SystemOut     O 14:59:01,781 DEBUG [ClassDescriptor] could not load class (annotation missing dependency): org.jboss.seam.async.TimerServiceDispatcher
      java.lang.TypeNotPresentException: Type javax.ejb.Stateless not present
           at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
           at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
           at java.lang.Class.getDeclaredAnnotations(Class.java:1648)
           at java.lang.Class.getAnnotations(Class.java:1609)
           at org.jboss.seam.deployment.ClassDescriptor.<init>(ClassDescriptor.java:31)
           at org.jboss.seam.deployment.AbstractScanner$Handler.getClassDescriptor(AbstractScanner.java:118)
           at org.jboss.seam.deployment.AbstractScanner$Handler.handle(AbstractScanner.java:60)
           at org.jboss.seam.deployment.AbstractScanner$Handler.handle(AbstractScanner.java:90)
           at org.jboss.seam.deployment.AbstractScanner.handle(AbstractScanner.java:212)
           at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:129)
           at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)
           at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)
           at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113)
           at org.jboss.seam.init.Initialization.create(Initialization.java:132)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:653)
           at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:365)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:293)
           at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:93)
           at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:162)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
           at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1461)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4149)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4246)
           at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1466)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:618)
           at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
           at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:618)
           at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
           at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1092)
           at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:973)
           at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
           at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
           at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1137)
           at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
           at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1030)
           at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
           at com.ibm.ws.management.connector.rmi.RMIConnectorService.invoke(RMIConnectorService.java:179)
           at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie.invoke(_RMIConnectorService_Tie.java:395)
           at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie._invoke(_RMIConnectorService_Tie.java:160)
           at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:627)
           at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:480)
           at com.ibm.rmi.iiop.ORB.process(ORB.java:512)
           at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
           at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2717)
           at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2582)
           at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
           at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
           at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
      Caused by: java.lang.ClassNotFoundException: javax.ejb.Stateless
           at java.lang.Class.forNameImpl(Native Method)
           at java.lang.Class.forName(Class.java:163)
           at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:33)
           ... 64 more
      [29.10.09 14:59:01:781 CET] 0000003a SystemOut     O 14:59:01,781 DEBUG [Scanner] skipping class org/jboss/seam/async/TimerServiceDispatcher.class because it cannot be loaded (may reference a type which is not available on the classpath)
      [29.10.09 14:59:02:187 CET] 0000003a SystemOut     O 14:59:02,187 DEBUG [ClassDescriptor] could not load class (annotation missing dependency): org.jboss.seam.transaction.EjbSynchronizations
      java.lang.TypeNotPresentException: Type javax.ejb.Stateful not present
           at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
           at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
           at java.lang.Class.getDeclaredAnnotations(Class.java:1648)
           at java.lang.Class.getAnnotations(Class.java:1609)
           at org.jboss.seam.deployment.ClassDescriptor.<init>(ClassDescriptor.java:31)
           at org.jboss.seam.deployment.AbstractScanner$Handler.getClassDescriptor(AbstractScanner.java:118)
           at org.jboss.seam.deployment.AbstractScanner$Handler.handle(AbstractScanner.java:60)
           at org.jboss.seam.deployment.AbstractScanner$Handler.handle(AbstractScanner.java:90)
           at org.jboss.seam.deployment.AbstractScanner.handle(AbstractScanner.java:212)
           at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:129)
           at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)
           at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)
           at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113)
           at org.jboss.seam.init.Initialization.create(Initialization.java:132)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:653)
           at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:365)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:293)
           at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:93)
           at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:162)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
           at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1461)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4149)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4246)
           at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1466)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:618)
           at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
           at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:618)
           at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
           at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1092)
           at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:973)
           at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
           at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
           at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1137)
           at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
           at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1030)
           at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
           at com.ibm.ws.management.connector.rmi.RMIConnectorService.invoke(RMIConnectorService.java:179)
           at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie.invoke(_RMIConnectorService_Tie.java:395)
           at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie._invoke(_RMIConnectorService_Tie.java:160)
           at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:627)
           at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:480)
           at com.ibm.rmi.iiop.ORB.process(ORB.java:512)
           at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
           at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2717)
           at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2582)
           at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
           at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
           at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
      Caused by: java.lang.ClassNotFoundException: javax.ejb.Stateful
           at java.lang.Class.forNameImpl(Native Method)
           at java.lang.Class.forName(Class.java:163)
           at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:33)
           ... 64 more
      [29.10.09 14:59:02:187 CET] 0000003a SystemOut     O 14:59:02,187 DEBUG [Scanner] skipping class org/jboss/seam/transaction/EjbSynchronizations.class because it cannot be loaded (may reference a type which is not available on the classpath)