Re: Tomcat jsp file is locked on win32

2003-07-15 Thread Reginald Oake
Hello.

I have found that under Windows file locks are not always released when
a file is closed and the only way after this to release a file lock is
to reboot the system. Sometimes file locks seem to clear on their own,
other times I have to restart the computer to release a file lock
(sometimes even this does not work).

If you are on a UNIX based system try running lsof and grep for the name
of the file. Part of the information you will get will be the id of the
process that has the file open. You can then go to that process and
release the file or terminate the process (either should release the
file lock).

Hope this helps.


Reg


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



Re: Tomcat jsp file is locked on win32

2003-07-15 Thread Tim Funk
Check bugzilla. There was a conversation about this (don't know if it was 
fixed or not - or for which release).

It has to do with after files reaching a certain size - then the file is read 
as stream and the File descriptor is not closed causing the OS to keep a lock.

-Tim

Vladimer Shioshvili wrote:
Hello all,

I am not sure what could be the reason for this behavior. I did not have 
much luck finding any information on the web about this either. One 
particular jsp file is being locked and cannot be deleted. I am trying 
to update the file and replace with an updated copy from CVS, but 
because of it is locked it can't be done unless Tomcat is stopped. Out 
of 30 or so jsp pages I am using for the project this is the only one 
that gets locked. The only difference is that the file is the biggest 
(41K). Is that the reason? Also, if you could point me to where I should 
be looking for an answer to this question, would be greatly appreciated.

Thanks,
Vlad

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155

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



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


Tomcat jsp file is locked on win32

2003-07-15 Thread Vladimer Shioshvili
Hello all,

I am not sure what could be the reason for this behavior. I did not have 
much luck finding any information on the web about this either. One 
particular jsp file is being locked and cannot be deleted. I am trying to 
update the file and replace with an updated copy from CVS, but because of 
it is locked it can't be done unless Tomcat is stopped. Out of 30 or so jsp 
pages I am using for the project this is the only one that gets locked. The 
only difference is that the file is the biggest (41K). Is that the reason? 
Also, if you could point me to where I should be looking for an answer to 
this question, would be greatly appreciated.

Thanks,
Vlad

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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