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!