1 2 3 Previous Next 35 Replies Latest reply on Dec 4, 2007 3:43 PM by pmuir Go to original post
      • 15. Re: Running the booking example on JBoss with the JSF 1.2 RI
        ssilvert

        For this:

        11:52:14,937 ERROR [STDERR] java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver)
        
        It's loading the JSF 1.1 class definition for com.sun.faces.application.ApplicationImpl. Apparently, you've got a copy of the JSF 1.1 RI that it is loading from somewhere.


        For this:
        11:52:14,921 ERROR [STDERR] Feb 23, 2007 11:52:14 AM com.sun.faces.spi.InjectionProviderFactory createInstance
        INFO: JSF1033: Resource injection is DISABLED.
        It's just an INFO message. If you were running inside a JEE5 container such as JBoss 5.0, you would not see this message.

        Stan



        • 16. Re: Running the booking example on JBoss with the JSF 1.2 RI

          I am using RI 1.2. The only other jar I suspect that caused the problem is jsf-facelets.jar. I am using facelets-1.1.12. Isn't it compatible?

          A only other version that is newer would be facelets-1.2-DEV-20061110. When I used this, JBoss threw this in the log:

          19:27:43,125 ERROR [[/webclient]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.NoClassDefFoundError: com/sun/facelets/impl/ResourceResolver
          at java.lang.Class.getDeclaredMethods0(Native Method)
          at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
          at java.lang.Class.getDeclaredMethods(Unknown Source)
          at org.jboss.seam.Component.initMembers(Component.java:436)
          at org.jboss.seam.Component.(Component.java:256)
          at org.jboss.seam.Component.(Component.java:207)
          at org.jboss.seam.init.Initialization.addComponent(Initialization.java:781)
          at org.jboss.seam.init.Initialization.addComponents(Initialization.java:690)
          at org.jboss.seam.init.Initialization.init(Initialization.java:451)
          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
          at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
          at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
          at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
          at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
          at org.jboss.web.WebModule.startModule(WebModule.java:83)
          at org.jboss.web.WebModule.startService(WebModule.java:61)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy42.start(Unknown Source)
          at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
          at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
          at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
          at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
          at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy43.start(Unknown Source)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy8.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
          at org.jboss.Main.boot(Main.java:200)
          at org.jboss.Main$1.run(Main.java:490)
          at java.lang.Thread.run(Unknown Source)


          This thread is getting really long yet no one is posting how they resolved their problem. Would someone tell me how they got their server up and running with 1.2 RI? Much appreciated.

          Thanks

          • 17. Re: Running the booking example on JBoss with the JSF 1.2 RI

            I downloaded and unzipped 5.0Beta1 in hoping to run a demo deployed in a JBoss AS that is compatible with JSF 1.2.

            After running seam-gen for a new project for AS 5.0, I ran the build.xml provided by seam-gen. It deployed a seam-booking.ear (directory) and a seam-booking-dev-ds.xml into the D:\JBoss\jboss-5.0.0.Beta1\server\default\deploy directory.

            Guess what! JBoss did not auto deploy this app at all. Has thing changed since 4.0? Where can I pick up documents about 5.0?

            In desperation, I downloaded the new seam-booking-demo.zip which contains a jboss-seam-booking.ear and a booking-ds.xml. I dropped them in the D:\JBoss\jboss-5.0.0.Beta1\server\default\deploy directory. No action from the server. Nothing got deployed.

            I looked in the D:\JBoss\jboss-5.0.0.Beta1\server\default\conf\jboss-service.xml in hoping to find a "DeploymentScanner". Found none.

            I have been trying to convert an old project to JSF and Seam. Getting no luck with one version of JBoss AS to another. Pretty discouraging. Any help is greatly appreciated.

            Thanks

            • 18. Re: Running the booking example on JBoss with the JSF 1.2 RI
              ssilvert

              Yes, we need new threads for this stuff. You have different issues. Can each of you start a new thread with all relevant info? I'll do my best to help you. When you are done, post links here.

              Note that for JBoss 5.0, this is beta code. I've also noticed that hot deploy is a little flaky. You might need to restart the server sometimes instead of using hot deploy. Sometimes, if it doesn't hot deploy you can hit Ctrl-C in the server window and it will start deploying.

              Also, there are lots of configuration and deployment issues with JSF right now. The main reason is that we are moving away from the old deployment model where you had to bundle and configure a lot of things inside your WAR. With JBoss 4.2 and JBoss 5, a lot of this (plus new functionality) is done automatically by the container. If you try to do things the old way, it often won't work.

              So please help me out where you can. I want to make sure that documentation is clear for this stuff. Please let me know how we can make the wiki better or how we can better communicate the changes.

              BTW, the wiki for JSF starts here: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossFaces

              Thanks,

              Stan

              • 19. Re: Running the booking example on JBoss with the JSF 1.2 RI
                gavin.king

                If you are just trying to get started with Seam, don't bother with JBoss 5. Instead, follow the instructions right at the top of this thread to run Seam and JSF 1.2 on JBoss 4.0.5. (It *is* possible!)

                BUT: Step 5 has changed - in the above it reads:

                (5) remove el-*.jar from examples/booking/resources/WEB-INF/lib

                In more recent releases of Seam, you will notice that this directory does not exist. So what you need to do instead is remove the EL jar declarations from examples/booking/application.xml.

                • 20. Re: Running the booking example on JBoss with the JSF 1.2 RI

                  Well this thread is about running the booking example on JBoss with JSF 1.2 RI. And I still can't do that. :-( The booking example deals with MyFaces or at least references it. Yet the suggested steps did not say what to do with it.

                  I use Exadel Studio Pro and I know that they have to tweak the things to get JSF 1.2 + Facelets to deploy applications in Tomcat 5.5.

                  Thanks

                  • 21. Re: Running the booking example on JBoss with the JSF 1.2 RI
                    gavin.king

                    My steps say *exactly* what to do to run the booking example in JBoss with JSF 1.2! That's the title of the post. I just tried it (with the modified step 5), and it works like a charm.

                    The booking example has nothing to do with MyFaces, except for the one line in web.xml, which the instructions tell you what to do with.

                    • 22. Re: Running the booking example on JBoss with the JSF 1.2 RI

                      Yes. That was it. The modified step 5 did the trick.

                      Thanks guys for all your help.

                      • 23. Re: Running the booking example on JBoss with the JSF 1.2 RI

                        Hi Stan,

                        I've started a new thread with my issues with JBoss 5 beta 1 and JSF1.2 here:

                        http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023580#4023580

                        I hope you can help.

                        Thanks in advance,
                        Jason

                        • 24. Re: Running the booking example on JBoss with the JSF 1.2 RI
                          patpirtle

                          I'm sorry if this is a stupid question, but I can't seem to find "el-impl.jar" mentioned in the directions in the first post. Can somebody point me to where that is located? Thanks.

                          • 25. Re: Running the booking example on JBoss with the JSF 1.2 RI
                            patpirtle

                            Anybody know where this jar file is located?

                            • 26. Re: Running the booking example on JBoss with the JSF 1.2 RI
                              pmuir

                              there should be a copy in seam's lib directory for 1.2.1.GA. Otherwise, there is a copy in the facelets distributable.

                              • 27. Re: Running the booking example on JBoss with the JSF 1.2 RI
                                patpirtle

                                Thanks pete. I looked in all of the facelets versions found here, and it wasn't in any of them.
                                https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3635&expandFolder=3635&folderID=0

                                There was a jar file called "el-ri.jar", which I suppose could be it, but that's not what was listed in the directions by Gavin King.

                                I also downloaded seam 1.2.1GA from here
                                http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=163777

                                It also did not contain the file "el-impl.jar". And again it had one called "el-ri.jar". So I'm just trying to figure out what is correct. Gavin is very adamant that he has stated exactly what needs to be done, so I figure I need to find that jar file. But I still cannot find it. If it is "el-ri.jar" and he listed the wrong one, then that's fine. I'll use that one. But nobody else in this thread mentions that that file is missing, so it makes me believe that that jar file must exist somewhere. From the sound of this thread, there are people that have gotten this to work. So either that file exists, or they used some other file but didn't mention it in this thread. I'm still trying to figure out what's going on.

                                Thanks for any more help anyone can provide. I'd really like to get this to work.

                                • 28. Re: Running the booking example on JBoss with the JSF 1.2 RI
                                  pmuir
                                  • 29. Re: Running the booking example on JBoss with the JSF 1.2 RI
                                    mboldisc

                                    Could someone please update the original instructions for use with JBoss AS 4.2.1? In particular, I'm interested in the Seam "portal" example. I realize JBoss no longer uses MyFaces and that becomes a problem. Also, I realize this is experimental work, but in the Seam FAQ it does mention JSR-168 and says portlets can be created.

                                    Thanks in advance!