Discussion:
java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
Christian Aschoff
2008-01-07 11:09:26 UTC
Permalink
Hi,

i have a webapplication developed with NetBeans 5.5. Everything is
fine. But when i recompile it with NetBeans 6.01, i get a

2008-01-07 10:13:51,244 ERROR [http-8084-2] (RetrobibAction.java:89)
- Exception in Action
java.lang.NoSuchMethodError:
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(ServletFileUpload.java:126)

Exception when uploading files (via apache.commons.fileupload). I
upgraded all librarys (io/collections/fileupload) but this does not
helped.

Any hint for me?

Regards,
Christian

---
Dipl. Ing. (FH) Christian Aschoff

Büro:
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm

Tel. 0731 50-22432
Fax. 0731 50-22471
***@uni-ulm.de

Privat:
Fabristr. 13
89075 Ulm
Deutschland/Old Europe

Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
***@mac.com

Helfen Sie mit: http://www.retrobibliothek.de





---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
David Delbecq
2008-01-07 11:12:10 UTC
Permalink
Check you don't have 2 versions of commons fileupload. Also, provide a
more complete stacktrace to get meaningful answers :)

En l'instant précis du 07/01/08 12:09, Christian Aschoff s'exprimait en
Post by Christian Aschoff
Hi,
i have a webapplication developed with NetBeans 5.5. Everything is
fine. But when i recompile it with NetBeans 6.01, i get a
2008-01-07 10:13:51,244 ERROR [http-8084-2] (RetrobibAction.java:89) -
Exception in Action
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
Exception when uploading files (via apache.commons.fileupload). I
upgraded all librarys (io/collections/fileupload) but this does not
helped.
Any hint for me?
Regards,
Christian
---
Dipl. Ing. (FH) Christian Aschoff
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm
Tel. 0731 50-22432
Fax. 0731 50-22471
Fabristr. 13
89075 Ulm
Deutschland/Old Europe
Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
Helfen Sie mit: http://www.retrobibliothek.de
---------------------------------------------------------------------
--
http://www.devlog.be (a belgian developer's logs)



---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Christian Aschoff
2008-01-07 11:20:46 UTC
Permalink
Hm, i think the complete stack-trace does not help further, but anyway:

java.lang.NoSuchMethodError:
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(ServletFileUpload.java:126)
at de.retrobib.utils.RequestParameterFetcher.buildHashs
(RequestParameterFetcher.java:156)
at de.retrobib.utils.RequestParameterFetcher.<init>
(RequestParameterFetcher.java:58)
at de.retrobib.actions.secure.BatchAction.executeAction
(BatchAction.java:85)
at de.retrobib.actions.RetrobibAction.execute(RetrobibAction.java:83)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:
1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:
432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at de.retrobib.filter.SecurityFilter.doFilter(SecurityFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at de.retrobib.filter.URLFilter.doFilter(URLFilter.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
(MonitorFilter.java:390)
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:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
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:263)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run
(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)

I can not find a second commons...-lib. Maybe it is somewhere inside
NetBeans 6.0...?
Post by David Delbecq
Check you don't have 2 versions of commons fileupload. Also,
provide a more complete stacktrace to get meaningful answers :)
En l'instant précis du 07/01/08 12:09, Christian Aschoff
Post by Christian Aschoff
Hi,
i have a webapplication developed with NetBeans 5.5. Everything is
fine. But when i recompile it with NetBeans 6.01, i get a
89) - Exception in Action
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
ServletFileUpload.java:126)
Exception when uploading files (via apache.commons.fileupload). I
upgraded all librarys (io/collections/fileupload) but this does
not helped.
Any hint for me?
Regards,
Christian
---
Dipl. Ing. (FH) Christian Aschoff
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm
Tel. 0731 50-22432
Fax. 0731 50-22471
Fabristr. 13
89075 Ulm
Deutschland/Old Europe
Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
Helfen Sie mit: http://www.retrobibliothek.de
---------------------------------------------------------------------
--
http://www.devlog.be (a belgian developer's logs)
---------------------------------------------------------------------
---
Dipl. Ing. (FH) Christian Aschoff

Büro:
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm

Tel. 0731 50-22432
Fax. 0731 50-22471
***@uni-ulm.de

Privat:
Fabristr. 13
89075 Ulm
Deutschland/Old Europe

Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
***@mac.com

Helfen Sie mit: http://www.retrobibliothek.de





---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Liquid Mark
2008-01-23 11:43:54 UTC
Permalink
Hi,

Have you solved this problem? I'm having it too. I suspect that my
application is compiled with, and trying to use at runtime, just one version
of ServletFileUpload.parseRequest -- but that Tomcat uses another
internally, and since it's a Servlet request, Tomcat's version is being
applied. (The effective classpath for servlets under Tomcat 6.0 is pretty
mysterious.)
Post by Christian Aschoff
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(ServletFileUpload.java:126)
at de.retrobib.utils.RequestParameterFetcher.buildHashs
(RequestParameterFetcher.java:156)
at de.retrobib.utils.RequestParameterFetcher.<init>
(RequestParameterFetcher.java:58)
at de.retrobib.actions.secure.BatchAction.executeAction
(BatchAction.java:85)
at de.retrobib.actions.RetrobibAction.execute(RetrobibAction.java:83)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:236)
1196)
432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at de.retrobib.filter.SecurityFilter.doFilter(SecurityFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at de.retrobib.filter.URLFilter.doFilter(URLFilter.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
(MonitorFilter.java:390)
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:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
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:263)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run
(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)
I can not find a second commons...-lib. Maybe it is somewhere inside
NetBeans 6.0...?
Post by David Delbecq
Check you don't have 2 versions of commons fileupload. Also,
provide a more complete stacktrace to get meaningful answers :)
En l'instant précis du 07/01/08 12:09, Christian Aschoff
Post by Christian Aschoff
Hi,
i have a webapplication developed with NetBeans 5.5. Everything is
fine. But when i recompile it with NetBeans 6.01, i get a
89) - Exception in Action
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
ServletFileUpload.java:126)
Exception when uploading files (via apache.commons.fileupload). I
upgraded all librarys (io/collections/fileupload) but this does
not helped.
Any hint for me?
Regards,
Christian
---
Dipl. Ing. (FH) Christian Aschoff
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm
Tel. 0731 50-22432
Fax. 0731 50-22471
Fabristr. 13
89075 Ulm
Deutschland/Old Europe
Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
Helfen Sie mit: http://www.retrobibliothek.de
---------------------------------------------------------------------
--
http://www.devlog.be (a belgian developer's logs)
---------------------------------------------------------------------
---
Dipl. Ing. (FH) Christian Aschoff
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm
Tel. 0731 50-22432
Fax. 0731 50-22471
Fabristr. 13
89075 Ulm
Deutschland/Old Europe
Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
Helfen Sie mit: http://www.retrobibliothek.de
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest-tp14663587p15040010.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
David Smith
2008-01-23 12:34:34 UTC
Permalink
Tomcat as distributed doesn't have the commons-fileupload library. If
this is a conflict between two versions in two different locations, it's
one you've setup. Take a look and make sure there isn't another one in
tomcat's /lib directory.

--David
Post by Liquid Mark
Hi,
Have you solved this problem? I'm having it too. I suspect that my
application is compiled with, and trying to use at runtime, just one version
of ServletFileUpload.parseRequest -- but that Tomcat uses another
internally, and since it's a Servlet request, Tomcat's version is being
applied. (The effective classpath for servlets under Tomcat 6.0 is pretty
mysterious.)
Post by Christian Aschoff
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
(ServletFileUpload.java:126)
at de.retrobib.utils.RequestParameterFetcher.buildHashs
(RequestParameterFetcher.java:156)
at de.retrobib.utils.RequestParameterFetcher.<init>
(RequestParameterFetcher.java:58)
at de.retrobib.actions.secure.BatchAction.executeAction
(BatchAction.java:85)
at de.retrobib.actions.RetrobibAction.execute(RetrobibAction.java:83)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:236)
1196)
432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at de.retrobib.filter.SecurityFilter.doFilter(SecurityFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at de.retrobib.filter.URLFilter.doFilter(URLFilter.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
(MonitorFilter.java:390)
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:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
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:263)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run
(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)
I can not find a second commons...-lib. Maybe it is somewhere inside
NetBeans 6.0...?
Post by David Delbecq
Check you don't have 2 versions of commons fileupload. Also,
provide a more complete stacktrace to get meaningful answers :)
En l'instant précis du 07/01/08 12:09, Christian Aschoff
Post by Christian Aschoff
Hi,
i have a webapplication developed with NetBeans 5.5. Everything is
fine. But when i recompile it with NetBeans 6.01, i get a
89) - Exception in Action
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
ServletFileUpload.java:126)
Exception when uploading files (via apache.commons.fileupload). I
upgraded all librarys (io/collections/fileupload) but this does
not helped.
Any hint for me?
Regards,
Christian
---
Dipl. Ing. (FH) Christian Aschoff
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm
Tel. 0731 50-22432
Fax. 0731 50-22471
Fabristr. 13
89075 Ulm
Deutschland/Old Europe
Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
Helfen Sie mit: http://www.retrobibliothek.de
---------------------------------------------------------------------
--
http://www.devlog.be (a belgian developer's logs)
---------------------------------------------------------------------
---
Dipl. Ing. (FH) Christian Aschoff
Universität Ulm
Kommunikations- und Informationszentrum
Abt. Informationssysteme
Raum O26/5403
Albert-Einstein-Allee 11
89081 Ulm
Tel. 0731 50-22432
Fax. 0731 50-22471
Fabristr. 13
89075 Ulm
Deutschland/Old Europe
Tel. 0731 602 803 60
Fax. 0731 602 803 61
Mob. 0171 272 03 04
Helfen Sie mit: http://www.retrobibliothek.de
---------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org

Loading...