[ 
https://issues.apache.org/struts/browse/WW-2446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43041#action_43041
 ] 

James Mitchell commented on WW-2446:
------------------------------------

What do you mean?  S2 isn't configured out-of-the-box for anything.  Unless you 
are jump-starting your project with a S2 sample app, which may or may not have 
those jars anyway, then there is no out-of-the-box configuration.  

Take a look at  the core pom.xml.  File upload isn't required for core any more 
than dwr or velocity-tools is.  And the existence of a tag for helping someone 
deal with optional functionality doesn't constitute saying that it is 
configured out-of-the-box either.

This is basic project dependency management.  If you are using Maven as your 
build tool, then depending on S2 will pull in most of the jars that you need.  
You have to set up your own project and add the dependencies yourself.  Whether 
that means adding the maven configuration and overriding the dependencies, or 
simply adding them to your Ant build classpath, or whatever else configuration 
you need for some other build tool.

Ultimately, I am -1 for increasing the size of the already bloated distribution.


> Missing needed dependency in current distribution for File Upload feature.
> --------------------------------------------------------------------------
>
>                 Key: WW-2446
>                 URL: https://issues.apache.org/struts/browse/WW-2446
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Solaris
>            Reporter: Craig Swift
>
> Currently when trying to use the file upload feature the following errors 
> occur: java.lang.RuntimeException: Unable to load bean 
> org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown 
> location]
> This can be fixed by including the commons-fileupload jar in the web 
> application. Unfortunately this isn't included in the standard struts 
> distribution and the wiki doesn't explain it. Please include in the future, 
> thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to