Tag: simplehttpserver

Jersey restful service communication(IncompatibleClassChangeError)

我在JDK 1.6 http服务器上创建了一个基于jersey 1.12的宁静服务门面。 当我在eclipse中启动我的应用程序时,一切正常。 我可以毫无困难地与外观进行通信,但是当我使用启动脚本通过控制台启动应用程序时,我在访问服务时遇到了IncompatibleClassChangeError。 我能够缩小问题的范围。 问题在于发送响应。 因为我可以正常地与服务通信(处理请求)但我没有得到回复。 你有什么线索吗? 启动脚本 #!/usr/bin/env bash libpath= for i in $(ls lib/*|grep “.jar”); do libpath=$( echo “$i:$libpath”); done java -cp “$(echo $libpath)build/jar/myjar.jar” org…..Startup 将被抛出的exception WARNUNG: Class org….facade.ServiceFacadeImpl is ignored as an instance is registered in the set of singletons Call getMutationList: NP_005378 Exception in thread “pool-1-thread-1” java.lang.IncompatibleClassChangeError: Class […]