Modules error on Play 1.0.2 RC1

34 views
Skip to first unread message

Ω Alisson

unread,
Mar 26, 2010, 1:43:38 PM3/26/10
to play-fr...@googlegroups.com
I've downloaded Play 1.0.2 RC1, set my project with netbeansify command and ran "play install pdf", then I added module.pdf=${play.path}/modules/pdf-head to my application.conf and added "import static play.modules.pdf.PDF.*;" to my controller(in this step, Netbeans also detects the module, autocompleting its name), then I started play webserver, it says the pdf module was loaded. But when I try to access anything in my app I receive this error:


Compilation error

The file /app/controllers/Projetos.java could not be compiled. Error raised is : play.modules.pdf.PDF cannot be resolved


The server log outputs this:

@621oao0nb

Internal Server Error (500) for request GET /


Compilation error (In /app/controllers/Projetos.java around line 11)

The file /app/controllers/Projetos.java could not be compiled. Error raised is : play.modules.pdf.PDF cannot be resolved


play.exceptions.JavaCompilationException: Only a type can be imported. play.modules.pdf.PDF resolves to a package

        at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:240)

        at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:551)

        at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:409)

        at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:271)

        at play.classloading.ApplicationClasses$ApplicationClass.compile(ApplicationClasses.java:253)

        at play.classloading.ApplicationClassloader.detectChanges(ApplicationClassloader.java:250)

        at play.Play.detectChanges(Play.java:465)

        at play.Invoker$Invocation.init(Invoker.java:98)

        at Invocation.HTTP Request(Play!)

Nicolas Leroux

unread,
Mar 26, 2010, 1:47:57 PM3/26/10
to play-fr...@googlegroups.com, play-fr...@googlegroups.com
I will have a look, you are the second person to report this big but I have not been able to reproduce it yet. 


Nicolas Leroux
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Ω Alisson

unread,
Mar 26, 2010, 1:55:08 PM3/26/10
to play-fr...@googlegroups.com
Maybe it's something related to Play! JDT

2010/3/26 Nicolas Leroux <nic...@lunatech.com>

Guillaume Bort

unread,
Mar 26, 2010, 2:22:36 PM3/26/10
to play-fr...@googlegroups.com
Do you make this test on Windows?

Ω Alisson

unread,
Mar 26, 2010, 2:30:34 PM3/26/10
to play-fr...@googlegroups.com
No, I'm running Archlinux 

2010/3/26 Guillaume Bort <guillau...@gmail.com>

Nicolas Leroux

unread,
Mar 26, 2010, 2:53:43 PM3/26/10
to play-fr...@googlegroups.com
Which version of java are you using?

Thanks

Nicolas

Ω Alisson

unread,
Mar 26, 2010, 2:54:39 PM3/26/10
to play-fr...@googlegroups.com
Eureka! this new precompile command solves my issue :)

2010/3/26 Ω Alisson <thelin...@gmail.com>
Reply all
Reply to author
Forward
0 new messages