-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Holger,

On 1/13/2010 11:23 AM, Holger Rieß wrote:
> The context elements are defined in /%CATALINA_HOME%/conf/server.xml:
> <Server ...>
>       <Service ...>
>               <Engine ...>
>                       <Host ...>
>                               <Context docBase= ...>
>                               <Context docBase= ...>
>                               ...
>                       </Host>
>               </Engine>
>       </Service>
> </Server>
> 
> There are two web applications that have access to these resources.
> The servlets main task is to calculate picture dimensions with
> java.awt.Toolkit. The request.getResource methods don't find these
> 'extern' paths.

So, you have one context with nothing but static content and another
context with the servlets? Why not merge the two so there's no confusion?

Aside from your original question: I'm not exactly sure what your
requirements are, but it may be easier to use a simpler mechanism to
determine picture dimensions than using java.awt.Toolkit to fully-load
an image. Most image formats contain headers which indicate the
dimensions of the image, while reading the full image data may require
very heavy algorithms (I'm looking at you, discrete cosine transform).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktN+ukACgkQ9CaO5/Lv0PBwbACgnE0BwRmXRG9NacWtsdx+//dq
Y8oAn0TeYUAOANhuKj1fe3c8TjrXPRW4
=u5tr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to