i18n GWT 2.0 application reaching the max files limit

29 views
Skip to first unread message

François Masurel

unread,
Mar 28, 2010, 3:46:33 PM3/28/10
to Google App Engine
Hi,

While trying to deploy our internationalized GWT 2.0 application into
production we encountered the error : "Applications are limited to
3000 files, you have 3956.".

In fact, while developping we were limiting ourselves to one language
and one browser and had no problem. But once when we activated a few
more languages and all browsers, we couldn't deploy our months of work
application anymore. It's very annoying.

Is there anyway to increase the 3000 files limit ?

Thanx a lot for your help.

François
Bordeaux, FRANCE

App ID : i-wands

djidjadji

unread,
Mar 29, 2010, 7:41:01 AM3/29/10
to google-a...@googlegroups.com
You can make a zip file and serve the files from it with a request handler.
Maximum zip file size is 10Mb.

2010/3/28 François Masurel <fm2...@mably.com>:

> --
> 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.
>
>

Francois MASUREL

unread,
Mar 29, 2010, 7:51:55 AM3/29/10
to google-a...@googlegroups.com
Thanx for your answer.

You mean I can serve GWT generated javascript files and other resources from a ZIP file via a request handler ?

Has anybody done this already ?  Any code samples around ?

Thanx again.

François Masurel

unread,
Mar 29, 2010, 4:06:25 PM3/29/10
to Google App Engine
Does anybody at Google have a suggestion for me ?

I'm willing to pay to be able to increase my maximum allowed number of
files as I really need it.

Is it possible to automatically replace WEB-INF/classes by one jar in
WEB-INF/lib ? I can do it by hand and it works, but it's not very
practical to do.

Related issues :

http://code.google.com/p/googleappengine/issues/detail?id=1727 ->
Including multiple eclipse projects on the classpath
http://code.google.com/p/googleappengine/issues/detail?id=1579 -> WEB-
INF/classes should count as one file in file count quota

Any help would be greatly appreciated.

François
Bordeaux, FRANCE

> > google-appengi...@googlegroups.com<google-appengine%2Bunsubscrib e...@googlegroups.com>


> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > 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<google-appengine%2Bunsubscrib e...@googlegroups.com>

Jeff Schnitzer

unread,
Mar 29, 2010, 4:25:40 PM3/29/10
to google-a...@googlegroups.com
I haven't done this, but I'm certain the problem is solveable. Two
strategies come to mind offhand:

1) Package your class files into a jar in WEB-INF/lib as you describe.

This is pretty straightforward if you use ant to deploy. I don't know
if there are any hooks in the google plugin for Eclipse that will let
you continue to use the deploy button.

2) Package your generated GWT permutations into a jar file and serve
them using a servlet.

You'll need to perform the packaging (again, maybe with ant) of your
gwt output dir into a jar. Then you'll need to create a servlet that
maps the requests into a read from the jar. The easiest way is
probably to put the jar in WEB-INF/lib and use
Thread.currentThread().getContextClassLoader().getResource().

The good news is that requests for *.html and *.jpg are treated as
static files, so they get cached on google's CDN. You won't be
reading from the jar all the time.

Jeff

2010/3/29 François Masurel <fm2...@mably.com>:

> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.

Stephen

unread,
Mar 31, 2010, 3:31:48 PM3/31/10
to Google App Engine

On Mar 29, 9:25 pm, Jeff Schnitzer <j...@infohazard.org> wrote:
>
> The good news is that requests for *.html and *.jpg are treated as
> static files, so they get cached on google's CDN.  You won't be
> reading from the jar all the time.


Are you sure? Is this documented anywhere?

Jeff Schnitzer

unread,
Mar 31, 2010, 7:26:01 PM3/31/10
to google-a...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages