[appengine-java] App engine SDK jars in WEB-INF/lib. Why???

2011-05-11 Thread arjan tijms
Hello Guys,

I've searched this group and didn't find the answer for the following
question.

Why should I bring appengine-api.jar with me to the GAE server? Isn't
this weird? Creating a new Google "Web Application Project" in Eclipse
automatically puts this jars and some 10 others in the WEB-INF/lib
directory of my project. When I remove them, the google appengine
validator produces warnings:

Google App Engine Problem (10 items)
 The App Engine SDK JAR appengine-api-1.0-sdk-1.4.3.jar is missing
in the WEB-INF/lib directory

I mean it is not so hard to bring that jar with application, but it
reduces my application startup time and it makes it hard to
distinguish the jars I added myself and those which the project adds
by default. And as I mentioned, it's just plain weird. The server is
supposed to have the implementations of the classes in those jars
already. Why on earth should they be bundled in my war???

-- 
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: App engine SDK jars in WEB-INF/lib. Why???

2011-05-12 Thread arjan tijms
Hi ya!

On May 12, 1:05 am, Didier Durand  wrote:
> 1 of the reasons is that all applications don't run all at the same
> version on the gae productive infrastructure. So, google would have to
> know which one you are using in order to put it for you in your war
> when you upload it.

Hmmm, there are two possible problems with that explanation:

1. Aren't the GAE jars in the war the ones for local simulation and
not the actual ones used by the live GAE production servers?
2. Why would Google need to put them into the war when we upload it?
Tomcat doesn't add the servlet-api jars to my war when I deploy it to
Tomcat, JBoss AS doesn't add the EJB, JPA, etc etc jars to a war being
deployed to it, Resin also doesn't do this. In fact, I've never
encountered any Java server that required jars for functionality that
the server provided to be put into the war. WEB-INF/lib is for extra
functionality that the server -does not- provide.

If they just use it for detecting the version for which you developed
your app, then why not just put that version number in appengine-
web.xml?

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