我很难弄清楚我遇到的问题。我无法在 Tomcat 6 上部署使用 Jersey 2.3.1 的 JAX-RS Web 服务。
我使用 Eclipse 3.8.2 并通过单击我的“项目 -> 运行方式 -> 在服务器上运行”来部署我的 Jersey 2.3.1 Web 服务,但出现以下异常。
Oct 08, 2013 3:42:29 PM org.glassfish.jersey.server.ApplicationHandler initialize
INFO: Initiating Jersey application, version Jersey: 2.3.1 2013-09-27 07:50:09...
Oct 08, 2013 3:42:29 PM org.glassfish.jersey.internal.Errors logErrors
WARNING: The following warnings have been detected: WARNING: HK2 service reification failed for [org.glassfish.jersey.server.internal.inject.WebTargetValueFactoryProvider] with an exception:
MultiException stack 1 of 4
java.lang.NoClassDefFoundError: org/glassfish/jersey/client/ClientConfig
...
MultiException stack 4 of 4
java.lang.IllegalArgumentException: Errors were discovered while reifying SystemDescriptor(
implementation=org.glassfish.jersey.server.internal.inject.WebTargetValueFactoryProvider
contracts={org.glassfish.jersey.server.spi.internal.ValueFactoryProvider}
scope=javax.inject.Singleton
qualifiers={}
descriptorType=CLASS
descriptorVisibility=NORMAL
metadata=
rank=0
loader=org.glassfish.hk2.utilities.binding.AbstractBinder$2@1c756a8
proxiable=null
proxyForSameScope=null
analysisName=null
id=25
locatorId=0
identityHashCode=677756
reified=false)
知道我的配置有什么问题吗?谢谢!!