5 Replies Latest reply on Jul 20, 2006 10:09 PM by gus888

    Did somebody make fileupload works with no facelets?

    gus888

      I followed the wiki Fileupload direction, and added Fileupload function to my seam test project with no facelets. When I deployed to JBoss4.0.4.GA, no exceptions about no class found -- FileUpload. However, when I run it, I got an exception about Cannot find taglib uri="http://myfaces.apache.org/tomahawk" in lib or tag file. I understand the exception, since I put the tomahawk.lib in ear file not in WEB-INF/lib/. Does anybody ever experience the problem? I really appreciate if somebody can give me some direction. I don't know whether integrating tomahawk.lib into JBoss server can solve the problem. Thank you very much in advance.

        • 1. Re: Did somebody make fileupload works with no facelets?
          gus888

          Hi Gavin,

          Could you please give me a help on this? I spent several nights but failed to fix it. Since I want to keep myfaces/tiles in the project, I could not use the facelets. Thank you very much.

          Gus

          • 2. Re: Did somebody make fileupload works with no facelets?
            gavin.king

            Um, not much I can do to help, I have never used tiles, or the fileupload stuff in tomahawk.

            Perhaps someone else can help.

            • 3. Re: Did somebody make fileupload works with no facelets?
              gus888

              Hi Gavin,

              Thank you for your reply. I want to try to integrate the tomahawk.jar in JBoss to see whether it works. I plan to copy the tomahawk.jar into "C:\jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs", but I don't know how to modify the web.xml file in the "\jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\conf". The modification seems to be similar to myfaces-impl.jar integration:

              web.xml:
              ...
               <init-param>
               <description>MyFaces tlds</description>
               <param-name>tagLibJar0</param-name>
               <param-value>jsf-libs/myfaces-impl.jar</param-value>
               </init-param>
              ...


              Could you please give me some guidance on web.xml, which seems like, perhaps:
              <init-param>
               <description>Tomahawk tlds</description>
               <param-name>????</param-name>
               <param-value>jsf-libs/tomahawk.jar</param-value>
               </init-param>

              Thank you so much.

              Gus

              • 4. Re: Did somebody make fileupload works with no facelets?
                gus888

                Hi Gavin,

                I found a post in Seam forum (I remember I ever saw it, but could not find it before) about the integrating tomahawk.jar into JBoss, and modification to the conf/web.xml as follows:

                <init-param>
                 <description>MyFaces tlds</description>
                 <param-name>tagLibJar1</param-name>
                
                 <param-value>jsf-libs/tomahawk.jar</param-value>
                </init-param>

                I will try it tonight to see whether it works. Thank you.

                Gus

                • 5. Re: Did somebody make fileupload works with no facelets?
                  gus888

                  Hi Gavin,

                  I made it works for FileUpload on Seam + myface/tiles + myface(tomahawk). What I did is as follows:
                  1) Follow seam wiki fileUpload all steps, except the tomahawk.jar.
                  2) Put the tomahawk.jar into jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs;
                  3) Modify the web.xml under jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\conf:

                  <init-param>
                   <description>MyFaces tlds</description>
                   <param-name>tagLibJar0</param-name>
                   <param-value>jsf-libs/myfaces-impl.jar</param-value>
                  </init-param>
                  <!-- I added the tomahawk -->
                  <init-param>
                   <description>MyFaces tlds</description>
                   <param-name>tagLibJar1</param-name>
                   <param-value>jsf-libs/tomahawk.jar</param-value>
                  </init-param>

                  4)Put the struts.jar into jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar.

                  Thank you, Gavin.

                  Gus