看来这是Glassfish中的错误:GLASSFISH-21265
您可以尝试通过添加要解决这个问题
metadata-complete="true"你
web.xml是这样的:
<?xml version="1.0" encoding="UTF-8"?><web-app version="3.1" metadata-complete="true" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"></web-app>
metadata-complete =“ true”表示不需要扫描/ WEB-INF / lib中的JAR文件以获得Servlet
3.0特定注释,但是仍将扫描webapp自己的类。



