Play框架不会在os x mac上启动

时间:2012-01-02 11:56:28

标签: java macos playframework openjdk

我正在玩Play框架,这似乎很好。 当我托盘启动示例应用程序在Mac 10.6.8 java版本1.6_29我发现以下错误: 啊!我也试过openjdk 1.7,但同样的错误。 PLS。帮助我尝试了2天没有成功。我托盘在linux机器上,一切都很好,但我的开发机器是os x THKS。 克萨韦尔

Listening for transport dt_socket at address: 8000
12:33:13,841 INFO  ~ Starting /Users/xaver/Documents/play-1.2.4/samples-and-tests/yabe
12:33:13,845 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.crud)
12:33:13,859 INFO  ~ Module crud is available (/usr/local/Cellar/play/1.2.4/libexec/modules/crud)
12:33:13,859 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.secure)
12:33:13,860 INFO  ~ Module secure is available (/usr/local/Cellar/play/1.2.4/libexec/modules/secure)
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getErrors()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;
    at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:238)
    at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:484)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:346)
    at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:282)
    at play.classloading.ApplicationClasses$ApplicationClass.compile(ApplicationClasses.java:277)
    at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:164)
    at play.classloading.ApplicationClassloader.loadClass(ApplicationClassloader.java:84)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at play.plugins.PluginCollection.loadPlugins(PluginCollection.java:158)
    at play.Play.init(Play.java:294)
    at play.server.Server.main(Server.java:158)

2 个答案:

答案 0 :(得分:1)

您的依赖项之间存在问题,请尝试

dependencies.yml

   - net.sf.jasperreports -> jasperreports 4.6.0:
            exclude :
              - eclipse -> *

如果它引起任何问题,请尝试

   - net.sf.jasperreports -> jasperreports 4.6.0:
            transitive: false

答案 1 :(得分:0)

如果您从eclipse运行,请尝试在项目中重新运行 play eclipsify 命令,然后将其从eclipse中删除并重新导入。