> From: Aaron Axelsen <[EMAIL PROTECTED]>
> To: Tomcat Users List <users@tomcat.apache.org>
> Date: Sun, 31 Aug 2008 14:39:46 -0500
> Subject: Re: antioJarLocking not working
> I tried sticking the jars there - but it did not seem to make any
> difference.
>
> Let me recap on what we are trying to accomplish.
>
> The instructor for the course is using the NetBeans 6.5 IDE for ruby
> development.  The students would then create a war file for deployment
> on tomcat 6.  The students will upload the war folder to a deploy
> folder, from which a scheduled script will copy the war files into the
> tomcat document root for deployment.
>
> With just antijarlocking set, the jruby and complete jars are still
> locked my tomcat, and re-deployment of the jar fails until a complete
> server restart.
>
> Antiresource locking does solve the issue of the jar's being locked,
> however when set to true, whenever the application is loaded, tomcat
> looks in %CATALINA_HOME%\temp-appname for the files, which does not
> exist.  If I manually copy files into that folder from the temp folder,
> things work as expected.  If we can just figure out how to get that
> folder correctly populated (or get tomcat looking in the right place)
> everything would be working correctly.
>
> If anyone has any thoughts or ideas, please share!

I did some quick digging, because I'm experiencing the same problem.
When antiResourceLocking="true" on winNT, it expands the application
into "/temp/#-appname". But when the application runs (jruby/rack in
this case), it thinks the application is in "/temp-appname" and a file
not found error happens.

jruby-rack makes a call to the ServletContext's getRootPath() method
in loader/jruby/rack/servlet_helper.rb#real_path. It looks like this
is returning the erroneous "/temp-appname" which doesn't exist.

Isn't getRootPath() handled by Tomcat? If so, it seems like a tomcat bug...

I'm not sure a work-around for this, other than don't use antiResourceLocking.

-- 
James S. Ravn

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