xaverras
xaverras

Reputation: 2937

Play framework doesnt start on os x mac

I'm playing with the play framework, which seems quite fine. When I tray to start a sample application On Mac 10.6.8 java version 1.6_29 I recive the following error: Ah! I tryed also whith the openjdk 1.7, but the same error. Pls. Help I'm trying for 2 day without success. I trayed on a linux machine and everything is fine, but my developpment machine is os x Thks. Xaver

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)

Upvotes: 2

Views: 851

Answers (2)

Javier Gutierrez
Javier Gutierrez

Reputation: 559

There is a problem between your dependencies try it

dependencies.yml

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

If it cause you any problem try

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

Upvotes: 1

emt14
emt14

Reputation: 4896

If you are running from eclipse try to rerun the play eclipsify command on your project then delete it from eclipse and reimport it.

Upvotes: 0

Related Questions