8 Replies Latest reply on May 5, 2011 7:40 PM by Puneet Bagoria

    rich:fileUpload Transfer error occurred listener error

    samuel contreras Novice

      hi everybody, i have a problem with my rich:fileUpload, i try upload some file, but i get that exception:

       

      java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadBase$FileSizeLimitExceededException
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:322)
          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:233)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

          at java.lang.Thread.run(Unknown Source)

       

      my code: <rich:fileUpload acceptedTypes="gif" fileUploadListener="#{fileUploadBean.listener}" ></rich:fileUpload>

       

          fileUploadError.JPG

      I use richfaces 3.3.3

       

      thanks for reply!!!!

        • 5. Re: rich:fileUpload Transfer error occurred listener error
          samuel contreras Novice

          here is my new web.xml if someone needs it

           

          best regards

          • 6. Re: rich:fileUpload Transfer error occurred listener error
            Puneet Bagoria Newbie

            Hi,

             

             

            I am getting the same error and file_upload.pngthere is no logs printed at the server.

             

            Please help.

             

            Thanks,

            Puneet

            • 7. rich:fileUpload Transfer error occurred listener error
              Nick Belaevski Master

              Hi Puneet,

               

              This means that something gone wrong on the server. Can you please provide more information: RichFaces version, web.xml contents, etc?

              • 8. rich:fileUpload Transfer error occurred listener error
                Puneet Bagoria Newbie

                Rich Faces version : 3.3.2.SR1

                 

                web.xml

                 

                =========================

                <?xml version="1.0" encoding="UTF-8"?>

                <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                    xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

                    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

                    id="WebApp_ID" version="2.5">

                 

                    <display-name>mySales</display-name>

                   

                    <welcome-file-list>

                       <welcome-file>index.html</welcome-file>

                    </welcome-file-list>

                   

                    <context-param>

                        <param-name>javax.faces.CONFIG_FILES</param-name>

                        <param-value>

                                    /WEB-INF/FacesConfig/account-plan-faces-config.xml,

                                    /WEB-INF/FacesConfig/company-faces-config.xml,

                                    /WEB-INF/FacesConfig/contact-faces-config.xml,

                                    /WEB-INF/FacesConfig/home-faces-config.xml,

                                    /WEB-INF/FacesConfig/task-faces-config.xml,

                        </param-value>

                        <!--

                            <description> Comma-delimited list of context-relative resource paths

                            under which the JSF implementation will look for application

                            configuration resources, before loading a configuration resource

                            named /WEB-INF/facesconfig.xml (if such a resource exists).

                            </description>

                        -->

                    </context-param>

                 

                    <!-- Listener -->

                    <listener>

                        <display-name>Session Listener</display-name>

                        <listener-class>com.apple.ist.mysales.util.SessionListener</listener-class>

                    </listener>

                 

                    <!-- Servlets -->

                    <!-- Added by Raj 26-05-2010 for DropDown Fetcher Servlet -->

                    <servlet>

                        <servlet-name>PDQ Servlet</servlet-name>

                        <servlet-class>com.apple.ist.mysales.servlets.MySalesDropDownFetcherServlet</servlet-class>

                        <load-on-startup>4</load-on-startup>

                    </servlet>

                 

                    <!-- Added by Will 04-06-2010 for Home Page Servlet -->

                    <servlet>

                        <servlet-name>Home Servlet</servlet-name>

                        <servlet-class>com.apple.ist.mysales.servlets.HomeServlet</servlet-class>

                    </servlet>

                 

                    <!-- Reporting Servlet -->

                    <servlet>

                        <servlet-name>Reporting Servlet</servlet-name>

                        <servlet-class>com.apple.ist.mysales.servlets.ReportingServlet</servlet-class>

                    </servlet>

                 

                    <!-- Faces Servlet -->

                    <servlet>

                        <servlet-name>Faces Servlet</servlet-name>

                        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                        <load-on-startup>1</load-on-startup>

                    </servlet>

                 

                    <!-- For Apple Connect? -->

                    <servlet>

                        <description></description>

                        <display-name>LoginPoint</display-name>

                        <servlet-name>LoginPoint</servlet-name>

                        <servlet-class>com.apple.ist.mysales.servlets.LoginPoint</servlet-class>

                    </servlet>

                   

                    <servlet>

                        <description></description>

                        <display-name>ForwardShow</display-name>

                        <servlet-name>ForwardShow</servlet-name>

                        <servlet-class>com.apple.ist.mysales.servlets.ForwardShow</servlet-class>

                    </servlet>

                 

                    <!-- Servlet Mappings -->

                    <servlet-mapping>

                        <servlet-name>Home Servlet</servlet-name>

                        <url-pattern>*.home</url-pattern>

                    </servlet-mapping>

                   

                    <servlet-mapping>

                        <servlet-name>Reporting Servlet</servlet-name>

                        <url-pattern>*.rpt</url-pattern>

                    </servlet-mapping>

                 

                    <servlet-mapping>

                        <servlet-name>Faces Servlet</servlet-name>

                        <url-pattern>/faces/*</url-pattern>

                    </servlet-mapping>

                 

                    <servlet-mapping>

                        <servlet-name>LoginPoint</servlet-name>

                        <url-pattern>/login</url-pattern>

                    </servlet-mapping>

                   

                    <servlet-mapping>

                        <servlet-name>ForwardShow</servlet-name>

                        <url-pattern>/ForwardShow</url-pattern>

                    </servlet-mapping>

                   

                    <!-- Session Config -->

                    <session-config>

                        <session-timeout>60</session-timeout>

                    </session-config>

                 

                    <!-- Filters -->

                    <filter>

                        <display-name>Ajax4jsf Filter</display-name>

                        <filter-name>ajax4jsf</filter-name>

                        <filter-class>org.ajax4jsf.Filter</filter-class>

                        <init-param>

                            <param-name>forceparser</param-name>

                            <param-value>false</param-value>

                        </init-param>

                        <init-param>

                          <param-name>maxRequestSize</param-name>

                          <param-value>30000000</param-value><!-- 30 MB -->

                        </init-param>

                    </filter>

                 

                    <filter>

                        <filter-name>Timer Filter</filter-name>

                        <filter-class>com.apple.ist.mysales.servlets.TimerFilter</filter-class>

                    </filter>

                 

                    <!-- Filter Mappings -->

                    <filter-mapping>

                        <filter-name>ajax4jsf</filter-name>

                        <servlet-name>Faces Servlet</servlet-name>

                        <dispatcher>FORWARD</dispatcher>

                        <dispatcher>REQUEST</dispatcher>

                        <dispatcher>INCLUDE</dispatcher>

                        <dispatcher>ERROR</dispatcher>

                    </filter-mapping>

                 

                    <filter-mapping>

                        <filter-name>Timer Filter</filter-name>

                        <!--<servlet-name>Ajax Servlet</servlet-name>-->

                        <url-pattern>*.home</url-pattern>

                    </filter-mapping>

                 

                    <!-- Error Page -->

                    <error-page>

                        <exception-type>javax.faces.application.ViewExpiredException</exception-type>

                        <location>/SessionExpired.jsp</location>

                    </error-page>

                    <error-page>

                        <error-code>500</error-code>

                        <location>/ExceptionHandle.jsp</location>

                    </error-page>

                    <error-page>

                        <error-code>400</error-code>

                        <location>/ExceptionHandle.jsp</location>

                    </error-page>

                </web-app>

                 

                ===============================