play.exceptions.CompilationException: The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)

656 views
Skip to first unread message

sleepless

unread,
Oct 15, 2011, 11:00:28 AM10/15/11
to play-fr...@googlegroups.com
Hi,
I'm using Play 1.2.3 with the GWT2 module (version 1.8).  I had to use the apache commons library for Base64 encode/decode operations.  The Base64 class is also available in GWT, so I changed the .classpath to order  apache-commons before GWT.  This works fine in eclipse.  However, when I run the project, I get an exception like this -

Compilation error (In /app/jobs/AppInfoQueryJob.java around line 101)
The file /app/jobs/AppInfoQueryJob.java could not be compiled. Error raised is : The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)

play.exceptions.CompilationException: The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)
    at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
    at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:656)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:496)
    at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
    at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:412)
    at play.Play.start(Play.java:485)
    at play.Play.detectChanges(Play.java:599)
    at play.Invoker$Invocation.init(Invoker.java:186)
    at Invocation.HTTP Request(Play!)

I suspect the classpath is being used from a different location than the .classpath file that eclipse uses.  Could someone please tell me how to set the classpath for use in "play run" or "play start" commands?

Thanks
Sleepless

Brian Nesbitt

unread,
Oct 17, 2011, 11:51:55 PM10/17/11
to play-fr...@googlegroups.com
The classpath gets constructed in the framework\pym\play\application.py in the function "getClasspath()".

The order they get put onto the classpath is:
conf directory
framework/play-version.jar
yourapproot/lib
modules "lib" dirs
framework/lib
Reply all
Reply to author
Forward
0 new messages