how to develop on tomcat and deploy on GAE

724 views
Skip to first unread message

sombriks

unread,
Nov 2, 2011, 10:50:44 PM11/2/11
to Google App Engine
how to develop on tomcat and deploy on GAE?

anyone had such setup? if yes, pleas share your experience

Ian Marshall

unread,
Nov 9, 2011, 9:46:18 AM11/9/11
to Google App Engine
I did this at first (using a MySQL database with my Tomcat), but this
was a mistake.

Even though it was nice to step through my code during debug, I lost
the following things by not developing using the GAE/J development web
server:

· The GAE datastore behaves differently to a MySQL database, even
though I was using JDO as my persistence abstraction layer.
· The GAE/J dev server matches GAE/J production servers better than
Tomcat.
· Enqueued tasks.
· And many more...

Don't make my mistake: develop against the GAE web server, and the GAE
datastore, from the start!

sombriks

unread,
Nov 26, 2011, 11:22:00 AM11/26/11
to Google App Engine
Hello and thanks so much for sharing your knowledge.

Indeed i miss so much hot swap, debug, or even the regular project
facet as seen in a ordinary wtp project.

I just feel uncomfortable convincing my manager the real cause of
slowdown and having to re-teach the team how to work on a java-web
project.

That's why i asked for ways to mimetize GAE server inside tomcat. More
specifically how to use a wpt project and simply deploy on the target
in the end.

I didn't archived much, for now i have the appengine-web.xml inside
WEB-INF but the project isn''t "google-enabled". i use appcfg from
command line to deploy.

Renzo Nuccitelli

unread,
Nov 26, 2011, 3:48:11 PM11/26/11
to Google App Engine
Like Ian said, don´t use Tomcat, use GAE Eclipse plugin for
development.

For debuging in this enviroment, one option is testing your
application through Unit Testing (http://code.google.com/intl/en/
appengine/docs/java/tools/localunittesting.html).

There is no need to generate a wtp project, the plugin itself can
deploy application. Maybe showing one small application with the
simple deploy tool, with hot deploy and deploying different versions
of your app straightforward can be good arguments for you manager.

Good luck

Brandon Wirtz

unread,
Nov 26, 2011, 5:13:23 PM11/26/11
to google-a...@googlegroups.com
If you want to use the DataStore over HTTP building a Data Store Proxy is
pretty simple, and you just detect if you are on GAE or Tomcat and pic if
you are using local or remote Data

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


Simon Knott

unread,
Nov 26, 2011, 6:40:23 PM11/26/11
to google-a...@googlegroups.com
I'm confused - why do you miss hotswap, debug, etc?  I develop all the time and still get to use all of these.
Reply all
Reply to author
Forward
0 new messages