Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest 
(jakarta)
--------------------------------------------------------------------------------------

                 Key: WW-1944
                 URL: https://issues.apache.org/struts/browse/WW-1944
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.6
         Environment: Strusts 2.06 with xwork 2.0.2
I use only actually the file strusts2-core-2.0.6.jar and xwork-2.0.2.jar
            Reporter: sebastien b.


Hello,

I try to use file tag to upload a file to my server.

The problem : When i click on submit button, i had this error : 

Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest 
(jakarta)

I tried to understand this error and i found that struts.properties have a 
missing configuration on 'struts.multipart.parser' key.

The default value about this key is "jakarta" but no jakarta class exist.

I created a new file strusts.properties (as said in this page 
http://cwiki.apache.org/WW/handling-file-uploads.html) whith this option :

struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest

And I downloaded commons-fileupload-1.2.jar and commons-io-1.3.1.jar packages.

And i have no error now ...

Can i add warning message in this page (http://cwiki.apache.org/WW/file.html) 
to alert about the obligation of download commons-fileupload and commons-io ?

Cordially

-- 
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