Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B8ADB187 for ; Wed, 4 Jan 2012 21:32:16 +0000 (UTC) Received: (qmail 776 invoked by uid 500); 4 Jan 2012 21:32:15 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 753 invoked by uid 500); 4 Jan 2012 21:32:15 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 745 invoked by uid 99); 4 Jan 2012 21:32:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 21:32:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of daniel.watrous@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-tul01m020-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 21:32:10 +0000 Received: by obcwp18 with SMTP id wp18so17833212obc.32 for ; Wed, 04 Jan 2012 13:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=7jaBNBlA0vXSJFdQmb559VjApJHydEGxLuOu0s/0/qU=; b=OyYzcFVyy2AYqxw+uieG6fM4RvvL5la1sfMZsnlgyMIgAjfMCRUTuOhZWesAD2VPNz vlqTIUk6MWtSttBTOYGYB7WeMBfL4oocNrcGLgOhfuRnqj18Aulfv+euCRcGVICEISNq skvdIytOFini3aqIop27o9kCbEoHyOulFCgbM= Received: by 10.182.193.41 with SMTP id hl9mr49052406obc.44.1325712710082; Wed, 04 Jan 2012 13:31:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.122.98 with HTTP; Wed, 4 Jan 2012 13:31:29 -0800 (PST) In-Reply-To: <4F04B8AF.7010502@meiers.net> References: <4F049CAE.6070907@meiers.net> <4F04B270.4070003@meiers.net> <4F04B8AF.7010502@meiers.net> From: Daniel Watrous Date: Wed, 4 Jan 2012 14:31:29 -0700 Message-ID: Subject: Re: Wicket on Google App Engine To: users@wicket.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Great. I now have it working with either the jar download or the dependency in the pom.xml file. In the dependency xml snippet I didn't realize that I needed to manually provide the version, but after I did then it worked fine. Whenever I update a class and save it in Eclipse, that class is updated in the running server and I don't have to restart to see the changes. This is great. However, when I change an HTML page, it's not updated in the running server, so I have to restart everything. I know that when I run a quickstart app directly (using the Start class) that updates to the HTML are updated without requiring a restart. Do you know how to make it so the HTML files are updated in the live server= ? Thanks so much. Daniel On Wed, Jan 4, 2012 at 1:38 PM, Sven Meier wrote: > With maven it's very easy, just add the dependency to your pom as suggest= ed > and forget about it. > > Alternatively you can download the jar form maven central manually and ad= d > it to your project: > > > =A0http://repo2.maven.org/maven2/org/wicketstuff/wicketstuff-gae-initiali= zer/ > > Hope this helps > Sven > > > On 01/04/2012 09:28 PM, Daniel Watrous wrote: >> >> I'm still not sure how to create the jar file. No one is commenting on >> it so I feel a bit silly. Should it be obvious? >> >> Am I supposed to include the source with my project or a jar. If a >> jar, how should I build the jar? >> >> On Wed, Jan 4, 2012 at 1:11 PM, Sven Meier =A0wrote: >>> >>> Hi, >>> >>> make sure you have compatible versions for Wicket and gae-initializer, >>> i.e. >>> they should be the same. >>> >>> Sven >>> >>> >>> >>> On 01/04/2012 08:49 PM, Daniel Watrous wrote: >>>> >>>> I'm slowly making progress. >>>> >>>> I see now that what Sven replied with goes in the pom.xml. >>>> >>>> What I'm not sure of is if I still need a jar file or the source as >>>> part of my project. I have made the update to my pom.xml, and I'm now >>>> getting this error when I attempt to run my application: >>>> >>>> java.lang.NoClassDefFoundError: >>>> org/apache/wicket/pageStore/memory/IDataStoreEvictionStrategy >>>> =A0 =A0 =A0 =A0at java.lang.Class.getDeclaredConstructors0(Native Meth= od) >>>> =A0 =A0 =A0 =A0at java.lang.Class.privateGetDeclaredConstructors(Unkno= wn Source) >>>> =A0 =A0 =A0 =A0at java.lang.Class.getConstructor0(Unknown Source) >>>> =A0 =A0 =A0 =A0at java.lang.Class.getDeclaredConstructor(Unknown Sourc= e) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.agent.runtime.Runtime$2.run(Run= time.java:133) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.agent.runtime.Runtime$2.run(Run= time.java:131) >>>> =A0 =A0 =A0 =A0at java.security.AccessController.doPrivileged(Native M= ethod) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.agent.runtime.Runtime.newInstan= ce(Runtime.java:130) >>>> =A0 =A0 =A0 =A0at >>>> >>>> org.apache.wicket.util.lang.WicketObjects.newInstance(WicketObjects.ja= va:377) >>>> =A0 =A0 =A0 =A0at >>>> org.apache.wicket.Application.addInitializer(Application.java:577) >>>> =A0 =A0 =A0 =A0at org.apache.wicket.Application.load(Application.java:= 615) >>>> =A0 =A0 =A0 =A0at >>>> org.apache.wicket.Application.initializeComponents(Application.java:50= 1) >>>> =A0 =A0 =A0 =A0at >>>> org.apache.wicket.Application.initApplication(Application.java:808) >>>> =A0 =A0 =A0 =A0at >>>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:34= 6) >>>> =A0 =A0 =A0 =A0at >>>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:28= 6) >>>> =A0 =A0 =A0 =A0at >>>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) >>>> =A0 =A0 =A0 =A0at >>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:5= 0) >>>> =A0 =A0 =A0 =A0at >>>> >>>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.jav= a:662) >>>> =A0 =A0 =A0 =A0at >>>> org.mortbay.jetty.servlet.Context.startContext(Context.java:140) >>>> =A0 =A0 =A0 =A0at >>>> >>>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java= :1250) >>>> =A0 =A0 =A0 =A0at >>>> >>>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:5= 17) >>>> =A0 =A0 =A0 =A0at >>>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) >>>> =A0 =A0 =A0 =A0at >>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:5= 0) >>>> =A0 =A0 =A0 =A0at >>>> >>>> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:1= 30) >>>> =A0 =A0 =A0 =A0at >>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:5= 0) >>>> =A0 =A0 =A0 =A0at >>>> >>>> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:1= 30) >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.Server.doStart(Server.java:224) >>>> =A0 =A0 =A0 =A0at >>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:5= 0) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.JettyContainerService.startCont= ainer(JettyContainerService.java:191) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.AbstractContainerService.startu= p(AbstractContainerService.java:239) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.DevAppServerImpl.start(DevAppSe= rverImpl.java:146) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.DevAppServerMain$StartAction.ap= ply(DevAppServerMain.java:164) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.ja= va:48) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.DevAppServerMain.(DevAppS= erverMain.java:113) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.DevAppServerMain.main(DevAppSer= verMain.java:89) >>>> Caused by: java.lang.ClassNotFoundException: >>>> org.apache.wicket.pageStore.memory.IDataStoreEvictionStrategy >>>> =A0 =A0 =A0 =A0at java.net.URLClassLoader$1.run(Unknown Source) >>>> =A0 =A0 =A0 =A0at java.security.AccessController.doPrivileged(Native M= ethod) >>>> =A0 =A0 =A0 =A0at java.net.URLClassLoader.findClass(Unknown Source) >>>> =A0 =A0 =A0 =A0at java.lang.ClassLoader.loadClass(Unknown Source) >>>> =A0 =A0 =A0 =A0at >>>> >>>> com.google.appengine.tools.development.IsolatedAppClassLoader.loadClas= s(IsolatedAppClassLoader.java:176) >>>> =A0 =A0 =A0 =A0at java.lang.ClassLoader.loadClass(Unknown Source) >>>> =A0 =A0 =A0 =A0... 35 more >>>> >>>> Since gae-initializer did compile when I compiled with maven I also >>>> tried simply putting the compile classes next to my other classes for >>>> the deployment, but it still gives this error. >>>> >>>> Thanks for all your help. >>>> >>>> Daniel >>>> >>>> On Wed, Jan 4, 2012 at 11:45 AM, Daniel Watrous >>>> =A0 =A0wrote: >>>>> >>>>> Is that the same thing as adding the jar file to the build path in >>>>> eclipse? >>>>> >>>>> How do I build gae-initializer.jar? I tried running 'mvn jar', but it >>>>> gave an error about unknown lifecycle phase. >>>>> >>>>> Daniel >>>>> >>>>> On Wed, Jan 4, 2012 at 11:38 AM, Sven Meier =A0 =A0w= rote: >>>>>> >>>>>> Hi Daniel, >>>>>> >>>>>> you just have to add the gae-initializer as a dependency to your >>>>>> project: >>>>>> >>>>>> >>>>>> org.wicketstuff >>>>>> wicketstuff-gae-initializer >>>>>> ${wicket.version} >>>>>> >>>>>> >>>>>> That's all. >>>>>> Sven >>>>>> >>>>>> >>>>>> On 01/04/2012 07:35 PM, Daniel Watrous wrote: >>>>>>> >>>>>>> Also, where do I put the wicket.properties file, and do I need to >>>>>>> update any xml files to indicate that there is a wicket.properties >>>>>>> file >>>>>>> >>>>>>> On Wed, Jan 4, 2012 at 11:30 AM, Daniel Watrous >>>>>>> =A0 =A0 =A0wrote: >>>>>>>> >>>>>>>> How do I create the gae-initializer.jar? >>>>>>>> >>>>>>>> I have run mvn compile and generated the class files. I can zip >>>>>>>> those >>>>>>>> up, but I'm not sure if there should be a META-INF folder and what >>>>>>>> it >>>>>>>> should have. >>>>>>>> >>>>>>>> Daniel >>>>>>>> >>>>>>>> On Wed, Jan 4, 2012 at 12:21 AM, Martin >>>>>>>> Grigorov >>>>>>>> =A0wrote: >>>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> gae-initializer project provides >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/ga= e-initializer-parent/gae-initializer/src/main/java/org/wicketstuff/gae/GaeI= nitializer.java >>>>>>>>> which is an implementation of org.apache.wicket.IInitializer and >>>>>>>>> declares it in >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/ga= e-initializer-parent/gae-initializer/src/main/resources/wicket.properties. >>>>>>>>> That means that when gae-initializer.jar is in the classpath Wick= et >>>>>>>>> will use it to initialize the Application instance. >>>>>>>>> Check the source of GaeInitializer.jar to see what exactly it >>>>>>>>> configures. >>>>>>>>> >>>>>>>>> On Wed, Jan 4, 2012 at 1:52 AM, Daniel >>>>>>>>> Watrous >>>>>>>>> =A0wrote: >>>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I've been working for a few days to get a wicket application goi= ng >>>>>>>>>> for >>>>>>>>>> Google App Engine with mixed results. I hope these questions >>>>>>>>>> aren't >>>>>>>>>> too noobie for this list? >>>>>>>>>> >>>>>>>>>> There are a couple of really old articles which Google brings up >>>>>>>>>> first: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> http://stronglytypedblog.blogspot.com/2009/04/wicket-on-google-a= pp-engine.html >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-ap= p-engine-for-java/ >>>>>>>>>> >>>>>>>>>> I've also found this resource after digging through the wicket >>>>>>>>>> users >>>>>>>>>> list, but I can't figure out how I'm supposed to use it: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/g= ae-initializer-parent >>>>>>>>>> >>>>>>>>>> I'm using eclipse with the GAE plugin. >>>>>>>>>> >>>>>>>>>> So far this is what I have accomplished. >>>>>>>>>> 1) the first link above provides a download demo as an eclipse >>>>>>>>>> project. I can get this to run, but it's working with old versio= ns >>>>>>>>>> (wicket 1.3.5, appengine sdk 1.2.0). I haven't successfully >>>>>>>>>> updated. >>>>>>>>>> 2) I can create a new google app engine project in eclipse. It >>>>>>>>>> runs >>>>>>>>>> fine and I can develop servlets. >>>>>>>>>> 3) I can user the maven build script from the quickstart to get = a >>>>>>>>>> functional wicket project. >>>>>>>>>> >>>>>>>>>> I'm really struggling trying to figure out how to use the >>>>>>>>>> gae-initializer or a base GAE project from eclipse and end up wi= th >>>>>>>>>> a >>>>>>>>>> functional wicket application... >>>>>>>>>> >>>>>>>>>> I'm not sure what other information to include at this point. >>>>>>>>>> Please >>>>>>>>>> share any pointers or links to other tutorials that might help m= e. >>>>>>>>>> >>>>>>>>>> Daniel >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ----------------------------------------------------------------= ----- >>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> Martin Grigorov >>>>>>>>> jWeekend >>>>>>>>> Training, Consulting, Development >>>>>>>>> http://jWeekend.com >>>>>>>>> >>>>>>>>> >>>>>>>>> -----------------------------------------------------------------= ---- >>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>>>>> >>>>>>> -------------------------------------------------------------------= -- >>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>>> >>>>>> --------------------------------------------------------------------= - >>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>> For additional commands, e-mail: users-help@wicket.apache.org >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>> For additional commands, e-mail: users-help@wicket.apache.org >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >> For additional commands, e-mail: users-help@wicket.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org