When I've tried to deploy a war in glassfish (4.1), I have this error:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'multipart-config'. One of '{"http://java.sun.com/xml/ns/j2ee":run-as, "http://java.sun.com/xml/ns/j2ee":security-role-ref}' is expected.
Looking in the web.xml file, has a error right on the line of multi-part config, where I reproduce bottom:
<multipart-config>
<max-file-size>10485760</max-file-size>
<max-request-size>20971520</max-request-size>
<file-size-threshold>5242880</file-size-threshold>
</multipart-config>
Someone could help me with this?
I'm using the multipart in a jsp page.
Thanks
Sergio