1 Reply Latest reply on Jun 5, 2009 12:42 PM by Fabricio Lemos

    Seam 3 Booking example

    Fabricio Lemos Newbie

      I'm getting a ClassNotFoundException while deploying Seam 3 Booking example and following the steps at Seam Downloads


      Shouldn't the dependency javax.faces.jsf-api have a compile scope instead of provided?


      Here is the stack trace:




      22:36:32,831 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@655052855{vfsfile:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deploy/seam-booking.ear/seam-booking-ejb.jar/}
      22:36:32,832 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@655052855{vfsfile:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deploy/seam-booking.ear/seam-booking-ejb.jar/}
      22:36:33,005 ERROR [AbstractKernelController] Error installing to PreReal: name=vfsfile:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deploy/seam-booking.ear/ state=PostClassLoader mode=Manual requiredState=PreReal
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deploy/seam-booking.ear/
           at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
           at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
           at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
           at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
           at org.jboss.Main.boot(Main.java:209)
           at org.jboss.Main$1.run(Main.java:547)
           at java.lang.Thread.run(Thread.java:636)
      Caused by: java.lang.NoClassDefFoundError: javax/faces/application/ApplicationWrapper
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
           at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
           at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:546)
           at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:506)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:504)
           at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:481)
           at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
           at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
           at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
           at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:258)
           at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:152)
           at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:259)
           at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1102)
           at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:772)
           at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:415)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
           at org.jboss.classloading.plugins.visitor.AbstractResourceContext.loadClass(AbstractResourceContext.java:118)
           at org.jboss.webbeans.integration.deployer.env.WebBeanDiscoveryDeployer$WBDiscoveryVisitor.visit(WebBeanDiscoveryDeployer.java:134)
           at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264)
           at org.jboss.virtual.plugins.vfs.helpers.WrappingVirtualFileHandlerVisitor.visit(WrappingVirtualFileHandlerVisitor.java:62)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:353)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:368)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:368)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:368)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:368)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:298)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:366)
           at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:298)
           at org.jboss.virtual.VFS.visit(VFS.java:433)
           at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:437)
           at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:101)
           at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:160)
           at org.jboss.webbeans.integration.deployer.env.WebBeanDiscoveryDeployer.deploy(WebBeanDiscoveryDeployer.java:109)
           at org.jboss.webbeans.integration.deployer.env.WebBeanDiscoveryDeployer.deploy(WebBeanDiscoveryDeployer.java:45)
           at org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer.deploy(AbstractOptionalVFSRealDeployer.java:57)
           at org.jboss.deployers.spi.deployer.helpers.AbstractOptionalRealDeployer.internalDeploy(AbstractOptionalRealDeployer.java:74)
           at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
           at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
           ... 18 more
      Caused by: java.lang.ClassNotFoundException: javax.faces.application.ApplicationWrapper
           at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:264)
           at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:279)
           at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1102)
           at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:772)
           at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:415)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
           ... 58 more






      thanks in advance,
      Fabrício

        • 1. Re: Seam 3 Booking example
          Fabricio Lemos Newbie

          I ran mvn on jsf-upgrade-tool again and now I can deploy the example, but, if I click on any link, I get:




          07:34:33,570 ERROR [application] java.lang.NoClassDefFoundError: org/jboss/ejb3/proxy/impl/handler/session/SessionProxyInvocationHandler
          javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org/jboss/ejb3/proxy/impl/handler/session/SessionProxyInvocationHandler
               at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
               at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
               at javax.faces.component.UICommand.broadcast(UICommand.java:315)
               at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
               at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
               at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
               at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:103)
               at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.webbeans.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:54)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:70)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
               at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
               at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
               at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
               at java.lang.Thread.run(Thread.java:636)
          Caused by: java.lang.NoClassDefFoundError: org/jboss/ejb3/proxy/impl/handler/session/SessionProxyInvocationHandler
               at org.jboss.webbeans.integration.ejb.JBossSessionObjectReference.<init>(JBossSessionObjectReference.java:39)
               at org.jboss.webbeans.integration.ejb.JBossEjbServices.resolveEjb(JBossEjbServices.java:106)
               at org.jboss.webbeans.bean.EnterpriseBean.createReference(EnterpriseBean.java:405)
               at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:85)
               at org.jboss.webbeans.bean.EnterpriseBean.create(EnterpriseBean.java:232)
               at org.jboss.webbeans.context.DependentContext.get(DependentContext.java:86)
               at org.jboss.webbeans.ManagerImpl.getInstance(ManagerImpl.java:800)
               at org.jboss.webbeans.ManagerImpl.getInstance(ManagerImpl.java:764)
               at org.jboss.webbeans.ManagerImpl.getInstance(ManagerImpl.java:757)
               at org.jboss.seam.security.Identity.createCallbackHandler(Identity.java:409)
               at org.jboss.seam.security.Identity.getLoginContext(Identity.java:390)
               at org.jboss.seam.security.Identity.authenticate(Identity.java:300)
               at org.jboss.seam.security.Identity.login(Identity.java:226)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:616)
               at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:99)
               at org.jboss.seam.security.Identity_$$_javassist_16.login(Identity_$$_javassist_16.java)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:616)
               at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
               at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
               at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
               at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
               at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
               at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98)
               at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
               ... 35 more
          Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandler from BaseClassLoader@6c10a234{VFSClassLoaderPolicy@38093b59{name=vfsfile:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/webbeans.deployer/ domain=ClassLoaderDomain@1b5b8520{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@60750159} roots=[MemoryContextHandler@1712811212[path= context=vfsmemory://3j011-xgey7k-fvkrdgcb-1-fvkrdmg2-e real=vfsmemory://3j011-xgey7k-fvkrdgcb-1-fvkrdmg2-e], DelegatingHandler@199752049[path=webbeans.deployer/webbeans-logging.jar context=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/ real=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/webbeans.deployer/webbeans-logging.jar], DelegatingHandler@715747282[path=webbeans.deployer/webbeans-spi.jar context=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/ real=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/webbeans.deployer/webbeans-spi.jar], DelegatingHandler@1508661727[path=webbeans.deployer/webbeans-api.jar context=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/ real=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/webbeans.deployer/webbeans-api.jar], DelegatingHandler@738225560[path=webbeans.deployer/webbeans-jboss-int-deployer.jar context=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/ real=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/webbeans.deployer/webbeans-jboss-int-deployer.jar], DelegatingHandler@1343958201[path=webbeans.deployer/jsr299-api.jar context=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/ real=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/webbeans.deployer/jsr299-api.jar], DelegatingHandler@672485061[path=webbeans.deployer/webbeans-jboss-int-jboss-ejb.jar context=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/ real=file:/media/disk/informatica/java/jboss-5.0.1.GA/server/default/deployers/webbeans.deployer/webbeans-jboss-int-jboss-ejb.jar]]  delegates=null exported=[org.jboss.webbeans.integration.deployer.cl, , org.jboss.webbeans.integration.deployer.metadata, javax.enterprise.inject.deployment, org.jboss.webbeans.servlet.api, META-INF.maven.org.jboss.webbeans.webbeans-logging, org.jboss.webbeans.integration.messaging, org.jboss.webbeans.ejb.api, org.jboss.webbeans.transaction.spi, javax.event, org.jboss.webbeans.persistence.spi.helpers, org.jboss.webbeans.bootstrap.api.helpers, javax.enterprise.inject, org.jboss.webbeans.integration.ws, org.jboss.webbeans.bootstrap.spi.helpers, META-INF.maven.org.jboss.webbeans.integration.webbeans-jboss-int-jboss-ejb, META-INF.maven.org.jboss.webbeans.integration.webbeans-jboss-int-deployer, javax.enterprise.context, org.jboss.webbeans.integration.deployer.env, org.jboss.webbeans.integration.ejb, org.jboss.webbeans.resources.spi, javax.decorator, javax.inject, org.jboss.webbeans.servlet.api.helpers, org.jboss.webbeans.bootstrap.spi, META-INF.maven.org.jboss.webbeans.webbeans-api, org.jboss.webbeans.context.api, org.jboss.webbeans.ws.spi, javax.interceptor, org.jboss.webbeans.integration.persistence, org.jboss.webbeans.integration.util, org.jboss.webbeans.ejb.spi.helpers, META-INF.maven.org.jboss.webbeans.jsr299-api, org.jboss.webbeans.conversation, org.jboss.webbeans.integration.transaction, org.jboss.webbeans.resources.spi.helpers, org.jboss.webbeans.messaging.spi, org.jboss.webbeans.ejb.spi, org.jboss.webbeans.integration.deployer.ext, org.jboss.webbeans.ws.spi.helpers, org.jboss.webbeans.manager.api, org.jboss.webbeans.context.api.helpers, org.jboss.webbeans.bootstrap.api, javax.enterprise.inject.spi, org.jboss.webbeans.integration.resource, META-INF, org.jboss.webbeans.persistence.spi, javax.enterprise.context.spi, org.jboss.webbeans.log, org.jboss.webbeans.integration.vdf, META-INF.maven.org.jboss.webbeans.webbeans-spi, org.jboss.webbeans.messaging.spi.helpers, org.jboss.webbeans.integration.deployer] <IMPORT-ALL>NON_EMPTY}}
               at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:422)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
               at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
               ... 65 more