Never mind  I changed it to 

Thread.currentThread().getContextClassLoader().getResource

to get it working.

--- todd darsten <[EMAIL PROTECTED]> wrote:

> 
> My war file looks like 
> 
> mywar.war
> +--WEB-INF
> +--my.mapfile.txt
> +--... other dirs
> 
> Within my jsp, i am trying to reference
> my.mapfile.txt
> as an URL
> This code works fine in Jetty but fails when we
> switch
> to TC 5.5.x
> 
> <%
>    URL myURL =
> application.getResource("/my.mapfile.txt");
> %>
> 
> i am getting an File Not Found exception when trying
> to open the URL via its stream
> 
> java.io.FileNotFoundException:
> \localhost\mywar\my.mapfile.txt (The system cannot
> find the path specified)
> 
> I also tried 
> 
> getServletContext().getResource("/my.mapfile.txt");
> 
> but am getting the same error.
> 
> Thanks
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to