1 2 3 Previous Next 42 Replies Latest reply on May 30, 2006 3:13 PM by gavin.king Go to original post
      • 30. Re: JSF 1.2 / Seam
        theute

        I would need to call the IT guys for that, i can't do it myself neither.

        Replacing the exisiting file should work, let me know Simon. And thanks for your contribution to the Wiki

        • 31. Re: JSF 1.2 / Seam

          Looks like overuploading worked a treat. There's a lot of knowledge tucked away in the Seam forum, and it would be good to see some of the more change-resistant info in the wiki.

          Werner, could you try the newest attachment in glassfish?

          • 32. Re: JSF 1.2 / Seam
            gressho

            This changed a thing, but there is still a severe message:


            Message ID:

            WebModule[/NumberGuessWeb]Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError
            Complete Message

            net/sf/cglib/proxy/Callback
            at org.jboss.seam.init.Initialization.addComponent(Initialization.java:251)
            at org.jboss.seam.init.Initialization.addComponents(Initialization.java:146)
            at org.jboss.seam.init.Initialization.init(Initialization.java:94)
            at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4755)
            at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:659)
            at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1461)
            at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1131)
            at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1058)
            at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
            at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
            at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:196)
            at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:632)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:908)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
            at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
            at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:201)
            at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
            at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
            at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:848)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:527)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:571)
            at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
            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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:342)
            at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:325)
            at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:407)
            at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
            at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
            at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
            at $Proxy1.invoke(Unknown Source)
            at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
            at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:133)
            at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:517)
            at java.lang.Thread.run(Thread.java:595)


            I've seen somewhere a message regarding a difference between the
            JBoss EJB3 implementation and the EJB3 PFD?! An element that changed
            it's name?!

            Werner

            • 33. Re: JSF 1.2 / Seam
              gavin.king

              This just looks like you are missing the CGLIB jar....

              • 34. Re: JSF 1.2 / Seam
                gressho

                Hm, well, after adding some more jars (CGLIB, asm, dom4j) I finally
                came to this message:


                Message ID:

                WebModule[/NumberGuessWeb]Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError
                Complete Message

                javax/ejb/InvocationContext
                at java.lang.Class.getDeclaredMethods0(Native Method)
                at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
                at java.lang.Class.privateGetPublicMethods(Class.java:2488)
                at java.lang.Class.getMethods(Class.java:1406)
                at org.jboss.seam.interceptors.Interceptor.init(Interceptor.java:62)
                at org.jboss.seam.interceptors.Interceptor.<init>(Interceptor.java:37)
                at org.jboss.seam.Component.initDefaultInterceptors(Component.java:502)
                at org.jboss.seam.Component.initInterceptors(Component.java:475)
                at org.jboss.seam.Component.<init>(Component.java:182)
                at org.jboss.seam.Component.<init>(Component.java:142)
                at org.jboss.seam.Component.<init>(Component.java:137)
                at org.jboss.seam.Component.<init>(Component.java:132)
                at org.jboss.seam.init.Initialization.addComponent(Initialization.java:251)
                at org.jboss.seam.init.Initialization.addComponents(Initialization.java:162)
                at org.jboss.seam.init.Initialization.init(Initialization.java:94)
                at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30)
                at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4755)
                at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:659)
                at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1461)
                at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1131)
                at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1058)
                at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
                at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
                at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:196)
                at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:632)
                at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:908)
                at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
                at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
                at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
                at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
                at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:201)
                at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
                at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
                at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:848)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:527)
                at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:571)
                at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
                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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:342)
                at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:325)
                at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:407)
                at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
                at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
                at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
                at $Proxy1.invoke(Unknown Source)
                at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
                at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:133)
                at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:517)
                at java.lang.Thread.run(Thread.java:595)


                I know this is in jboss-ejb3x.jar but missing in javaee.jar of Glassfish. I've
                seen much more differences in javax.ejb package.

                • 35. Re: JSF 1.2 / Seam
                  gavin.king

                  Well, that class is definitely in the spec ;-)

                  • 36. Re: JSF 1.2 / Seam
                    rogerk

                    Hi guys,

                    Can you file a JIRA for Seam on Glassfish?
                    I believe there are incompatabilities between Hibernate and the Glassfish persistence layer.

                    Seam does not appear to run on Glassfish.

                    Is there a workaround we can try to get Seam running on Glassfish?
                    Specifically, I was attempting to run the "booking" application on Glassfish.

                    Thanks, Roger.

                    • 37. Re: JSF 1.2 / Seam
                      rogerk

                      OK, I got the numberguess example working in glassfish.

                      Has anyone been able to run the booking example in glassfish?

                      • 38. Re: JSF 1.2 / Seam
                        marceloverdijk

                        I was also trying to get the numberguess example on Sun App Server PE 9 but got the following exception:

                        javax.servlet.ServletException: javax.interceptor.InvocationContext.getBean()Ljava/lang/Object;
                        javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
                        org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)


                        root cause

                        java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getBean()Ljava/lang/Object;
                        org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:38)
                        org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:51)
                        org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:39)
                        org.jboss.seam.example.numberguess.NumberGuess$$EnhancerByCGLIB$$72c466b3.setMaxGuesses()
                        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        java.lang.reflect.Method.invoke(Method.java:585)
                        org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                        org.jboss.seam.Component.initialize(Component.java:726)
                        org.jboss.seam.Component.newInstance(Component.java:674)
                        org.jboss.seam.Component.newInstance(Component.java:1213)
                        org.jboss.seam.Component.getInstance(Component.java:1168)
                        org.jboss.seam.Component.getInstance(Component.java:1151)
                        org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
                        com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:71)
                        javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
                        com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:58)
                        com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
                        com.sun.el.parser.AstValue.getValue(AstValue.java:106)
                        com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
                        com.sun.faces.util.Util.evaluateValueExpression(Util.java:418)
                        com.sun.faces.taglib.jsf_core.ValidateLongRangeTag.evaluateExpressions(ValidateLongRangeTag.java:136)
                        com.sun.faces.taglib.jsf_core.ValidateLongRangeTag.createValidator(ValidateLongRangeTag.java:117)
                        javax.faces.webapp.ValidatorELTag.doStartTag(ValidatorELTag.java:111)
                        com.sun.faces.taglib.jsf_core.ValidateLongRangeTag.doStartTag(ValidateLongRangeTag.java:103)
                        org.apache.jsp.numberGuess_jsp._jspx_meth_f_validateLongRange_0(numberGuess_jsp.java:363)
                        org.apache.jsp.numberGuess_jsp._jspx_meth_h_inputText_0(numberGuess_jsp.java:334)
                        org.apache.jsp.numberGuess_jsp._jspx_meth_h_form_0(numberGuess_jsp.java:187)
                        org.apache.jsp.numberGuess_jsp._jspx_meth_f_view_0(numberGuess_jsp.java:126)
                        org.apache.jsp.numberGuess_jsp._jspService(numberGuess_jsp.java:90)
                        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
                        javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
                        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
                        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
                        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
                        javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
                        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414)
                        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455)
                        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139)
                        org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
                        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
                        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
                        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
                        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                        org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)

                        The javax.interceptor.InvocationContext.getBean used by Seam is not part of the spec. I'm using Seam CR3.

                        • 39. Re: JSF 1.2 / Seam
                          gavin.king

                          Ooops, we have not yet updated JBoss EJB3 to rename the getBean() method to getTarget().

                          • 40. Re: JSF 1.2 / Seam
                            gavin.king

                            EJBTHREE-602

                            • 41. Re: JSF 1.2 / Seam
                              marceloverdijk

                              I think there is no easy workaround to deploy a Seam application on Sun App Server PE 9/GlassFish?

                              • 42. Re: JSF 1.2 / Seam
                                gavin.king

                                It is certainly possible to get it working. You would need to patch Seam to call getTarget() instead of getBean().

                                1 2 3 Previous Next