Re: [appengine-java] Re: Local development server classpath - com.google.appengine.tools.KickStart
In order to faithfully emulate production, the dev_appserver only loads application code from WEB-INF/classes and WEB-INF/lib. If you want to avoid copying the jars into WEB-INF/lib, you could soft link them instead. On Sat, Mar 19, 2011 at 7:21 AM, Benjamin Muschko < benjamin.musc...@gmail.com> wrote: > Didier, > > Thanks for your reply. I am not using Eclipse. Instead I was trying to > run KickStart.main() within an existing Java process for a build > plugin. The Ant page you mentioned simply copies the JARs into WEB-INF/ > lib. In the meantime I found a workaround for what I was trying to do. > Still...I'd still be interested to know if you can add additional JARs > when calling KickStart.main(). > > Thanks, > > Ben > > On Mar 19, 1:21 am, Didier Durand wrote: > > Hi, > > > > You will be ok if you add not only 1 single gae jar (appengine-tools- > > api.jar) but all those (about 2) appearing in the GAE sdk library on > > Eclipse when you create a new project + those needed to run locally. > > > > The simplest way for you is to follow he hints given inhttp:// > code.google.com/appengine/docs/java/tools/ant.html > > > > regards > > > > didier > > > > On Mar 18, 8:55 pm, Benjamin Muschko > > wrote: > > > > > > > > > > > > > > > > > Hi, > > > > > I have a question about the runtime classpath that is being used when > > > starting up a local development server. It is required to set > > > appengine-tools-api.jar in the classpath a parameter. My application > > > directory "web_app_dir" does not include some of the libraries that > > > are required at runtime (see below someother.jar); they sit in a > > > different directory. I tried to add them using the -cp parameter but > > > they don't seem to get evaluated. I get a > > > java.lang.NoClassDefFoundError. This is the call I make: > > > > > java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine- > > > tools-api.jar:/home/ben/dev/someother.jar > > > com.google.appengine.tools.KickStart > > > com.google.appengine.tools.development.DevAppServerMain web_app_dir > > > > > Can somebody please shed some light on this? Are only the libraries > > > used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add > > > additional libraries using an parameter? > > > > > Thanks, > > > > > Ben > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Local development server classpath - com.google.appengine.tools.KickStart
Didier, Thanks for your reply. I am not using Eclipse. Instead I was trying to run KickStart.main() within an existing Java process for a build plugin. The Ant page you mentioned simply copies the JARs into WEB-INF/ lib. In the meantime I found a workaround for what I was trying to do. Still...I'd still be interested to know if you can add additional JARs when calling KickStart.main(). Thanks, Ben On Mar 19, 1:21 am, Didier Durand wrote: > Hi, > > You will be ok if you add not only 1 single gae jar (appengine-tools- > api.jar) but all those (about 2) appearing in the GAE sdk library on > Eclipse when you create a new project + those needed to run locally. > > The simplest way for you is to follow he hints given > inhttp://code.google.com/appengine/docs/java/tools/ant.html > > regards > > didier > > On Mar 18, 8:55 pm, Benjamin Muschko > wrote: > > > > > > > > > Hi, > > > I have a question about the runtime classpath that is being used when > > starting up a local development server. It is required to set > > appengine-tools-api.jar in the classpath a parameter. My application > > directory "web_app_dir" does not include some of the libraries that > > are required at runtime (see below someother.jar); they sit in a > > different directory. I tried to add them using the -cp parameter but > > they don't seem to get evaluated. I get a > > java.lang.NoClassDefFoundError. This is the call I make: > > > java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine- > > tools-api.jar:/home/ben/dev/someother.jar > > com.google.appengine.tools.KickStart > > com.google.appengine.tools.development.DevAppServerMain web_app_dir > > > Can somebody please shed some light on this? Are only the libraries > > used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add > > additional libraries using an parameter? > > > Thanks, > > > Ben -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Local development server classpath - com.google.appengine.tools.KickStart
Hi, You will be ok if you add not only 1 single gae jar (appengine-tools- api.jar) but all those (about 2) appearing in the GAE sdk library on Eclipse when you create a new project + those needed to run locally. The simplest way for you is to follow he hints given in http://code.google.com/appengine/docs/java/tools/ant.html regards didier On Mar 18, 8:55 pm, Benjamin Muschko wrote: > Hi, > > I have a question about the runtime classpath that is being used when > starting up a local development server. It is required to set > appengine-tools-api.jar in the classpath a parameter. My application > directory "web_app_dir" does not include some of the libraries that > are required at runtime (see below someother.jar); they sit in a > different directory. I tried to add them using the -cp parameter but > they don't seem to get evaluated. I get a > java.lang.NoClassDefFoundError. This is the call I make: > > java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine- > tools-api.jar:/home/ben/dev/someother.jar > com.google.appengine.tools.KickStart > com.google.appengine.tools.development.DevAppServerMain web_app_dir > > Can somebody please shed some light on this? Are only the libraries > used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add > additional libraries using an parameter? > > Thanks, > > Ben -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.