Although using Jetty Run does indeed work around the

   java.lang.NoClassDefFoundError:
   org/apache/tapestry5/corelib/components/Loop$1

issue, and allows simple pages to work, another problem raises its head when you go anywhere near the datastore.

Caused by: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java:62) at com.google.appengine.api.datastore.KeyTranslator.convertToPb(KeyTranslator.java:55)
....

This is most likely because using Jetty Run circumvents some App Engine shenanigans that the App Engine plugin launcher does that is necessary to provide the right environment (possible some TLS by the look of it).

I suspect that we're going to have to go back to trying to understand what causes the failure to find the Loop$1 class.

Mike


ஸ்ரீராம் கீர்த்தி wrote:
Hedinges,
I did it this way.

(1) Create a google app engine application using the eclipse plugin
(2) Add tapestry-core, annotations, ioc, sl4j, log4j and all needed jars to
the war/WEB-INF/lib folder
(3) Write your tapestry helloworld program as you like (make sure you
changed the web.xml to include tapestry filter)

The above steps are common and you would have done it as well. Now if you
run this application now as a google web application (run as/debug as>google
web application), you will get the error that you posted.

Instead use jetty launcher and configure the webapp folder path to your
'war' folder path... now launch your app in jetty and everything will work
fine. Since it is still a google app engine project in eclipse, you can use
the eclipse plugin to upload it to your.appspot.com

- keerthy

On Sun, Apr 26, 2009 at 9:20 PM, hedinges <xcos...@gmail.com> wrote:

Are there any updates about this error?

I am also trying to setup tapestry 5.0.18 on GAE but I am stuck with the
same error.


java.lang.NoClassDefFoundError:
org/apache/tapestry5/corelib/components/Loop$1
       at
org.apache.tapestry5.corelib.components.Loop.<clinit>(Loop.java:42)
       at


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to