就在http://json-lib.sourceforge.net下载的包。我用测试的时候可以通过测试,我启动项目也没问题,就是访问的时候包错: play.exceptions.CompilationException: net.sf.json.JSONArray cannot be resolved at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246) at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:672) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:516) at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278) at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:416) at play.Play.start(Play.java:416) at play.Play.detectChanges(Play.java:533) at play.Invoker$Invocation.init(Invoker.java:100) at Invocation.HTTP Request(Play!)
commons-logging.jar,
commons-lang.jar,
commons-collections.jar,
json.jar,
commons-beanUtils.jar,
ezmorph.jar
检查是否存在缺失。。
play.exceptions.CompilationException: net.sf.json.JSONArray cannot be resolved
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:672)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:516)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:416)
at play.Play.start(Play.java:416)
at play.Play.detectChanges(Play.java:533)
at play.Invoker$Invocation.init(Invoker.java:100)
at Invocation.HTTP Request(Play!)