hi,
Already managed to resolve this issue.
Using the default struts.multipart.parser=jakarta had to download the
following two jars:
- apache commons io 1.3.2
- apache commons fileupload 1.2
then it works fine. Seems there are different ways depending on the
Struts release ... not good.
TIA,
regards,
Giovanni
Giovanni Azua wrote:
hi all,
Unlike the other post I am using Struts 2.0.9 that seems to have a
slightly different setup for File Upload.
My struts.properties contains the relevant default settings:
### Parser to handle HTTP POST requests, encoded using the MIME-type
multipart/form-data
struts.multipart.parser=jakarta
struts.multipart.saveDir=
struts.multipart.maxSize=2097152
But still when I follow the showcase example I get the exception below.
What I really don't understand is how come the showcase example works
fine without needed the Apache commons-io? I am not using "pell" as
multipart parser, should I?
TIA,
regards,
Giovanni
SEVERE: Servlet.service() for servlet default threw exception
java.lang.RuntimeException: Unable to load bean
org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) -
[unknown location]
at
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:136)
at
com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:476)
at
com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:486)
at
com.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:517)
at
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)
at
com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:515)
at
org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:697)
at
org.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest(FilterDispatcher.java:330)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.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:230)
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:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: Unable to load bean
org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) -
[unknown location]
at
org.apache.struts2.config.BeanSelectionProvider$ObjectFactoryDelegateFactory.create(BeanSelectionProvider.java:246)
at
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:134)
... 20 more
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]