1 2 Previous Next 16 Replies Latest reply on Nov 16, 2006 4:21 PM by gavin.king

    problems using jboss/seam

    nitm

      hi all.
      we decided to develop our application on jboss using seam but we can't make it work right...

      we searched for help all over the net but that only confused us more...
      here's what we got:
      - jboss 4.0.5
      - seam 1.0.1
      - eclipse ide with the plugins mentioned in the 'JBossSeamGettingStartedGuide'

      anyone knows where we can find a tutorial / documention that will help us figure how to work this out?

      thanks a lot!

        • 1. Re: problems using jboss/seam
          johnurban

          1. Go to the Seam getting started road map and follow the install instructions exactly, don't deviate:

          http://labs.jboss.com/portal/jbossseam/gettingstarted

          2. Read the Seam documentation before you do anything.
          3. Work through every example, understanding each piece.
          4. Subscribe to this forum and read every post.
          5. Post questions if you can't get you answer from 1,2 or 3. I wish I had done that

          Seam has a steep learning curve, but it promises great benefits and the rewards of faster development in the end.

          You've got to really study it, especially if you are new to EJB 30, annotations and JSF.

          Here are the docs:

          http://labs.jboss.com/portal/jbossseam/docs

          Hope this helps.

          • 2. Re: problems using jboss/seam
            nitm

            thanks for the reply...

            we did try to follow the steps in:
            http://labs.jboss.com/portal/jbossseam/gettingstarted

            but when we got to the examples it all got messed up.. the first two (booking & dvd) did not even pass the build step.. we got a "bad file" (or something like that) error...
            the third one (issues) passed the build step but we couldnt open it in the browser (bad deployment or something).

            since that did not work out we searched for more info but that (as i wrote before) only confused us more....

            any ideas?
            thanks!

            • 3. Re: problems using jboss/seam
              johnurban

              I was able to get all of the examples to build w/o any problems. Take it 1 at a time and post the problem you have with each. Configuration is a big part of Seam. Its probably something someone has run into before. The JBoss guys did a real good job w/ the examples and they are quite solid. I'll help where I can.

              • 4. Re: problems using jboss/seam
                nitm

                thank you very much for your help!

                here's what i get when i try to deploy the booking example:
                Buildfile: build.xml

                BUILD FAILED
                C:\Program Files\jboss\jboss-seam-1.0.1.GA\examples\booking\build.xml:29: You must not specify more than one attribute when using refid

                the same thing happens when i try to deploy the dvdstore example...
                as for the last example (issues), the deployment worked but i get a 404 page when i try to see it in the browser and on the console i can see a stack trace of exceptions from the server run.bat
                the exception is: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!

                that's about it...
                thanks again!

                • 5. Re: problems using jboss/seam
                  gavin.king

                  What version of Ant are you using?

                  • 6. Re: problems using jboss/seam
                    nitm

                    we're using ant version 1.7

                    • 7. Re: problems using jboss/seam
                      gavin.king

                      Notice that the getting started guide tells you to use Ant 1.6, not some beta release of Ant.

                      • 8. Re: problems using jboss/seam
                        nitm

                        oh! so that was the problem with the build.....
                        ok, that fixed it.. now i can build all of the examples BUT i still have the same problem with all of them.. i get this error in the console (on the server startup):
                        org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!

                        thanks a bunch!

                        • 9. Re: problems using jboss/seam
                          gavin.king

                          The getting started guide also tells you to install JBoss with the ejb3 profile.

                          • 10. Re: problems using jboss/seam
                            nitm

                            right you are again, but i did that....
                            well, actually, when i installed the jboss as i selected the 'all' button instea,d of the ejb3, that's not good?

                            • 11. Re: problems using jboss/seam
                              gavin.king

                              No thats not good. We have very carefully written instructions that tell people *exactly* what to do to get started, so that we don't have to waste their time and ours with forum threads like these. Please follow the instructions exactly! Sheesh!

                              • 12. Re: problems using jboss/seam
                                nitm

                                sorry about that.. my bad.
                                we just thought that by 'all' we get all of the options....

                                now everything works great!!!

                                again, i'm sorry for wasting everyones time.

                                • 13. Re: problems using jboss/seam
                                  gavin.king

                                  NP. In your defence, the getting started guide actually did say "Ant 1.6 or above". I have fixed that. I have also added an explicit note to not use the "all" profile.

                                  • 14. Re: problems using jboss/seam
                                    nitm

                                    good, at least we might of saved other people some time...
                                    thanks again for everything, you're doing a great job!

                                    1 2 Previous Next