restful webservice 出错

qq_31004891 2015-09-02 09:56:13
出现以下错误 该怎么解决
九月 02, 2015 9:58:16 上午 com.sun.jersey.api.core.ClasspathResourceConfig init
信息: Scanning for root resource and provider classes in the paths:
C:\Program Files\Java\jdk1.7.0_79\jre\lib\charsets.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\deploy.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\javaws.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\jce.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\jfr.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\jfxrt.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\jsse.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\management-agent.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\plugin.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\resources.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\access-bridge.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\dnsns.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\jaccess.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\localedata.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\sunec.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\sunjce_provider.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\sunmscapi.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\sunpkcs11.jar
C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext\zipfs.jar
C:\Users\DATAPARK03\IdeaProjects\restful_test\out\production\restful_test
C:\Users\DATAPARK03\Desktop\source库\jersey-archive-1.19\lib\jersey-core-1.19.jar
C:\Users\DATAPARK03\Desktop\source库\lib\javax.ws.rs-api-2.0.jar
C:\Users\DATAPARK03\Desktop\source库\lib\jersey-server.jar
C:\Users\DATAPARK03\Desktop\source库\lib\jersey-bundle-1.8.jar
C:\Users\DATAPARK03\Desktop\source库\asm-3.3.1.jar\asm-3.3.1.jar
C:\Users\DATAPARK03\Desktop\source库\lib\jersey-client.jar
C:\Users\DATAPARK03\Desktop\source库\lib\jersey-container-servlet-core.jar
C:\Users\DATAPARK03\Desktop\source库\lib\jersey-container-servlet.jar
C:\Users\DATAPARK03\Desktop\source库\lib\jersey-common.jar
C:\Users\DATAPARK03\IdeaProjects\restful_test
C:\Users\DATAPARK03\Desktop\source库\jackson-annotations-2.2.3.jar
C:\Users\DATAPARK03\Desktop\source库\jackson-core-2.2.3 (1).jar
C:\Users\DATAPARK03\Desktop\source库\jackson-databind-2.2.3.jar
E:\Intellij IDEN14.1\IntelliJ IDEA 14.1.4\lib\idea_rt.jar
Exception in thread "main" java.lang.IllegalAccessError: tried to access method com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoader()Ljava/lang/ClassLoader; from class com.sun.jersey.spi.scanning.AnnotationScannerListener
at com.sun.jersey.spi.scanning.AnnotationScannerListener.<init>(AnnotationScannerListener.java:89)
at com.sun.jersey.spi.scanning.PathProviderScannerListener.<init>(PathProviderScannerListener.java:59)
at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79)
at com.sun.jersey.api.core.ClasspathResourceConfig.init(ClasspathResourceConfig.java:119)
at com.sun.jersey.api.core.ClasspathResourceConfig.<init>(ClasspathResourceConfig.java:101)
at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:263)
at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:246)
at com.sun.jersey.api.container.httpserver.HttpServerFactory.create(HttpServerFactory.java:117)
at com.sun.jersey.api.container.httpserver.HttpServerFactory.create(HttpServerFactory.java:92)
at example.HelloWorld.main(HelloWorld.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
...全文
103 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_31004891 2015-09-02
  • 打赏
  • 举报
回复
顶起,等待大牛的回答!

50,565

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧