5 Replies Latest reply on Oct 14, 2005 10:07 AM by Eric Fennell

    More newbie mistakes

    Gavin King Master

      It's useful, I need to go through the forum and cull a list of FAQs as soon as I get time.

        • 1. Re: More newbie mistakes
          jameswoodward Newbie

          I had a similar problem with the JSF jars. I had these bundled in my WAR, which then couldn't load the Seam variable resolver from the EJB3.

          The best solution I have found is to place the JARs in the jboss-4.0.3/server/all/deploy/jbossweb-tomcat55.sar/jsf-libs folder. If you also edit jboss-4.0.3/server/all/deploy/jbossweb-tomcat55.sar/conf/web.xml to add more tagLibJarN initParams you can deploy shared JSTL and ADF Faces JARs here too.

           <description>MyFaces TLDs</description>
           <description>JSTL TLDs</description>
           <description>ADF Faces TLDs</description>

          So now instead of having 6MB EAR files, I have 9KB EARs with the following shared JARs in the jsf-libs folder:


          • 2. Re: More newbie mistakes
            Gavin King Master

            Right; this is the best thing to do.

            • 3. Re: More newbie mistakes
              Eric Fennell Newbie

              Would one of you be willing to share the build.xml file you're using in this context?

              Ant is still very new to me and I'm still deciphering the build.xml files.

              It seems (no pun intended) that the sample applications use two separate build files -- one in the application directory (override?) and the build.xml in the root seam directory...

              Have you consolidated the two into one, or are you accomplishing this (exclusion) by modifying one of the other two xmls?

              I apologize -- I realize this is more of an Ant question than a Seam question.

              • 4. Re: More newbie mistakes
                jameswoodward Newbie

                To compile the samples using Ant, you simply need to have Ant and JBoss installed, and the ANT_HOME and JBOSS_HOME environment variables set. Then from the sample root folder (jboss-seam-1.0beta1\examples\booking) command line type:

                ant deploy

                Should work fine!

                I've not messed with the build.xml files. I re-built the samples using Eclipse + MyEclipse.

                • 5. Re: More newbie mistakes
                  Eric Fennell Newbie

                  Thanks, James.

                  Now it's a matter of figuring out what stupid thing I did to my own application that's making it different from the example app... :)