1 2 3 4 Previous Next 49 Replies Latest reply on Feb 15, 2008 9:27 AM by Jay Balunas

    Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJB3?

    Ian Ian Newbie

      We are looking to start a new project using Seam but can't get it to work using WebSphere 6.1. We're using 6.1.0.13 with the EJB Feature pack.

      The first problem we came across was a classloading issue (it was using IBM's version of JSF instead of the one with Seam). So we switched the classloading to PARENT_LAST (which is not the default), but other errors occurred.

      If anybody has got it working, can you tell me how? If not, can any contributor help me diagnose the problem so it can be put into the next version?

      Thanks,

      Ian

        • 1. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
          Pete Muir Master

          We haven't got Seam working with WAS and EJB3. We do however have it working with JPA - see the JPA example for more.

          Jay is currently working on app server compatibility - he hasn't got to WAS yet, but when he does you can expect *much* better docs on how to get your app running.

          If you can post specific errors then perhaps we can help you more.

          • 2. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
            Jay Balunas Master

            As Pete said I'm working on App server compatibility.

            Currently have OC4J and working on WebLogic. WAS is next :)

            -Jay

            • 4. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
              Ian Ian Newbie

               

              "jbalunas@redhat.com" wrote:
              As Pete said I'm working on App server compatibility.

              Currently have OC4J and working on WebLogic. WAS is next :)

              -Jay


              I realize Christmas has just finished and I don't know how long these ports take, but how is the progress on the WebSphere port? I know we're chomping at the bit to use Seam 2 for our next project, but it's hard to justify its use to management when it doesn't run on our final application server (and they don't seem keen on us developing on another server then porting it).

              Thanks,

              Ian

              • 5. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                Jay Balunas Master

                Here is my plan - I'm wrapping up weblogic today, and this weekend.

                Then next week Websphere. Because I know there are some more people interesting in websphere I'll share my progress as I go, and not wait until I finish updating the doc.

                Just as a quick survey tell me about your application so I make sure I cover the needed areas. My plan is to attempt to deploy the jee5/booking example which is seam + ejb3 + richfaces + hibernate/JPA etc....

                I will also be porting an application generated through Seam gen.

                The porting can be tricky until you figure out each containers quirks. For example on weblogic you cannot deploy EJBs with varargs (which seam has), and OC4J needs a special file just so richfaces css files resolve.

                • 6. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                  Ian Ian Newbie

                   

                  "jbalunas@redhat.com" wrote:
                  Here is my plan - I'm wrapping up weblogic today, and this weekend.

                  Then next week Websphere. Because I know there are some more people interesting in websphere I'll share my progress as I go, and not wait until I finish updating the doc.


                  Thanks for the update. It is much appreciated by everyone. I'll look forward to your progress updates.

                  "jbalunas@redhat.com" wrote:

                  Just as a quick survey tell me about your application so I make sure I cover the needed areas. My plan is to attempt to deploy the jee5/booking example which is seam + ejb3 + richfaces + hibernate/JPA etc....

                  I will also be porting an application generated through Seam gen.


                  That should cover what my application has in mind - EJB3, faces/facelets, JPA, some Ajax if appropriate

                  "jbalunas@redhat.com" wrote:

                  The porting can be tricky until you figure out each containers quirks. For example on weblogic you cannot deploy EJBs with varargs (which seam has), and OC4J needs a special file just so richfaces css files resolve.


                  I only started working with WebSphere about 2 years ago, so I know there are certainly some quirks to remember! From experience, it's classloading is "interesting"!

                  Thanks,

                  Ian

                  • 7. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                    Jay Balunas Master

                    I wanted to post an update.

                    Finishing up Weblogic took longer than expected and installing WebSphere on SELinux (secure linux) had had its issues, but I am working on this now and will get some info out next week.

                    If everything goes to plan :)

                    • 8. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                      Jay Balunas Master

                      another update.

                      I have have installed Websphere 6.1.0.13 + EJB3 feature pack.

                      I have got the JPA example working (with actually using JPA). The JPA transactions were the tricky bits here. There are lots of gotchas with the classloaders and the fact the as stated by a websphere support person on the forums the EJB3 FP is not a jee5 feature pack. So some things are not supported.

                      Next up is the jee5 example. This will cover EJB3, JPA, Ajax, etc....

                      • 9. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                        Gordon DuQuesnay Newbie

                        >The JPA transactions were the tricky bits here. There are lots of gotchas with >the classloaders

                        Could you elaborate a bit on this. Id like to verify my own setup.

                        • 10. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                          Jay Balunas Master

                          Sure.

                          Is there a specific area where you are concerned?

                          I'll have all the details in the doc but in general:

                          * need to have application first for classloader order.
                          * need to include el-api.jar in war because it is not jee5 compliant
                          * restart of server needed after deploying app

                          This is using JPA example with JPA transactions.


                          • 11. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                            Gordon DuQuesnay Newbie

                            It's been niggling at the back of my mind for some time now that there might be something special (beyond what comes in the JPA example) that I have to do to get production ready Transaction support without EJB3.

                            So when you said:

                            The JPA transactions were the tricky bits here.


                            It gave me pause. Just trying to avoid any nasty surprises when we go live.

                            • 12. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                              Jay Balunas Master

                              I did not find anything specific with the JPA transactions besides figuring out what jars to load, and if which order, plus deployment stuff.

                              The original JPA example for websphere did not actually use JPA transactions it was using JTA from what I can tell. so when I modified the example to use JPA transactions there were some conflicts with jar files (j2ee.jar) where I was getting class cast exceptions.

                              The only way I found around that was to restart the server after deployment or update. If I did that it seemed to work without issue.

                              • 13. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                                Jay Balunas Master

                                Another update:

                                Websphere has been by far the hardest environment to work with - it is frustrating that simple things seem to be very difficult or require some special script tool.

                                In any case as I said before i have the JPA example working with websphere 6.0.1.13 + the EJB3 FP.

                                I have been working on getting the jee5 example (EJB3, JPA, etc...) working. I have passed over several issues and have now been stuck on the same issue for 2 days.

                                At first there were thing like classloaders, and library issues, but now i can't seem to find any of the EJBs that are deployed. Websphere using a special naming context "ejblocal:" and for some reason from the seam servlet I can not access it. I get this:

                                Caused by: javax.naming.ConfigurationException: NamingManager.getURLContext cannot find the factory for this scheme: ejblocal
                                


                                I have tried browsing the "java:" and "local:" namespace but can not find my ejbs, plus countless other approaches. I know they are being deployed from the logs and the IBM basically just told me that I am looking them up correctly.

                                I am hopeful that this is near the last of the issues, but I can't be sure.

                                Are there any websphere guys out there that could lend me a hand?

                                Thanks,
                                Jay

                                • 14. Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
                                  Jay Balunas Master

                                  I finally figured out the jee5 example on Websphere. This uses EJB3 with EJB transactions plus all the other stuff.

                                  This was an amazing struggle, and I will be writing up exactly what is needed to get the example going in the next couple of days.

                                  Feel free to ask questions here if you have any. I will also post when I have checked in the chapter.

                                  -Jay

                                  1 2 3 4 Previous Next