8 Replies Latest reply on Jul 9, 2007 3:48 PM by nwhite

    Can't get registration sample running on Glassfish

    vimalkansal

      Hi,

      I have created an enterprise project in Netbeans to build and deploy the registration sample shipped with seam 2.0. My project deploys without any error but when I try accessing the URL, I see 404 and the browser url looks like http://localhost:8080/registration-war/debug.seam?conversationId=1

      Can somebody help me. I wonder if there is anyway I can post/submit my netbeans project directory?

      TIA

      Vimal

        • 1. Re: Can't get registration sample running on Glassfish
          gavin.king

          Try the "jpa" or "jee5" example. The registration example is missing some metadata that glassfish needs.

          • 2. Re: Can't get registration sample running on Glassfish
            vimalkansal

            Thanks Gavin. I have already tried jee5 and it works perfectly well. Based on Jee5 I am trying to get registration one going. I have finally reached the stage where I am not getting any exception/error but the application is straighaway serving the .xhtml file i.e on my screen I see strings like Name: Real Name: PAssword: instaed of labels followed by text fields. I am not sure why the .xhtml files are not getting translated. Can you please throw some light on it? Basically I just want to get comfortable with seam as quickly as possible in Glassfish environment as I intend to use seam in one of my major projects.

            Regards

            Vimal

            • 3. Re: Can't get registration sample running on Glassfish
              vimalkansal

              Also it appears that there is a discrepency in the version of registration app that is shipped with seam 2.0 and what is discussed in documentation. Anyways, now I am trying to get the .jsp version (which is what is discussed in the documentation) going and when I try accessing the register page as

              http://localhost:8080/registration-war/register.seam I see following :

              type Exception report

              message

              descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

              exception

              javax.servlet.ServletException: viewId:/debug.seam - View /debug.seam could not be restored.

              root cause

              javax.faces.application.ViewExpiredException: viewId:/debug.seam - View /debug.seam could not be restored.

              note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.


              After running Jee5 app so quickly and smoothly I was really excited but now that I want to go step by step by following all the samples, I am feeling bit frustrated. Can you please help me in this one please?

              Thanks

              Vimal

              • 4. Re: Can't get registration sample running on Glassfish
                gavin.king

                Like I said, the other examples were not designed to run on GlassFish and simply don't work there. If you want to make the registration example run on GlassFish, you'll need to look at the differences between the registration example and the jee5 example. Pay particular attention to ejb-jar.xml, web.xml, application.xml files. Make the registration example look like the jee5 example.

                Unfortunately, today, the dream of being able to run an application on multiple servers without any metadata changes is just a dream. It's not practical.

                • 5. Re: Can't get registration sample running on Glassfish
                  vimalkansal

                  Thanks Gavin. I finally got it going on Glassfish. I just needed to read the reference manual a bit more seriously and it helped a lot. But now I am beginning to get a feel of it and I must admit that Seam seem seams to be the most innovative framework that I have ever worked!

                  Thanks

                  Vimal

                  • 6. Re: Can't get registration sample running on Glassfish
                    gavin.king

                    Great, good luck :-)

                    • 7. Re: Can't get registration sample running on Glassfish
                      nwhite

                       

                      "vimalkansal" wrote:
                      Thanks Gavin. I finally got it going on Glassfish. I just needed to read the reference manual a bit more seriously and it helped a lot. But now I am beginning to get a feel of it and I must admit that Seam seem seams to be the most innovative framework that I have ever worked!

                      Thanks

                      Vimal


                      Would you mind posting the changes or links to the diffs for other who are interested? Thnx.

                      • 8. Re: Can't get registration sample running on Glassfish
                        nwhite

                         

                        "nwhite" wrote:
                        "vimalkansal" wrote:
                        Thanks Gavin. I finally got it going on Glassfish. I just needed to read the reference manual a bit more seriously and it helped a lot. But now I am beginning to get a feel of it and I must admit that Seam seem seams to be the most innovative framework that I have ever worked!

                        Thanks

                        Vimal


                        Would you mind posting the changes or links to the diffs for other who are interested? Thnx.


                        Nvr mind, I just noticed how out-of-date this thread was. :-)