7 Replies Latest reply on Feb 3, 2010 6:07 PM by Lee Theobald

    s:upload doesn't work

    Zo Ge Newbie

      It used to work, but now doesn't. I have got this message


      Caused by javax.el.ELException with message: "/xxxEdit.xhtml @64,95 data="#{xxxHome.instance.logoImage}": Error writing 'logoImage' on type net.something.entities.web.xxx"


      And in the log just one line:

      11:51:45,315 SEVERE [lifecycle] JSF1054: (Phase ID: UPDATE_MODEL_VALUES 4, View ID: /xxxEdit.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@11e81c6]

      I have registered the lifecicle listener.

      Please help me!

      Zolee
        • 1. Re: s:upload doesn't work
          Zo Ge Newbie

          Sorry I had registered multipart-filter in the component.xml, and multipart/form-data on the form.


          And I used s:fileipload tag:




          <s:fileUpload id="logoImage"
                  accept="image/png,image/gif,image/jpeg"
                  data="#{xxxHome.instance.logoImage}"
                  contentType="#{xxxHome.instance.logoImageContentType}"/>



          • 2. Re: s:upload doesn't work
            Zo Ge Newbie

            JBoss log:


            08:27:00,065 ERROR [lifecycle] JSF1054: (Phase ID: UPDATE_MODEL_VALUES 4, View ID: /xxxxEdit.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@7d3660]
            08:27:00,364 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-excel.jar!/META-INF/seam-excel.taglib.xml
            08:27:00,367 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
            08:27:00,371 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
            08:27:00,375 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-rss.jar!/META-INF/seam-rss.taglib.xml
            08:27:00,379 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
            08:27:00,383 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
            08:27:00,385 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
            08:27:00,388 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
            08:27:00,392 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
            08:27:00,395 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
            08:27:00,409 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
            08:27:00,412 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/jsp.taglib.xml
            08:27:00,418 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
            08:27:00,426 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
            08:27:00,439 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml

            • 3. Re: s:upload doesn't work
              Zo Ge Newbie

              log




              08:27:00,065 ERROR [lifecycle] JSF1054: (Phase ID: UPDATE_MODEL_VALUES 4, View ID: /xxxxEdit.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@7d3660]
              08:27:00,364 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-excel.jar!/META-INF/seam-excel.taglib.xml
              08:27:00,367 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
              08:27:00,371 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
              08:27:00,375 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-rss.jar!/META-INF/seam-rss.taglib.xml
              08:27:00,379 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
              08:27:00,383 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
              08:27:00,385 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
              08:27:00,388 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
              08:27:00,392 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
              08:27:00,395 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
              08:27:00,409 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
              08:27:00,412 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/jsp.taglib.xml
              08:27:00,418 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
              08:27:00,426 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
              08:27:00,439 ERROR [STDERR] Oct 22, 2009 8:27:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/home/zoli/jboss-4.2.3.GA/server/default/deploy/xxxx.ear/xxxx.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml
              



              • 4. Re: s:upload doesn't work
                Zo Ge Newbie

                System environment is JBoss 4.2.3 GA, Seam 2.2.0, Ubuntu 9.04. I have tried it on JBoss 5.1.0  

                • 5. Re: s:upload doesn't work
                  Nicklas Karlsson Master

                  Tried the examples (I think it was seamspace or seambay that had an upload)?

                  • 6. Re: s:upload doesn't work
                    Zo Ge Newbie

                    I have found it. It works fine, it was my fault. Both examples work too. Thanks again!

                    • 7. Re: s:upload doesn't work
                      Lee Theobald Newbie

                      Any chance you can point out what the mistake was?  I'm having the same issue and I'm sure it's a mistake I've made but I just can't see it.  I realise this was a few months back so you may have forgotten but it's worth a shot.