3 Replies Latest reply on Mar 6, 2009 9:16 AM by Julien Kronegg

    Seam 2.1.1 + WebSphere v7.0: anyone?

    Denis Forveille Novice

      Anyone using Seam v2.1.1 on WebSphere v7.0.0.1?


      Are we the ony ones hit by JBSEAM-3726 ?


      Thx

        • 2. Re: Seam 2.1.1 + WebSphere v7.0: anyone?
          Denis Forveille Novice

          Click HELP for text formatting instructions. Then edit this text and check the preview.wow. Nice shot Julien.


          Maybe, to complete your doc, you should have a look at my answers to the following thread that explains how to config things for jndi resolutions to work and how to configure SFSB timeouts:
          WAS config because I think you'll have jndi resolution problem with your setup


          Maybe it's time for me to describe the way we organize our seam 2.1.1/WAS v7.0 projects.


          In fact are own projects are build quite differently than yours:


          We create only project to be deployed as an app (ear) with ejb and jpa classes put apart
          Let say your application is called MyApp. In RSA v7.5.1, the structure of the project is the following:


          MyApp (=ear)
            -> via properties/Java EE Module Dependencies/J2EE Modules
              jboss-el.jar
              jboss-seam.jar  (Patched as described in JBOSS-3726)
              hibernate-annotations.jar (v3.4)
              hibernate-commons-annotations.jar (v3.4)
              hibernate-entitymanager.jar (v3.4)
              log4j-1.2.15.jar
              antlr-2.7.6.jar
              dom4j-1.6.1.jar
              hibernate3.jar
              richfaces-api-3.3.0.GA.jar
              commons-logging-1.1.jar
              slf4j-api-1.5.6.jar
              slf4j-log4j12-1.5.6.jar
              hibernate-validator.jar (v3.1)
              commons-beanutils-1.7.0.jar
              commons-collections-3.1.jar
              commons-digester-1.6.jar
              javassist.jar (v3.9 !!!)
            META-INF
              appliction.xml (Add jboss-seam as a module, remove javassist as a module as RSA will add it automatically...)
              ibmconfig...
                 (Generated by using Java EE/Generate WebSphere Extended deployment descriptor, and set the ear classloader to PARENT_LAST)
          
          MyAppEJB
            -> via properties/Java EE Module Dependencies/J2EE Modules (JARS FROM EAR PROJECT)
              MyAppJPA
              jboss-seam.jar
            src
              META-INF
                ejb.jar.xml  (with seam interceptors declaration only...)
                ibm-ejb-jar.ext.xml (Add SFSB timeout settings here...)
                seam.properties
                
          MyAppJPA
            -> via properties/Java EE Module Dependencies/J2EE Modules (JARS FROM EAR PROJECT)
               antlr-2.7.6.jar 
               commons-logging-1.1.jar 
               dom4j-1.6.1.jar 
               hibernate-annotations.jar 
               hibernate-commons-annotations.jar 
               hibernate-entitymanager.jar 
               hibernate3.jar 
               jboss-seam.jar 
               slf4j-api-1.5.6.jar 
               slf4j-log4j12-1.5.6.jar 
               log4j-1.2.15.jar 
               javassist.jar
             src
                commons-logging.properties
                META-INF
                  persietence.xml (With Hibernate set as provider)
                  seam.properties
           
          MyAppWeb 
            -> via properties/Java EE Module Dependencies/J2EE Modules (JARS FROM EAR PROJECT)
               MyAppJPA.jar 
               MyAppEJB.jar 
               commons-beanutils-1.7.0.jar 
               commons-collections-3.1.jar 
               commons-digester-1.6.jar 
               commons-logging-1.1.jar 
               jboss-el.jar 
               jboss-seam.jar 
               richfaces-api-3.3.0.GA.jar 
               hibernate-validator.jar
            -> via properties/Java EE Module Dependencies/Web Libraries the following
               jsf-facelets.jar
               jboss-seam-ui.jar
               richfaces-impl-3.3.0.GA
               richfaces-ui-3.3.0.GA.jar
               jboss-seam-debug.jar
            src
              seam-jndi.properties (See my post in the forum for this)
              seam.properties
            WebContent
              WEB-INF
                components.xml (with <core:init jndi-pattern="java:comp/env/#{ejbName}" debug="true" />)
                faces-config.xml
                ibm-web-bnd.xml
                ibm-web-ext.xml
                pages.xml
                web.xml (Add a ref named EjbSynchronizations to LocalEjbSynchronizations)
          


          Then use @JndiName annotation in EJBs as decribed in the referenced post
               
               
             

          • 3. Re: Seam 2.1.1 + WebSphere v7.0: anyone?
            Julien Kronegg Novice

            Thanks Denis, I added links to your posts.
            BTW, the walkthrough is in a wiki, so you can edit it yourself if you want.