Unable to scan WEB-INF for JAX-RS annotations

来源:互联网 发布:php thinkphp 编辑:程序博客网 时间:2024/05/21 23:49
严重: Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap

java.lang.RuntimeException: Unable to scan WEB-INF for JAX-RS annotations, you must manually register your classes/resources

因为web.xml配置了

        <listener>
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
</listener>

所以,出现这种错误,就是因为缺resteasy-jaxrs-2.3.3.Final.jar,添上就好了

居然还搞了半天才解决,贴在这里当做警告

配置后的工程开发环境:

jackson-core-asl-1.9.13.jar
jackson-jaxrs-1.9.13.jar
jackson-mapper-asl-1.9.13.jar
javassist-3.11.0.GA.jar
jaxrs-api-2.3.1.GA.jar
resteasy-jaxrs-2.3.1.GA.jar
scannotation-1.0.3.jar
servlet-api.jar

jre6

用jackson-core-asl-1.9.12.jar不能正常启动,必须1.9.13

0 0
原创粉丝点击