You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Gross <m....@evolt.de> on 2003/02/11 16:36:08 UTC

Sharing violation when editing JSP file

Hi,

 I ported an existing web application to Struts 1.1b3. Now I am
 getting a sharing violation whenever I try to save an edited JSP file
 after testing the application. The file seems to be locked by Tomcat.
 After restarting tomcat everything works fine as long as I do not test the
 application in my browser.

 My environment is Tomcat 4.0.3 on Win2K with Struts 1.1b3. Does
 anybody know of a solution? It is very annoying to restart tomcat for
 each small change in a JSP.

Regards,

 Martin


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


Re: Sharing violation when editing JSP file

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 11 Feb 2003, Martin Gross wrote:

> Date: Tue, 11 Feb 2003 16:36:08 +0100
> From: Martin Gross <m....@evolt.de>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
>      Martin Gross <m....@evolt.de>
> To: Struts Users Mailing List <st...@jakarta.apache.org>
> Subject: Sharing violation when editing JSP file
>
> Hi,
>
>  I ported an existing web application to Struts 1.1b3. Now I am
>  getting a sharing violation whenever I try to save an edited JSP file
>  after testing the application. The file seems to be locked by Tomcat.
>  After restarting tomcat everything works fine as long as I do not test the
>  application in my browser.
>
>  My environment is Tomcat 4.0.3 on Win2K with Struts 1.1b3. Does
>  anybody know of a solution? It is very annoying to restart tomcat for
>  each small change in a JSP.
>

Tomcat 4.0.3 did indeed leave files open on occasion, which shows up as
sharing violations on Windows.  Upgrade to 4.1.18 to avoid this.

However, switching Struts versions would not have done anything to trigger
the problem -- Struts itself does not open the JSP pages.

> Regards,
>
>  Martin

Craig

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