Thank you of your response, Mr. John Patterson.
  I think the cause of this problem isn't caching by the following
reason. From the beginning of deploying, this application hasn't been
able to find the JavaScript file, so, any JavaScript file hasn't been
cached.
  I think, the cause of this problem is as followings.
(1)Including description of JavaScript file
  This application is composed of the templating and composite
components by using MyFaces 2.0,
and it includes the JavaScript file by the following tag.
    <h:outputScript library="javascript" name="JavaScript file name"
target="head" />
The JavaScript file of the following path is included by this tag.
   /resources/javascript/JavaScript file name
In the path, "javascript" and "JavaScript file name" are defined in
the preceding tag, but "resources" is fixed, not defined anywhere.
This is the custom introduced from JSF2.
(2)Local execution
  In the local execution by GAE Java SDK plug-in in eclipse, the
preceding path of the JavaScript file is maintained. So, this
application is able to find the JavaScript file.
(3)Execution on the deployed server
  On the deployed server, deployed static files are placed
(distributed) according to GAE policy, and the real paths of them are
not maintained. So, this application is not able to find the
JavaScript file included in static-files tag.
  On the other hand, GAE supports the preceding custom introduced from
JSF2 as resource files. So, this application is able to find the
JavaScript file included in resource-files tag.

that's all.


On 9月7日, 午前10:32, John Patterson <jdpatter...@gmail.com> wrote:
> On 07/09/2011 07:19, Minehiko Ohya wrote:>    I reviewed appengine-web.xml, 
> and found that the JavaScript file was
> > defined as "static-files" in it.
>
> I should have been more clear - that's what I meant by caching.  For
> static resources you specify the length of time you want Google to cache
> it for you.

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

Reply via email to