On Thu, Oct 30, 2008 at 10:52 PM, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
>> From: James Ravn [mailto:[EMAIL PROTECTED]
>> Subject: Re: antioJarLocking not working
>>
>> jruby-rack makes a call to the ServletContext's getRootPath() method
>
> No such animal; perhaps you mean getRealPath()?

Yes, I meant getRealPath().

>> It looks like this is returning the erroneous "/temp-appname"
>> which doesn't exist.
>
> Works fine for me; after setting antiResourceLocking, the expression
>    getServletConfig().getServletContext().getRealPath("")
> returns
>    C:\apache-tomcat-6.0.18\temp\2-sample
> which is exactly what it's defined to do:

Odd, it returns the erroneous value for me... I will have to
investigate some more to see if it has something to do with JRuby.

Thanks,
James

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to