You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Kubiak, Thomas" <Th...@eu.sony.com> on 2005/12/07 08:12:34 UTC

Lenya / Tomcat locks files

Hello community.

We are using Lenya running on Tomcat 5.5.9. Server is a Windows 2003 Server
machine.

Sometimes it happens, that the Tomcat service locks the content files
(index_??.xml) within our publication so that they cannot be deleted.
Therefor when users try to modify those contents using the lenya editor the
cannot save their changes.

As long as tomcat is running these files cannot be deleted even when I try
to do it directly on the filesystem of the server.

Does anybody have an idea what causes this problem ? Any solutions ? Please
help me.

Many thanks and kind regards

Thomas

************************************************************************
The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s).  Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender.  The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies.  Sony email is for business use only.

This email and any response may be monitored by Sony to be in compliance with Sony�s global policies and standards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya / Tomcat locks files

Posted by so...@apache.org.
On 12/7/05, Kubiak, Thomas <Th...@eu.sony.com> wrote:
> We are using Lenya running on Tomcat 5.5.9. Server is a Windows 2003 Server
> machine.
> Sometimes it happens, that the Tomcat service locks the content files
> (index_??.xml) within our publication so that they cannot be deleted.
> Therefor when users try to modify those contents using the lenya editor the
> cannot save their changes.
> As long as tomcat is running these files cannot be deleted even when I try
> to do it directly on the filesystem of the server.
> Does anybody have an idea what causes this problem ? Any solutions ? Please
> help me.

It is unlikely to be an issue with Tomcat.  Does it happen running
Lenya on Jetty?

Which version of Lenya are you running?  It is possible some code
opens the file and never closes it.  Can you isolate what locks the
file?  Browsing to it?  Opening it in an editor?  The more information
we have, the easier it will be to find the bug (and the more likely
someone will look for it.)

It is also possible it is just MSWindows making life difficult.  Have
you considered upgrading to a Unix-based OS?

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya / Tomcat locks files

Posted by Rovi <ro...@yahoo.com>.
Michael Ralston <michael <at> ralston.id.au> writes:

> 
> On Wednesday 07 December 2005 18:12, Kubiak, Thomas wrote:
> > Hello community.
> >
> > We are using Lenya running on Tomcat 5.5.9. Server is a Windows 2003 Server
> > machine.
> >
> > Sometimes it happens, that the Tomcat service locks the content files
> > (index_??.xml) within our publication so that they cannot be deleted.
> > Therefor when users try to modify those contents using the lenya editor the
> > cannot save their changes.
> >
> > As long as tomcat is running these files cannot be deleted even when I try
> > to do it directly on the filesystem of the server.
> >
> > Does anybody have an idea what causes this problem ? Any solutions ? Please
> > help me.
> >
> 
> I have also had this problem with running lenya with Jetty on a windows host. 
> It was due to javax.xml.parsers.DocumentBuilder not closing a file when it 
> was finished with it. The object is eventually garbage collected and the file 
> closed, but not soon enough as other side effects occur. In my instance I was 
> getting an exception when I tried to deactivate a page, the document could 
> not be deleted from the live tree.
> 
> I provided a patch to lenya 1.2 in October, if this is also your problem I can 
> forward you the patch. If it isn't your problem, the patch might give you an 
> idea of how to solve your problem.
> 
> Michael Ralston
> 


Hi,
I am getting a similar issue (Lenya 1.2.4 on Window 2000 Server on Jetty -
default install and default publication). I am randomly not able to delete
documents. If do deactivate them, and they don't show in the Live site, but the
status in Site tab shows they are active. Subsequently, the delete option is
also inactive. I have once deleted the files and modified the xml file on the
filesystem, but am looking for a more graceful method to delete my documents.
Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya / Tomcat locks files

Posted by Michael Ralston <mi...@ralston.id.au>.
On Wednesday 07 December 2005 18:12, Kubiak, Thomas wrote:
> Hello community.
>
> We are using Lenya running on Tomcat 5.5.9. Server is a Windows 2003 Server
> machine.
>
> Sometimes it happens, that the Tomcat service locks the content files
> (index_??.xml) within our publication so that they cannot be deleted.
> Therefor when users try to modify those contents using the lenya editor the
> cannot save their changes.
>
> As long as tomcat is running these files cannot be deleted even when I try
> to do it directly on the filesystem of the server.
>
> Does anybody have an idea what causes this problem ? Any solutions ? Please
> help me.
>

I have also had this problem with running lenya with Jetty on a windows host. 
It was due to javax.xml.parsers.DocumentBuilder not closing a file when it 
was finished with it. The object is eventually garbage collected and the file 
closed, but not soon enough as other side effects occur. In my instance I was 
getting an exception when I tried to deactivate a page, the document could 
not be deleted from the live tree.

I provided a patch to lenya 1.2 in October, if this is also your problem I can 
forward you the patch. If it isn't your problem, the patch might give you an 
idea of how to solve your problem.

Michael Ralston

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org