Hi.
I actually have a trouble with calls to external resources like image/video. I read in the jetty docs, and some examples on the internet, and i found i have to do
a configuration like this:
<Configure id="parentHandler" class="org.mortbay.jetty.handler.ContextHandler">
<Set name="contextPath">/folder_name_of_static_resources</Set>
<Set name="resourceBase">/real/filesystem/path/to/static/resources/</Set>
<Set name="handler">
<New class="org.mortbay.jetty.handler.ResourceHandler">
<Set name="cacheControl">max-age=3600,public</Set>
</New>
</Set>
</Configure>
So, in my code, i want to get an image, in the form:
GWT.getModuleBaseURL()+"/folder_name_of_static_resources/the_image.jpg"But, when jetty runs, it marks
Result: 404 image not found
Now, why i want to do in this way?
I want to get video from a form, and after that, can view it in a videoplayer. i don't want to use a database (blob) because some files can be too heavy (5 to 100 MB aprox) so, i want to save and recovery from a filesystem.
I can't use GAE, nor other web server (like tomcat) but i'm sure that my requeriment can be satisfied if i resolve this configuration; and i suppose that the configuration can works in a embebbed jetty(GWT included) and a regular jetty server.
Can you give a hand?
Thanks in advance.