Also since GAE doesn't use something like maven to build/manage, I have to manually collect all necessary jar files and add it to the classpath (/war/WEB-INF/lib) and then run the application.
- keerthy 2009/4/11 ஸ்ரீராம் கீர்த்தி <sriramkeer...@gmail.com> > Yes Robert. And I use jetty launcher plugin in eclipse to run my app. > > I had some issues when I changed my app to use 5.1.0.3 from 5.0.18. I had > to turn off gzip, whitespace etc. But the application is running fine. > > - keerthy > > > On Sat, Apr 11, 2009 at 11:07 PM, Robert Zeigler <robe...@scazdl.org>wrote: > >> Interesting; looks like it's not finding an anonymous class within Loop >> (as near as I can tell from the stack traces). >> >> I'm assuming the answer is yes, but, just to be certain, this simple app >> runs correctly when you run it locally, eg, via maven jetty:run? (Just to be >> sure, before we go blaming the GAE/tapestry interaction... :) >> >> Robert >> >> >> On Apr 11, 2009, at 4/1111:59 AM , ஸ்ரீராம் கீர்த்தி wrote: >> >> Robert, >>> >>> The exception that I posted couple of mails back was my mistake. I had >>> not >>> included stax and woodstox jars in my classpath. Now I have added all the >>> necessary jars to the lib folder. I have put tapestry-core, annotations >>> and >>> ioc jars to the path. >>> >>> Now I am getting back the exception: (happens bot in 5.1.0.3 and 5.1.0.4) >>> java.lang.NoClassDefFoundError: Could not initialize class >>> org.apache.tapestry5.corelib.components.Loop >>> at >>> $Instantiator_12096165961.newInstance($Instantiator_12096165961.java) >>> at >>> >>> org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.(InternalComponentResourcesImpl.java:132) >>> ... >>> >>> All I have tried to do is display a page property and place a page link - >>> --------- Start.tml ----------- >>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> >>> <head> >>> <title>Home</title> >>> </head> >>> <body> >>> This start page was generated at ${generationTime} >>> <a href="#" t:type="pagelink" t:page="Welcome">Welcome Page</a> >>> </body> >>> </html> >>> ----------- Welcome.tml ----------- >>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> >>> <head> >>> <title>Home</title> >>> </head> >>> <body> >>> The welcome message : ${welcomeMessage} >>> <a href="#" t:type="pagelink" t:page="Start">Go Back to Start Page</a> >>> </body> >>> </html> >>> >>> I am not even sure if anything has changed in .tml format since 5.0.18 >>> >>> - keerthy >>> 2009/4/11 ஸ்ரீராம் கீர்த்தி <sriramkeer...@gmail.com> >>> >>> Robert, >>>> >>>> Apparently there are new dependencies like woodstox, stax added to >>>> 5.1.0.x. >>>> I didn't copy these jars to my GAE app's lib folder. Let me try again >>>> probably with 5.1.0.4 and let you know. >>>> >>>> - keerthy >>>> >>>> >>>> On Sat, Apr 11, 2009 at 8:24 PM, Robert Zeigler <robe...@scazdl.org >>>> >wrote: >>>> >>>> Have you tried 5.1.0.4-SNAPSHOT? >>>>> >>>>> Robert >>>>> >>>>> >>>>> On Apr 11, 2009, at 4/117:23 AM , ஸ்ரீராம் கீர்த்தி wrote: >>>>> >>>>> Hi Jun, >>>>> >>>>>> >>>>>> I tried to integrate Tapestry in a Google App Engine (GAE) project in >>>>>> my >>>>>> local eclipse environment. I also got the same error in >>>>>> corelib.components.Loop. >>>>>> >>>>>> I then proceeded to download Tapestry-5.1.0.3 snapshot release and >>>>>> tried >>>>>> it in my GAE project. It now gives an exception in Template Parser >>>>>> >>>>>> Exception constructing service 'TemplateParser': Error invoking >>>>>> constructor >>>>>> org.apache.tapestry5.internal.services.TemplateParserImpl(Map, >>>>>> boolean) (at TemplateParserImpl.java:50) via >>>>>> >>>>>> org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder) >>>>>> (at InternalModule.java:65) (for service 'TemplateParser'): >>>>>> org/codehaus/stax2/XMLInputFactory2 >>>>>> RequestURI=/ >>>>>> >>>>>> Caused by: >>>>>> >>>>>> java.lang.RuntimeException: Exception constructing service >>>>>> 'TemplateParser': Error invoking constructor >>>>>> org.apache.tapestry5.internal.services.TemplateParserImpl(Map, >>>>>> boolean) (at >>>>>> TemplateParserImpl.java:50) via >>>>>> >>>>>> org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder) >>>>>> (at InternalModule.java:65) (for service 'TemplateParser'): >>>>>> org/codehaus/stax2/XMLInputFactory2 >>>>>> >>>>>> the ultimate exception in the trace was : >>>>>> >>>>>> java.lang.NoClassDefFoundError: org/codehaus/stax2/XMLInputFactory2 >>>>>> at >>>>>> >>>>>> org.apache.tapestry5.internal.services.TemplateParserImpl.(TemplateParserImpl.java:44) >>>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >>>>>> Method) >>>>>> ... >>>>>> >>>>>> I've attached the full exception trace with the mail. Please let me >>>>>> know >>>>>> if you were able to deploy tapestry successfully in a GAE project with >>>>>> version 5.1.0.3. >>>>>> >>>>>> Did anybody do it successfully? Seems like JSF, wicket etc have >>>>>> started >>>>>> deploying applications successfully in GAE. >>>>>> >>>>>> http://groups.google.com/group/google-appengine-java/browse_thread/thread/2c3f7de6aacdc69f/60d81103be8aee51?lnk=raot >>>>>> >>>>>> - keerthy >>>>>> >>>>>> On Thu, Apr 9, 2009 at 10:45 AM, Jun Tsai <jun.t...@gmail.com> wrote: >>>>>> The real exception: >>>>>> >>>>>> [java] Caused by: java.lang.ClassNotFoundException: caught an >>>>>> exception >>>>>> while obtaining a class file for >>>>>> org.apache.tapestry5.corelib.components.Loop$1 >>>>>> [java] at javassist.Loader.findClass(Loader.java:359) >>>>>> [java] at >>>>>> >>>>>> >>>>>> org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:94) >>>>>> [java] at javassist.Loader.loadClass(Loader.java:311) >>>>>> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >>>>>> [java] at >>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>>>>> [java] ... 77 more >>>>>> [java] Caused by: javassist.NotFoundException: >>>>>> org.apache.tapestry5.corelib.components.Loop$1 >>>>>> [java] at javassist.ClassPool.get(ClassPool.java:436) >>>>>> [java] at >>>>>> >>>>>> >>>>>> org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.onLoad(ComponentInstantiatorSourceImpl.java:197) >>>>>> [java] at javassist.Loader.findClass(Loader.java:340) >>>>>> [java] ... 81 more >>>>>> >>>>>> <tapestry-5.1.0.3-exception.txt> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>>>> >>>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>>> >>>>> >>>>> >>>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >