I build a lift project with this command:
mvn archetype:generate -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic \
-DarchetypeVersion=2.0-scala280-SNAPSHOT \
-DarchetypeRepository=http://scala-tools.org/repo-snapshots \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=demo.helloworld \
-DartifactId=helloworld \
-Dversion=1.0-SNAPSHOT
When I run `mvn jetty:run, it works. Then I create this configuration file (helloworld/src/main/webapp/WEB-INF/appengine-web.xml):
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>MY_APPLICATION-ID</application>
<version>3</version>
<system-properties>
<property name="in.gae.j" value="true" />
</system-properties>
<sessions-enabled>true</sessions-enabled>
<static-files>
<exclude path="/**" />
</static-files>
</appengine-web-app>
Then I run this command: mvn package
When I run dev_appserver.sh helloworld/target/helloworld-1.0-SNAPSHOT
, it works in my browser.
Then, I upload to Google App Engine server with: appcfg.sh update helloworld/target/helloworld-1.0-SNAPSHOT
and I get: Update completed successfully.
Success.
.
But when I go to http://MY_APPLICATION-ID.appspot.com/ I get a 500 server error:
Error: Server Error The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
Why?