我认为jboss容器提供了resteasy,因此我第一次没有将它放入maven pom依赖中。
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>2.2.1.GA</version>
<scope>provided</scope>
</dependency>
然而它失败了。我从pom文件中删除了scope标记后,它工作了。我已经检查了war包中的resteasy-jaxrs与jboss模块目录中的相同。
Directory of D:\GreenProgram\jboss-as-7.0.2.Final\modules\org\jboss\resteasy\resteasy-jaxrs\main
2017/04/12 13:35 <DIR> .
2017/04/12 13:35 <DIR> ..
2011/09/22 22:35 1,856 module.xml
2011/09/22 22:35 5,865 resteasy-jaxrs-2.2.1.GA-jandex.jar
2017/04/12 13:35 10 resteasy-jaxrs-2.2.1.GA-jandex.jar.index
2011/09/22 22:35 576,962 resteasy-jaxrs-2.2.1.GA.jar
2017/04/12 13:35 1,379 resteasy-jaxrs-2.2.1.GA.jar.index
5 File(s) 586,072 bytes
2 Dir(s) 126,404,255,744 bytes free
任何专家都可以帮我理解jboss模块机制吗?