7 Replies Latest reply on May 27, 2008 8:17 PM by jbalunas.jbalunas.jboss.org

    Weblogic EBJ3 Seam, strange problem

    lbernardelli

      I created a project with same architeture as jee5 booking, who  is the example of seam with ejb3 for weblogic.


      In my project only the authenticator is Session Bean to satisfy weblogic.


      I deployed my project and everything is fine. When I try to access the application in the web browser as was redirected to debug.seam page and nothing was displayed and no errors in weblogic console.


      Can someone help me?

        • 1. Re: Weblogic EBJ3 Seam, strange problem
          jbalunas.jbalunas.jboss.org

          Hello,


          The seam debug page should contains some of useful information on what the issue is.  Also you could try upping the debug level of the server, and enabling system.out logging.  Take a look at the server/domain setting under logging in the admin console.


          What version of seam are you using?  Also, just to cover bases, did you take a look at the reference guide chapter on weblogic 2.0.2.GA?  There are some changes needed to the straight jee5 example because it is made to work on Glassfish by default.


          -Jay


          • 2. Re: Weblogic EBJ3 Seam, strange problem
            lbernardelli

            I up the debud level and I got the same situation with no log printed. My feeling is that a jsf problem.


            I'm using seam 2.0.2GA and weblogic 10.0

            • 3. Re: Weblogic EBJ3 Seam, strange problem
              jbalunas.jbalunas.jboss.org

              What does the seam debug page show?


              Also one tricky bit with weblogic is the JSF deployment - because for some reason with a EJB applications weblogic needs to use its own JSF 1.2 implementation.  How have you packaged JSF?


              There are some info/links in the reference guide (linked above) that discuss how I deployed weblogics JSF.


              -Jay

              • 4. Re: Weblogic EBJ3 Seam, strange problem
                lbernardelli

                Jay Balunas wrote on May 27, 2008 15:43:


                What does the seam debug page show?


                    No.



                Also one tricky bit with weblogic is the JSF deployment - because for some reason with a EJB applications weblogic needs to use its own JSF 1.2 implementation.  How have you packaged JSF?


                I deployed on weblogic admin server the jfs-1.2.war located in weblogic instalation



                There are some info/links in the reference guide (linked above) that discuss how I deployed weblogics JSF.

                -Jay




                Click HELP for text formatting instructions. Then edit this text and check the preview.

                • 5. Re: Weblogic EBJ3 Seam, strange problem
                  jbalunas.jbalunas.jboss.org

                  No.

                  Do you mean nothing - i.e. blank?


                  I found that I needed to have the jsf-api.jar in the $DOMAIN/lib directory in order for weblogic to use its own JSF impl.  Give that a shot.


                  Also did you set a resource link in you app so that it will use weblogic's JSF libs.  You may also need to modify the deployment order for the libs.  Details are in the reference guide.


                  -Jay

                  • 6. Re: Weblogic EBJ3 Seam, strange problem
                    lbernardelli

                    Jay Balunas wrote on May 27, 2008 19:17:


                    No.

                    Do you mean nothing - i.e. blank?


                    Yes. Firefox displays Could not connect to server


                    IE run for a long time and didn't display any error message. In IE the application seems to get an infinity loop.




                    I found that I needed to have the jsf-api.jar in the $DOMAIN/lib directory in order for weblogic to use its own JSF impl.  Give that a shot.

                    Also did you set a resource link in you app so that it will use weblogic's JSF libs.  You may also need to modify the deployment order for the libs.  Details are in the reference guide.

                    -Jay


                    Now I think it is a problem with build, because I put my project files in the seam JEE5 application example and I used the example build to generate the EAR. I deployed this EAR and it works.


                    Have you a project setup to work in eclipse to build a weblogic application?

                    • 7. Re: Weblogic EBJ3 Seam, strange problem
                      jbalunas.jbalunas.jboss.org

                      No, I'm sorry I do not have an eclipse project for a weblogic application. 


                      I would say just start comparing your EAR to the one generated with the jee5 example and see what you can find.