I am developing an application that has an image loading module. I wrote the following code to get data with multiple forms.
List items = servletFileUpload.parseRequest (request);
I am using commons-fileupload-1.2.1.jar
for this purpose. When I deploy my assembly to the jboss-5.1.0.GA
server, it throws an error when loading any file. The error is as follows:
java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (Lorg / Apache / Common / FileUpload / RequestContext;) Ljava / Util / List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (ServletFileUpload.java:126) at com.bworld.action.UploadSubscriptionImage.processRequest (UploadSubscriptionImage.java:46) at com.bworld.action.UploadSubscription .java: 145) in javax.servlet.http.HttpServlet.service (HttpServlet.java:637) in javax.servlet.http.HttpServlet.service (HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain. internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter at .apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.Standar dWrapperValve.invoke (StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke () at org.jboss.web.tomcat.security.JaccContextValve.invoke (JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process (SecurityContextEstablishmentValve.java:b6cat) .security.SecurityContextEstablishmentValve.invoke (SecurityContextEstablishValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportalalvevevealvealvealvealvealvealvealvealvealvealvealvealvealvealvealvealvealvealve ) on org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke (CachedConnectionValve.java:158) on org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) on org .apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter. (Http11Protocol.javaPoint98) at org.apache.tomcat.util.net.JIoEndpoint $ Worker.run (JIoEndpoint.java:447) in java.lang.Thread.run (Thread.java:679)
Can someone tell me how to recover from this problem?
source share