Org. apache. shiro. web. servlet. ShiroHttpServletRequest cannot be cast to org. springframwork. web. mult..., httpservletrequest

Source: Internet
Author: User

Org. apache. shiro. web. servlet. ShiroHttpServletRequest cannot be cast to org. springframwork. web. mult..., httpservletrequest

Error reported when uploading files with dwz framework + spring MVC

The specific error is as follows:

 

 

It is actually a type conversion error, but after studying it for a long time, I don't know where it is wrong, because I unload a file before and upload it almost like this, that's no problem.

Solution: in fact, there are two reasons for this error: one is the form attribute, and the other is File Upload. The form type must be formdata. Of course I didn't make this error.

However, when I used breakpoint debugging, I found that the type received by the background is not formdata, which is strange. Is there any inexplicable connection between this form and other things ?? Okay,

In the evening, I am no longer in circles, so I am stuck with Zzzzzzzz .. The final problem was found to be the callback function. The file to be uploaded must be used with the callback function related to the file to be uploaded. Strange to say,

The callback function should be completed in the background. I don't know why an error is reported before uploading. In short, the solution is good. I hope to give a prompt to anyone who has encountered the same problem.


OrgapachecxftransportservletCXFServlet cannot be cast to javaxservletServlet

Whether it is a jar package conflict.
Geronimo-servlet_2.5_spec-1.2.jar

.
Hope to help you.

When tomcat is started, the following error occurs: cannot be cast to javaxservletFilter.

The jar package conflicted. Check that there are duplicate jar packages under lib and delete a lower version!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.