ClassNotFound Exception when configuring RestEasy

青春壹個敷衍的年華 提交于 2019-12-07 01:17:45

Never mind, just deleted the resteasy-cdi-2.1.0.GA.jar and the problem disappeared, I just hope this jar won't cause me problems in the future.

This is a known bug. You have to include javax.inject in your maven dependencies:

<dependency>
  <groupId>javax.inject</groupId>
  <artifactId>javax.inject</artifactId>
  <version>1</version>
  <scope>test</scope>
</dependency>

The test scope is optional.

See https://issues.jboss.org/browse/ARQ-157 for more information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!