Forget that last post. I  got it working. I had template tag error
in my code.

Glenn...

On May 28, 1:39 pm, denew <de...@clear.net.nz> wrote:
> I'm using maven for builds, so I can't help with your Ant process, but
> you need to start the appengine with something like:
>
> <root>\appengine-java-sdk-1.2.1\bin\dev_appserver target\webapp-1.0-
> SNAPSHOT
>
> i.e., not just the jetty:run. I have this in a batch file in the
> webapp directory.
>
> Despite the fact I got a simple 1->M running yesterday, the story gets
> bad when I start to add other relationships to entities that already
> have them
> - this is still WIP for me
>
> On May 29, 6:17 am, glenn <gl...@exmbly.com> wrote:
>
> > I tried to get the sample at git://github.com/ymnk/lift-gae-api.git to
> > work, but
> > couldn't. Yes, I installed all the GAE jars in my local maven
> > repository,but  launching
> > with mvn jetty:run doesn't start up the App Engine, so I get the
> > following
> > exception:
>
> > Exception occured while processing /
> > Message: java.lang.NullPointerException
> >         com.google.appengine.api.users.UserServiceImpl.getCurrentUser
> > (UserServiceImpl.java:44)
> >         foo.snippet.HelloWorld.howdy(HelloWorld.scala:13)
>
> > because there val userService = UserServiceFactory.getUserService in
> > HelloWorld is null.
>
> > So, something is missing in the process - namely - getting Lift
> > working in the App Engine. I even
> > tried a different approach.
>
> > Using the following ant build.xml:
>
> > <project name="gae-test">
> >         <property name="sdk.dir" location="<local path to>/appengine-
> > java-sdk-1.2.1" />
> >         <property name="artifact_version" value="0.0.1-SNAPSHOT"/>
> >         <property name="target.war" value="target/${ant.project.name}-$
> > {artifact_version}"/>
>
> >         <import file="${sdk.dir}/config/user/ant-macros.xml" />
>
> >         <target name="datanucleusenhance" description="Performs JDO
> > enhancement on compiled data classes.">
> >                 <enhance_war war="war" />
> >         </target>
>
> >         <target name="copy_war">
> >                 <copy todir="war">
> >                     <fileset dir="${target.war}"/>
> >                   </copy>
>
> >         </target>
>
> >         <target name="runserver" depends="copy_war, datanucleusenhance"
> >               description="Starts the development server.">
> >                 <dev_appserver war="war" port="8888" >
> >                         <options>
> >                                 <arg value="--jvm_flag=-Xdebug"/>
> >                                 <arg value="--jvm_flag=-
> > Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999"/>
> >                         </options>
> >                 </dev_appserver>
> >         </target>
>
> >         <target name="update" depends="datanucleusenhance"
> >               description="Uploads the application to App Engine.">
> >                 <appcfg action="update" war="war" />
> >         </target>
>
> >         <target name="update_indexes" depends="datanucleusenhance"
> >               description="Uploads just the datastore index configuration to
> > App Engine.">
> >                 <appcfg action="update_indexes" war="war" />
> >         </target>
>
> >         <target name="rollback" depends="datanucleusenhance"
> >               description="Rolls back an interrupted application update.">
> >                 <appcfg action="rollback" war="war" />
> >         </target>
>
> >         <target name="request_logs"
> >               description="Downloads log data from App Engine for the
> > application.">
> >                 <appcfg action="request_logs" war="war">
> >                         <options>
> >                                 <arg value="--num_days=5"/>
> >                         </options>
> >                         <args>
> >                                 <arg value="logs.txt"/>
> >                         </args>
> >                 </appcfg>
> >         </target>
>
> > </project>
>
> > Running the runuser target creates a war directory in the root of my
> > project, similar to
> > what the GAE Eclipse plugin creates, and starts the App Engine, but
> > nothing else.
> > The application is not accessible from the URLhttp://localhost:8888.
>
> > Am I doing something completely wrong, here?
>
> > Glenn...
>
> > On May 27, 2:38 pm, denew <de...@clear.net.nz> wrote:
>
> > > Embarassingly simple really - RTFM. Within the known limitation of
> > > using Lists for the collection, not Sets, the 1->M works. Now on to
> > > the compound keys...
>
> > > On May 28, 9:01 am, denew <de...@clear.net.nz> wrote:
>
> > > > Thanks for that Andy - I had tried using 1.1.2 and 1.1.3 and thought I
> > > > had gone back to a GAE-approved version - my mistake. I'll give that a
> > > > shot
>
> > > > On May 27, 9:11 pm, datanucleus <andy_jeffer...@yahoo.com> wrote:
>
> > > > > You're using invalid versions of DataNucleus jars (1.1.1+) with the
> > > > > GAEJ plugin for datanucleus. The current released plugin only allows
> > > > > DataNucleus 1.1.0 jars. Their next versions should allow the latest
> > > > > DataNucleus jars to be used, but you'll have to wait til they release
> > > > > it ;-)
>
> > > > > --Andy (DataNucleus)- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to