开发者

maven - strange class not found exception

Hy,

I have a maven project.

mvn clean install

works perfect.

When deploying on my jboss server i receive 开发者_运维问答this strange error:

Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: javax.ws.rs.core.Response
    at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
    at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
    at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 93 more

I've checked if artifact exists and it's there.

C:\Users\Cristian.m2\repository\org\jboss\resteasy\jaxrs-api\2.0-beta-4\

Does anyone have a work-around for this problem?


Your dependecy isn't in the deployed application. You may have to change the "provided" scope to "compile"


Resources :

  • Maven - Dependecy scope
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜