5 Replies Latest reply on Sep 28, 2006 10:59 PM by sleuth sleuth

    dvd store example

    sleuth sleuth Newbie

      I retrieved jboss-seams from the head directory in CVS. I then built the example with ant and started jboss-server 4.0.4 GA and got the following error.

      20:41:57,929 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/jboss-seam-dvd.ear
      org.jboss.deployment.DeploymentException: Failed to find module file: jbpm-3.1.1.jar
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:257)


      So I change the application.xml to jbpm-3.1.2.jar which was available in the seams/lib folder. This fixed the deployment error but when I navigate to the page I get the error below. Is this example operational?

      An Error Occurred:
      /WEB-INF/incl/store_nav.xhtml @9,49 rendered="#{login.loggedIn}": com.jboss.dvd.seam.Login$$EnhancerByCGLIB$$b1d06ea4

        • 1. Re: dvd store example
          Gavin King Master

          Eeek, my bad, I guess i broke it when I upgraded jBPM.

          • 2. Re: dvd store example
            Gavin King Master

            I just forgot to commit some files. Done now.

            • 3. Re: dvd store example
              sleuth sleuth Newbie

              I deleted the jboss-seam folder, retrieved it again from head, rebuilt the main seam build file with ant, then ran the build.xml in from ant and stated the jboss server and did not see any errors. When I go to:

              http://localhost:8080/seam-dvd

              I get the following error, any ideas:

              08:51:54,397 ERROR [STDERR] Sep 26, 2006 8:51:54 AM com.sun.facelets.FaceletViewHandler handleRenderException
              SEVERE: Error Rendering View[/home.xhtml]
              javax.faces.el.EvaluationException: /WEB-INF/incl/store_nav.xhtml @9,49 rendered="#{login.loggedIn}": com.jboss.dvd.seam.Login$$EnhancerByCGLIB$$c7291b11
              at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
              at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822)
              at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:231)
              at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
              at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)
              Caused by: javax.faces.el.EvaluationException: Bean: com.jboss.dvd.seam.Login$$EnhancerByCGLIB$$c7291b11, property: loggedIn
              at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:404)
              at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:71)
              at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
              at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
              at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
              at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
              ... 31 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:585)
              at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
              ... 37 more
              Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
              at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:109)
              at org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:582)
              at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:108)
              at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:48)
              at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
              at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
              at $Proxy168.isLoggedIn(Unknown Source)
              at com.jboss.dvd.seam.Login$$FastClassByCGLIB$$1f053af9.invoke()
              at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
              at org.jboss.seam.interceptors.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
              at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:54)
              at org.jboss.seam.ejb.SeamInterceptor.invokeInContexts(SeamInterceptor.java:191)
              at org.jboss.seam.ejb.SeamInterceptor.invoke(SeamInterceptor.java:164)
              at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:151)
              at org.jboss.seam.interceptors.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:44)
              at org.jboss.seam.interceptors.ClientSideInterceptor.intercept(ClientSideInterceptor.java:38)
              at com.jboss.dvd.seam.Login$$EnhancerByCGLIB$$c7291b11.isLoggedIn()
              ... 42 more
              Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
              at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:141)
              at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:105)
              ... 66 more
              Caused by: java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
              at org.jboss.seam.ejb.SeamInterceptor.postConstruct(SeamInterceptor.java:73)
              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:585)
              at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:131)
              ... 67 more

              • 4. Re: dvd store example
                Gavin King Master

                Looks like you have not followed the getting started instructions correctly. You need EJB3 RC8.

                • 5. Re: dvd store example
                  sleuth sleuth Newbie

                  Yes that was my problem I had used:

                  jboss-4.0.4.GA-Patch1-installer.jar

                  instead of:

                  jems-installer-1.2.0.BETA.jar

                  Thanks for pointing me in the right direction