8 Replies Latest reply on May 15, 2008 6:40 AM by Andrei Markavtsov

    <rich:fileUpload>

    k dcosta Newbie

      hi

      i want to get the path of the selected file for upload using <rich:fileUpload>

      eg: d:/logo.gif

      is there any way or binding to get the value or path


      rgds

        • 1. Re: <rich:fileUpload>
          Andrei Markavtsov Apprentice

          Hi,

          You can get file name from the UploadItem instance. But this value depends on browser that you use.
          For example it will be full path (Ex: d:\logo.gif) in case of IE.
          In Firefox & Opera it's only file name (Ex.: logo.gif).

          In Firefox & Opera it is impossible to get path from client side by browser security reason.

          We cannot provide workaround in this case.

          • 2. Re: <rich:fileUpload>
            k dcosta Newbie

            Thankx for the reply

            can u just give me an example.
            i mean a sample code
            bse i cannot find a UploadItem attribute for <rich:fileUpload>
            OR is it uploadData???

            • 3. Re: <rich:fileUpload>
              Ilya Shaikovsky Master

              UploadData - should be binding to the list of UploadItems

              Also you may give the each file information from UploadEvent using UploadListener.

              • 4. Re: <rich:fileUpload>
                Andrei Markavtsov Apprentice

                You can get UploadItem from UploadEvent in upload listener.
                The other way to use uploadData attribute. It should be refferenced on ArrayList property. Each UploadItem will be added to the list.

                Example:

                <rich:fileUpload fileUploadListener='#{bean.listener}' ... uploadData='#{bean.uploadData}'..../>
                class bean {
                ....

                List uploadData = new ArrayList();

                ...
                public void listener (UploadEvent ev) {
                UploadItem item = ev.getUploadItem();
                .......
                if (uploadData.size > 0) {
                UploadItem item2 = (UploadItem)uploadData.get(0);
                }
                ......
                }
                }

                • 5. Re: <rich:fileUpload>
                  k dcosta Newbie

                  hi

                  thnkx a lot for the reply.
                  i followed the way u said

                  <rich:fileUpload id="fileupload"
                   clearControlLabel="" cleanButtonClass="buttonClear"
                   clearAllControlLabel="" addButtonClass="buttonBrowse"
                   addButtonClassDisabled="buttonBrowse" immediateUpload="true"
                   addControlLabel="Browse..." listHeight="0px;" listWidth="240px;"
                   uploadData="#{regAction.uploadData}" fileUploadListener="#{regAction.listener}">
                   </rich:fileUpload>


                  .java class
                  ------------

                  @Name("regAction")
                  @Stateless
                  @Scope(ScopeType.SESSION)
                  public class RegisterationController extends ContentFormatValidator implements IFCompanyManager {
                  
                  
                   @PersistenceContext
                   EntityManager em;
                  
                   /*@In
                   com.adasoftware.awb.entity.Company company;
                  
                   @In
                   com.adasoftware.awb.entity.Users users;*/
                  
                  
                   @In
                   Company companyAction;
                  
                   @In
                   User user;
                  
                  
                   ArrayList <SelectItem> countryList =new ArrayList<SelectItem>();
                   ArrayList uploadData = new ArrayList();
                  
                   public RegisterationController(){
                  
                   setAddLine1("");
                   setAddLine2("");
                   setCity("");
                   setZip("");
                  
                  
                   countryList.add(new SelectItem("India", "India"));
                   countryList.add(new SelectItem("Germany", "Germany"));
                   countryList.add(new SelectItem("USA", "USA"));
                   countryList.add(new SelectItem("UK", "UK"));
                   countryList.add(new SelectItem("Italy", "Italy"));
                   countryList.add(new SelectItem("Canada", "Canada"));
                  
                   }
                   public void listener(UploadEvent event) {
                   UploadItem item = event.getUploadItem();
                  
                   byte[] data = item.getData();
                  
                   if (item.isFile()) {
                  
                   System.out.println(item.getFileName());
                   }
                  
                   }
                  
                  
                   public ArrayList getUploadData() {
                   return uploadData;
                   }
                  
                   public void setUploadData(ArrayList uploadData) {
                   this.uploadData = uploadData;
                   }
                  }


                  But im getting the error

                  org.jboss.seam.InstantiationException: Could not instantiate Seam component: regAction at org.jboss.seam.Component.newInstance(Component.java:1740) at org.jboss.seam.Component.getInstance(Component.java:1643) at org.jboss.seam.Component.getInstance(Component.java:1610) at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53) at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:100) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64) at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45) at org.apache.el.parser.AstValue.getValue(AstValue.java:86) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) at javax.faces.component.UIOutput.getValue(UIOutput.java:173) at com.sun.faces.renderkit.htmlbasic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189) at com.sun.faces.renderkit.htmlbasic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320) at com.sun.faces.renderkit.htmlbasic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836) at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286) at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262) at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:79) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282) at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262) at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:397) at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:392) at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) at javax.faces.render.Renderer.encodeChildren(Renderer.java:137) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: javax.naming.NameNotFoundException: RegisterationController not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) at org.jnp.server.NamingServer.getObject(NamingServer.java:543) at org.jnp.server.NamingServer.lookup(NamingServer.java:267) at org.jnp.server.NamingServer.lookup(NamingServer.java:270) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.jboss.seam.Component.instantiateSessionBean(Component.java:1107) at org.jboss.seam.Component.instantiate(Component.java:1093) at org.jboss.seam.Component.newInstance(Component.java:1736) 77 more


                  plz help me

                  • 6. Re: <rich:fileUpload>
                    Andrei Markavtsov Apprentice

                    Seems that cause of exception is out of fileUpload component.
                    Can you please post the whole page?

                    • 7. Re: <rich:fileUpload>
                      k dcosta Newbie

                      Thnkz again for the reply.

                      When i searched for the issue, i found that i should put the richfaces3.2 to jar in the deploy folder of the jboss server.
                      So i tried that and the above mentioned exception is gone. now i could run the page.

                      But still i cannot get the uploaded data or use the upload listener.
                      when i upload a file soon after deploying , in the console im getting the error
                      as below




                      javax.faces.el.MethodNotFoundException: /pages/Company Registration.xhtml @124,55 fileUploadListener="#{regAction.listener}": Method not found: RegisterationController.listener(org.richfaces.event.UploadEvent)
                      at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71)
                      at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:160)
                      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:316)
                      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:289)
                      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:248)
                      at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:404)
                      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:327)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                      at java.lang.Thread.run(Thread.java:619)
                      10:00:00,088 WARN [lifecycle] executePhase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@144e4e0) threw exception
                      javax.faces.FacesException: /pages/Company Registration.xhtml @124,55 fileUploadListener="#{regAction.listener}": Method not found: RegisterationController.listener(org.richfaces.event.UploadEvent)
                      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:109)
                      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:327)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                      at java.lang.Thread.run(Thread.java:619)
                      Caused by: javax.faces.el.MethodNotFoundException: /pages/Company Registration.xhtml @124,55 fileUploadListener="#{regAction.listener}": Method not found: RegisterationController.listener(org.richfaces.event.UploadEvent)
                      at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71)
                      at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:160)
                      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:316)
                      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:289)
                      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:248)
                      at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:404)
                      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                      ... 43 more
                      10:00:00,182 ERROR [ExceptionFilter] uncaught exception
                      javax.servlet.ServletException: /pages/Company Registration.xhtml @124,55 fileUploadListener="#{regAction.listener}": Method not found: RegisterationController.listener(org.richfaces.event.UploadEvent)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:327)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                      at java.lang.Thread.run(Thread.java:619)
                      Caused by: javax.faces.el.MethodNotFoundException: /pages/Company Registration.xhtml @124,55 fileUploadListener="#{regAction.listener}": Method not found: RegisterationController.listener(org.richfaces.event.UploadEvent)
                      at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71)
                      at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:160)
                      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:316)
                      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:289)
                      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:248)
                      at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:404)
                      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                      ... 40 more
                      10:00:00,197 ERROR [ExceptionFilter] exception root cause
                      javax.faces.el.MethodNotFoundException: /pages/Company Registration.xhtml @124,55 fileUploadListener="#{regAction.listener}": Method not found: RegisterationController.listener(org.richfaces.event.UploadEvent)
                      at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71)
                      at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:160)
                      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:316)
                      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:289)
                      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:248)
                      at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:404)
                      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:327)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                      at java.lang.Thread.run(Thread.java:619)
                      10:00:00,338 ERROR [DebugPageHandler] redirecting to debug page
                      javax.faces.el.MethodNotFoundException: /pages/Company Registration.xhtml @124,55 fileUploadListener="#{regAction.listener}": Method not found: RegisterationController.listener(org.richfaces.event.UploadEvent)
                      at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71)
                      at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:160)
                      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:316)
                      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:289)
                      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:248)
                      at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:404)
                      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
                      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:327)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                      at java.lang.Thread.run(Thread.java:619)
                      10:00:00,744 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
                      10:00:00,760 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/richfaces.taglib.xml
                      10:00:00,760 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/rich.taglib.xml
                      10:00:00,760 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
                      10:00:00,775 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
                      10:00:00,775 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
                      10:00:00,775 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
                      10:00:00,791 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/richfaces.taglib.xml
                      10:00:00,791 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
                      10:00:00,791 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/ajax4jsf.taglib.xml
                      10:00:00,806 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam-ui.taglib.xml
                      10:00:00,806 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/ajax4jsf.taglib.xml
                      10:00:00,806 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
                      10:00:00,822 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/a4j.taglib.xml
                      10:00:00,822 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/a4j.taglib.xml
                      10:00:00,822 ERROR [STDERR] May 15, 2008 10:00:00 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/D:/rhdevstudio/jboss-eap/jboss-as/server/default/deploy/AWB-ear.ear/AWB.war/WEB-INF/lib/richfaces-ui-3.2.0.SR1.jar!/META-INF/rich.taglib.xml



                      When i search i saw, that i should put the jat in the ear project and should have an entry in the application.xml.
                      But since i didnt understand it completely, i didnt try it out???

                      Now any idea what my problem might be?????


                      thnkx and rgds

                      • 8. Re: <rich:fileUpload>
                        Andrei Markavtsov Apprentice

                        You should put RF jar into WEB-INF/lib folder.

                        Anyway if your application is'nt huge you can send me it (amarkavtsov@exadel.com). I will find the problem more quickly in this case.