You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by therandthem <th...@luarsoft.com> on 2002/01/21 15:25:19 UTC

File Locking in XSLT

A patch was submitted for a file locking problem in the XSLT portion of
Cocoon 2.  I'm not sure about the process for these fixes, but I figured it
would be fixed in the CVS tree.  I checked out the code from CVS on
15-JAN-02.  I'm running it, but I still can't edit my .xsl files because
they are locked by Cocoon.  It is so hard to get work done this way.

Can someone educate me on when this patch was or will be entered into the
main code?  Below is the original reference.

Thanks,

therandthem

List:     xml-cocoon-dev
Subject:  RE: [PATCH] XSLT file locking in Cocoon 2
From:     "Vadim Gritsenko" <va...@verizon.net>
Date:     2001-12-14 3:12:58
[Download message RAW]

Applied, please cross-check (bs.close() moved into finally block).

Thanks,
Vadim

> -----Original Message-----
> From: Michael Hartle [mailto:mhartle@hartle-klug.com]
> Sent: Thursday, December 13, 2001 6:13 PM
> To: Richard R. McKinley
> Cc: cocoon-dev@xml.apache.org
> Subject: [PATCH] XSLT file locking in Cocoon 2
>
> Richard R. McKinley wrote:
>
> > Was there any resolution to the random XSLT file locking in Cocoon
2?
> > I search the net but didn't not find out if it was filed as a bug or
> > solved.  You seem to have discovered the most likely reason for the
> > problem.  Is there a patch you could share with me?  It is a
constant
> > problem on my server.
> >
> Today I patched the Cocoon 2.0 source release to slash that annoying
> XSLT file locking bug (see
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=100419666331388&w=2).
> After patching, I have not been experiencing any problems regarding
file
> locking at all for more than 4 hours with extensive XSLT development,
so
> I guess I squished that bug; before patching, file locking annoyed me
> every 5-10 minutes or so.
>
> Attached please find both a patch.diff and an already patched
> org.apache.cocoon.components.xslt.XSLTProcessorImpl.java. Just
exchange
> it, recompile the cocoon.jar, exchange your deployed cocoon.jar with
the
> new one, enjoy or report back problems ;)
>
> Best regards,
>
> Michael Hartle,
> Hartle & Klug GbR



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: File Locking in XSLT

Posted by Berin Loritsch <bl...@apache.org>.
therandthem wrote:

> This is all I needed.  Now, if you have a second to look at my post, someone
> proported to fix the bug.  Can anyone comment if, in fact, this bug is
> solved but not yet submitted?


Someone tested it with a newer release of Xalan.  I don't know if the newer
version was committed or not.  You can always try to use the new Xalan 2.2
official release.



> I think Cocoon is great but to change a .xsl I have to restart the servlet
> engine.  That is too much to ask.


Honestly, I haven't run into this.  I am running Win2K, and I have no idea
what you are using.


> 
> Thanks,
> 
> Richard
> 
> ----- Original Message -----
> From: "Berin Loritsch" <bl...@apache.org>
> To: <co...@xml.apache.org>
> Sent: Monday, January 21, 2002 1:29 PM
> Subject: Re: File Locking in XSLT
> 
> 
> 
>>therandthem wrote:
>>
>>
>>>Cocoon 2 is UNUSABLE.  If no one cares I guess I will have to find
>>>
> something
> 
>>>else.
>>>
>>
>>I'm sorry you feel that way.  The file locking problem is outside of
>>
> Cocoon's
> 
>>control.  It was as a result of Xalan.  Try using Saxon insead.  You may
>>
> find
> 
>>that it is faster....
>>
>>
>>
>>>Later,
>>>
>>>Richard
>>>
>>>----- Original Message -----
>>>From: "therandthem" <th...@luarsoft.com>
>>>To: <co...@xml.apache.org>
>>>Sent: Monday, January 21, 2002 7:25 AM
>>>Subject: File Locking in XSLT
>>>
>>>
>>>
>>>
>>>>A patch was submitted for a file locking problem in the XSLT portion of
>>>>Cocoon 2.  I'm not sure about the process for these fixes, but I figured
>>>>
>>>>
>>>it
>>>
>>>
>>>>would be fixed in the CVS tree.  I checked out the code from CVS on
>>>>15-JAN-02.  I'm running it, but I still can't edit my .xsl files because
>>>>they are locked by Cocoon.  It is so hard to get work done this way.
>>>>
>>>>Can someone educate me on when this patch was or will be entered into
>>>>
> the
> 
>>>>main code?  Below is the original reference.
>>>>
>>
>>
>>--
>>
>>"They that give up essential liberty to obtain a little temporary safety
>>  deserve neither liberty nor safety."
>>                 - Benjamin Franklin
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> .
> 
> 



-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: File Locking in XSLT

Posted by Michael Hartle <mh...@hartle-klug.com>.
Chris Newland wrote:

>My source code (xsl and xsp) is managed under CVS outside of the running
>Cocoon environment and I use a simple script to copy my latest versions into
>my unpacked tomcat/webapps/cocoon directory (overwriting the versions from
>my WAR file). The latest verions are automatically picked up by Cocoon.
>
>Perhaps such a script would be a workaround for your problem?
>
The file locking bug when I encountered it on Win2K prevented me from 
saving an XSL file - I doubt a script would get a positive result; 
Cocoon 2.0 final should already be cured from the file locking bug.

>Best Regards,
>
>Chris
>
>Cocoon 2.0 final, Tomcat 4.0.1, SuSE 7.2, Apache 1.3.22, mod_webapp for
>TC4.0.1
>
Best regards,

Michael Hartle,
Hartle & Klug GbR


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: File Locking in XSLT

Posted by Chris Newland <ch...@emorphia.com>.
Hi Richard,

I use Cocoon 2 and am able to edit my stylesheets and XSP pages and have the
updated versions served by the running Cocoon instance without any
restarting.

My source code (xsl and xsp) is managed under CVS outside of the running
Cocoon environment and I use a simple script to copy my latest versions into
my unpacked tomcat/webapps/cocoon directory (overwriting the versions from
my WAR file). The latest verions are automatically picked up by Cocoon.

Perhaps such a script would be a workaround for your problem?

Best Regards,

Chris

Cocoon 2.0 final, Tomcat 4.0.1, SuSE 7.2, Apache 1.3.22, mod_webapp for
TC4.0.1

-----Original Message-----
From: therandthem [mailto:therandthem@luarsoft.com]
Sent: 21 January 2002 20:34
To: cocoon-dev@xml.apache.org
Subject: Re: File Locking in XSLT


This is all I needed.  Now, if you have a second to look at my post, someone
proported to fix the bug.  Can anyone comment if, in fact, this bug is
solved but not yet submitted?

I think Cocoon is great but to change a .xsl I have to restart the servlet
engine.  That is too much to ask.

Thanks,

Richard

----- Original Message -----
From: "Berin Loritsch" <bl...@apache.org>
To: <co...@xml.apache.org>
Sent: Monday, January 21, 2002 1:29 PM
Subject: Re: File Locking in XSLT


> therandthem wrote:
>
> > Cocoon 2 is UNUSABLE.  If no one cares I guess I will have to find
something
> > else.
>
>
> I'm sorry you feel that way.  The file locking problem is outside of
Cocoon's
> control.  It was as a result of Xalan.  Try using Saxon insead.  You may
find
> that it is faster....
>
>
> >
> > Later,
> >
> > Richard
> >
> > ----- Original Message -----
> > From: "therandthem" <th...@luarsoft.com>
> > To: <co...@xml.apache.org>
> > Sent: Monday, January 21, 2002 7:25 AM
> > Subject: File Locking in XSLT
> >
> >
> >
> >>A patch was submitted for a file locking problem in the XSLT portion of
> >>Cocoon 2.  I'm not sure about the process for these fixes, but I figured
> >>
> > it
> >
> >>would be fixed in the CVS tree.  I checked out the code from CVS on
> >>15-JAN-02.  I'm running it, but I still can't edit my .xsl files because
> >>they are locked by Cocoon.  It is so hard to get work done this way.
> >>
> >>Can someone educate me on when this patch was or will be entered into
the
> >>main code?  Below is the original reference.
>
>
>
> --
>
> "They that give up essential liberty to obtain a little temporary safety
>   deserve neither liberty nor safety."
>                  - Benjamin Franklin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: File Locking in XSLT

Posted by therandthem <th...@luarsoft.com>.
This is all I needed.  Now, if you have a second to look at my post, someone
proported to fix the bug.  Can anyone comment if, in fact, this bug is
solved but not yet submitted?

I think Cocoon is great but to change a .xsl I have to restart the servlet
engine.  That is too much to ask.

Thanks,

Richard

----- Original Message -----
From: "Berin Loritsch" <bl...@apache.org>
To: <co...@xml.apache.org>
Sent: Monday, January 21, 2002 1:29 PM
Subject: Re: File Locking in XSLT


> therandthem wrote:
>
> > Cocoon 2 is UNUSABLE.  If no one cares I guess I will have to find
something
> > else.
>
>
> I'm sorry you feel that way.  The file locking problem is outside of
Cocoon's
> control.  It was as a result of Xalan.  Try using Saxon insead.  You may
find
> that it is faster....
>
>
> >
> > Later,
> >
> > Richard
> >
> > ----- Original Message -----
> > From: "therandthem" <th...@luarsoft.com>
> > To: <co...@xml.apache.org>
> > Sent: Monday, January 21, 2002 7:25 AM
> > Subject: File Locking in XSLT
> >
> >
> >
> >>A patch was submitted for a file locking problem in the XSLT portion of
> >>Cocoon 2.  I'm not sure about the process for these fixes, but I figured
> >>
> > it
> >
> >>would be fixed in the CVS tree.  I checked out the code from CVS on
> >>15-JAN-02.  I'm running it, but I still can't edit my .xsl files because
> >>they are locked by Cocoon.  It is so hard to get work done this way.
> >>
> >>Can someone educate me on when this patch was or will be entered into
the
> >>main code?  Below is the original reference.
>
>
>
> --
>
> "They that give up essential liberty to obtain a little temporary safety
>   deserve neither liberty nor safety."
>                  - Benjamin Franklin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: File Locking in XSLT

Posted by Berin Loritsch <bl...@apache.org>.
therandthem wrote:

> Cocoon 2 is UNUSABLE.  If no one cares I guess I will have to find something
> else.


I'm sorry you feel that way.  The file locking problem is outside of Cocoon's
control.  It was as a result of Xalan.  Try using Saxon insead.  You may find
that it is faster....


> 
> Later,
> 
> Richard
> 
> ----- Original Message -----
> From: "therandthem" <th...@luarsoft.com>
> To: <co...@xml.apache.org>
> Sent: Monday, January 21, 2002 7:25 AM
> Subject: File Locking in XSLT
> 
> 
> 
>>A patch was submitted for a file locking problem in the XSLT portion of
>>Cocoon 2.  I'm not sure about the process for these fixes, but I figured
>>
> it
> 
>>would be fixed in the CVS tree.  I checked out the code from CVS on
>>15-JAN-02.  I'm running it, but I still can't edit my .xsl files because
>>they are locked by Cocoon.  It is so hard to get work done this way.
>>
>>Can someone educate me on when this patch was or will be entered into the
>>main code?  Below is the original reference.



-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: File Locking in XSLT

Posted by therandthem <th...@luarsoft.com>.
Cocoon 2 is UNUSABLE.  If no one cares I guess I will have to find something
else.

Later,

Richard

----- Original Message -----
From: "therandthem" <th...@luarsoft.com>
To: <co...@xml.apache.org>
Sent: Monday, January 21, 2002 7:25 AM
Subject: File Locking in XSLT


> A patch was submitted for a file locking problem in the XSLT portion of
> Cocoon 2.  I'm not sure about the process for these fixes, but I figured
it
> would be fixed in the CVS tree.  I checked out the code from CVS on
> 15-JAN-02.  I'm running it, but I still can't edit my .xsl files because
> they are locked by Cocoon.  It is so hard to get work done this way.
>
> Can someone educate me on when this patch was or will be entered into the
> main code?  Below is the original reference.
>
> Thanks,
>
> therandthem
>
> List:     xml-cocoon-dev
> Subject:  RE: [PATCH] XSLT file locking in Cocoon 2
> From:     "Vadim Gritsenko" <va...@verizon.net>
> Date:     2001-12-14 3:12:58
> [Download message RAW]
>
> Applied, please cross-check (bs.close() moved into finally block).
>
> Thanks,
> Vadim
>
> > -----Original Message-----
> > From: Michael Hartle [mailto:mhartle@hartle-klug.com]
> > Sent: Thursday, December 13, 2001 6:13 PM
> > To: Richard R. McKinley
> > Cc: cocoon-dev@xml.apache.org
> > Subject: [PATCH] XSLT file locking in Cocoon 2
> >
> > Richard R. McKinley wrote:
> >
> > > Was there any resolution to the random XSLT file locking in Cocoon
> 2?
> > > I search the net but didn't not find out if it was filed as a bug or
> > > solved.  You seem to have discovered the most likely reason for the
> > > problem.  Is there a patch you could share with me?  It is a
> constant
> > > problem on my server.
> > >
> > Today I patched the Cocoon 2.0 source release to slash that annoying
> > XSLT file locking bug (see
> > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=100419666331388&w=2).
> > After patching, I have not been experiencing any problems regarding
> file
> > locking at all for more than 4 hours with extensive XSLT development,
> so
> > I guess I squished that bug; before patching, file locking annoyed me
> > every 5-10 minutes or so.
> >
> > Attached please find both a patch.diff and an already patched
> > org.apache.cocoon.components.xslt.XSLTProcessorImpl.java. Just
> exchange
> > it, recompile the cocoon.jar, exchange your deployed cocoon.jar with
> the
> > new one, enjoy or report back problems ;)
> >
> > Best regards,
> >
> > Michael Hartle,
> > Hartle & Klug GbR
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org