Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gae plugin deploy doesn't work with --gae option #9

Closed
alexlehm opened this issue Nov 5, 2010 · 5 comments
Closed

gae plugin deploy doesn't work with --gae option #9

alexlehm opened this issue Nov 5, 2010 · 5 comments

Comments

@alexlehm
Copy link

alexlehm commented Nov 5, 2010

Please include as much relevant information as possible including the exact framework version you're using and a code snippet that reproduces the problem.

Framework version: play 1.1rc3
Platform you're using: windows xp, java 1.6.0-22

Reproduction steps:

when I execute
play gae:deploy --gae \path
I get a java.lang.NoClassDefFoundError error, when executing
play gae:deploy
without the parameter it works (the path comes from the GAE_PATH)

The path is passed to the java command at the wrong position before the -classpath option

Details:

Output without the option (I have put print java_cmd before it is being run in the python script):

C:\projects\play\testapp>play gae:deploy
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.1RC3, http://www.playframework.org
~
C:\javatools\appengine-java-sdk-1.3.8
~
~ Compiling
~ ---------
['C:\\Programme\\Java\\jdk1.6.0_21\\bin\\java', '-javaagent:C:\\javatools\\play-
1.1RC3\\framework/play.jar', '-Dprecompile=yes', '-classpath', 'C:\\projects\\pl
ay\\testapp\\conf;C:\\javatools\\play-1.1RC3\\framework\\play.jar;C:\\javatools\
...
 '-Dplay.id=', 'play.server.Server', '']
00:34:13,453 INFO  ~ Starting C:\projects\play\testapp
00:34:13,468 INFO  ~ Module siena is available (C:\javatools\play-1.1RC3\modules
\siena-1.3)
00:34:13,468 INFO  ~ Module gae is available (C:\javatools\play-1.1RC3\modules\g
ae-head)

the log with the path option:

C:\projects\play\testapp>play gae:deploy --gae \javatools\appengine-java-sdk-1.3
.8
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.1RC3, http://www.playframework.org
~
C:\javatools\appengine-java-sdk-1.3.8
~
~ Compiling
~ ---------
['C:\\Programme\\Java\\jdk1.6.0_21\\bin\\java', '-javaagent:C:\\javatools\\play-
1.1RC3\\framework/play.jar', '-Dprecompile=yes', '\\javatools\\appengine-java-sd
k-1.3.8', '-classpath', 'C:\\projects\\play\\testapp\\conf;C:\\javatools\\play-1
...
cation.path=C:\\projects\\play\\testapp', '-Dplay.id=', 'play.server.Server', ''
]
Exception in thread "main" java.lang.NoClassDefFoundError: \javatools\appengine-
java-sdk-1/3/8
Caused by: java.lang.ClassNotFoundException: \javatools\appengine-java-sdk-1.3.8

        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: \javatools\appengine-java-sdk-1.3.8.  Program wil
l exit.
~
~ Packaging
@wangyizhuo
Copy link

I have the same problem. Environment:
Ubuntu 10.10
Play 1.1
GAE module 1.1

@stephanedeluca
Copy link

same for me with java sdk 1.4.2, play 1.4.1, gae 1.4.2

@leeclarke
Copy link

I have this working with play 1.1 on WindowsXP. There are 2 possible reasons this works for me.

  1. I am running everything in Mingw32 ( if your committing on windows you probably use it for git)
  2. (More likely) there should be an = after gae Like this: play gae:deploy --gae=/c/devTools/appengine-java-sdk-1.4.3/

Hope that helps!

@alexlehm
Copy link
Author

using the option with = does the trick for me

@alexlehm
Copy link
Author

alexlehm commented May 7, 2011

example is fixed in gae-1.4 documentation, commit cf9879a

@alexlehm alexlehm closed this as completed May 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants