9 Replies Latest reply on Apr 16, 2008 8:34 PM by ericcho

    seam booking example on WAS6.1

    ericcho

      After a 'successful' deployment of the seam-booking example to WAS 6.1, I get the following excetion when attempting to hit the index.html page.


      
      [4/11/08 9:10:04:845 MDT] 0000001e JPAPUnitInfo  E   CWWJP0009E: The server cannot create an EntityManangerFactory factory for the bookingDatabase persistent unit from the org.hibernate.ejb.HibernatePersistence provider in jar:file:/C:/workspaces/GrainWaves/jboss-seam-booking/jboss-seam-booking.jar!/ module.
      
      [4/11/08 9:10:06:049 MDT] 0000001e SeamPhaseList E org.jboss.seam.jsf.SeamPhaseListener afterPhase uncaught exception
      
                                       java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
      
           at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:162)
      
           at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:174)
      
           at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:90)
      
           at org.jboss.seam.contexts.PageContext.set(PageContext.java:97)
      
           at org.jboss.seam.Component.newInstance(Component.java:1977)
      
           at org.jboss.seam.Component.getInstance(Component.java:1873)
      
           at org.jboss.seam.Component.getInstance(Component.java:1852)
      
           at org.jboss.seam.Component.getInstance(Component.java:1829)
      
           at org.jboss.seam.Component.getInstance(Component.java:1824)
      
      



      The resulting page is the JBoss Seam Debug Page. 


      Does anyone know what I'm missing?


      Thanks in advance

        • 1. Re: seam booking example on WAS6.1
          jbalunas.jbalunas.jboss.org

          Hi Eric,


          Can you provide some more info on your config?



          • Do you have the EJB3 feature pack installed?

          • What version of Seam are you running?

          • Have you taken a look at the reference guide chapter on websphere integration?



          Thanks,
          Jay

          • 2. Re: seam booking example on WAS6.1
            ericcho

            Hi Jay,


            Yes, I'm running WAS 6.1.0.15
            EJB 3.0 feature pack 6.1.0.15


            I'm running SEAM v2.1.0.A1


            and yes, I've followed the steps laid out on Chapter 28 of the reference guide.


            I've been able to get the JPA example working but I'm encountering the exception from my post for both the booking example and the seam-gen example.


            Thanks,
            Eric

            • 3. Re: seam booking example on WAS6.1
              jbalunas.jbalunas.jboss.org

              Hi Eric,


              Thanks for verifying those things.  I do not remember seeing that issue when I first worked with websphere.


              Here is a thread about the same error, but not on websphere. 


              http://www.seamframework.org/Community/SeamphaselistenerAndNoPhaseIdBoundToCurrentThread


              Could you take a look at that and see if it  solves your issue as well.  If it does not, and it is a websphere specific issue please let us know.


              Thanks,
              Jay

              • 4. Re: seam booking example on WAS6.1
                ericcho

                Thanks for pointing me to that other thread.


                I've taken out the jboss-seam.jar out of the ear/lib dir but left the same jar in the root of the ear.


                Not sure if I've made a step forward but this is the exception I'm getting now:


                [4/14/08 10:26:31:066 MDT] 00000020 ExceptionFilt E org.jboss.seam.web.ExceptionFilter doFilter handling uncaught exception
                
                                                 javax.servlet.ServletException: org/jboss/seam/ui/component/UISeamCommandBase.getValueExpression(Ljava/lang/String;)Ljavax/el/ValueExpression;
                
                     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1186)
                
                     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1011)
                
                     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
                
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                
                
                ...............
                
                
                ---- Begin backtrace for Nested Throwables
                
                java.lang.NoSuchMethodError: org/jboss/seam/ui/component/UISeamCommandBase.getValueExpression(Ljava/lang/String;)Ljavax/el/ValueExpression;
                
                     at org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:105)
                
                     at org.jboss.seam.ui.renderkit.LinkRendererBase.doEncodeBegin(LinkRendererBase.java:26)
                
                     at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
                
                     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:717)
                
                
                



                I've looked through the jboss-seam-ui.jar and doesn't look like there is a getValueExpression method in the UISeamCommandBase or any of the parent classes. 


                Any ideas?

                • 5. Re: seam booking example on WAS6.1
                  jbalunas.jbalunas.jboss.org

                  Some people have seen that issue if you have JSF 1.1 in the classpath. 


                  Seam 2+ require JSF 1.2.

                  • 6. Re: seam booking example on WAS6.1
                    ericcho

                    getting closer...


                    i am now getting the following exception


                    
                    [4/15/08 9:35:49:937 MDT] 0000001e viewhandler   E   Error Rendering View[/home.xhtml]
                    
                                                     javax.el.ELException: /home.xhtml: The class 'org.jboss.seam.security.Identity' does not have the property 'login'.
                    
                         at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
                    
                         at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
                    
                         at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
                    
                         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
                    
                         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                    
                    



                    suggestions?!


                    Thanks!

                    • 7. Re: seam booking example on WAS6.1
                      jbalunas.jbalunas.jboss.org

                      Was there any other cause listed below? 


                      I'm assuming this is the straight example code - right? 

                      • 8. Re: seam booking example on WAS6.1
                        ericcho

                        I also got this....


                        [4/15/08 10:21:18:166 MDT] 0000001e compiler      E   Compiler Initialization Error
                        
                                                         java.util.zip.ZipException: Bad file descriptor C:\IBM\WebSphere61\AppServer\profiles\AppSrv01\installedApps\ericcNode03Cell\Seam%20Booking.ear\jboss-seam-booking.jar
                        
                             at java.util.zip.ZipFile.open(Native Method)
                        
                             at java.util.zip.ZipFile.<init>(ZipFile.java:238)
                        
                             at java.util.jar.JarFile.<init>(JarFile.java:169)
                        
                             at java.util.jar.JarFile.<init>(JarFile.java:107)
                        
                             at com.sun.facelets.util.Classpath.getAlternativeJarFile(Classpath.java:124)
                        
                             at com.sun.facelets.util.Classpath.search(Classpath.java:67)
                        
                        



                        it looks similar to this http://www.seamframework.org/Community/ProblemLoadingFaceletOnWebsphere


                        But I've replaced the facelets jar with the latest.... but no change.


                        Thanks for your help

                        • 9. Re: seam booking example on WAS6.1
                          ericcho

                          I forgot to mention.... yes... it's just the example (no mods)