Home » Language IDEs » ServerTools (WTP) » Publishing a webapp when resource files are locked
Publishing a webapp when resource files are locked [message #168845] |
Tue, 09 May 2006 22:15 |
Adrian Pang Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Hi,
I am trying to solve a problem that I am having with WTP publishing. I
use a library in my web application, which keeps one of the resource
files locked when running on an application server. If I deploy my web
application to Tomcat, the application will run fine. However, every
time I edit the locked resource file in the IDE when the application is
already running, WTP displays:
"Error copying file to (my workspace
location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\...
Error deleting:
(my workspace
location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\... "
Is that a way I can workaround this? The file is locked for delete but
I can overwrite the file...
I tried the antiResourceLocking flag for Tomcat, but I am hoping to find
a solution that works for all servers and still allow me to make
modifications to the file.
For example, if there's a way I can hook up to an extension point such
that I can stop/restart the web application during publish, I'll be able
to release the lock on the resource files and overwrite them...
Thanks,
ap
|
|
|
Re: Publishing a webapp when resource files are locked [message #168899 is a reply to message #168845] |
Wed, 10 May 2006 13:13 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
My understanding is that this is a Windows issue, so outside of
replacing your OS, I'm not sure what can be done beyond what the
application offers. I believe that Tomcat achieves the "anti-locking"
by making copies so the original remains writable while the server uses
the copy. Obviously, this impacts startup and deployment performance.
Cheers,
Larry
ap wrote:
> Hi,
>
> I am trying to solve a problem that I am having with WTP publishing. I
> use a library in my web application, which keeps one of the resource
> files locked when running on an application server. If I deploy my web
> application to Tomcat, the application will run fine. However, every
> time I edit the locked resource file in the IDE when the application is
> already running, WTP displays:
>
> "Error copying file to (my workspace
> location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\...
> Error deleting:
> (my workspace
> location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\... "
>
> Is that a way I can workaround this? The file is locked for delete but
> I can overwrite the file...
>
> I tried the antiResourceLocking flag for Tomcat, but I am hoping to find
> a solution that works for all servers and still allow me to make
> modifications to the file.
>
> For example, if there's a way I can hook up to an extension point such
> that I can stop/restart the web application during publish, I'll be able
> to release the lock on the resource files and overwrite them...
>
> Thanks,
> ap
|
|
|
Re: Publishing a webapp when resource files are locked [message #168921 is a reply to message #168899] |
Wed, 10 May 2006 15:19 |
Adrian Pang Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Thanks, Larry. I am wondering, if it's not possible to fully fix this
issue on Windows, whether or not there's a way I can customize the
publishing logic, such that I can tell the server adapters to restart
the application as opposed to publishing the modified resource? This
behavior is similar to modification to any resources in the WEB-INF
folder, except I would like to be able to extend the list of items that
will trigger a restart...
Thanks,
ap
Larry Isaacs wrote:
> My understanding is that this is a Windows issue, so outside of
> replacing your OS, I'm not sure what can be done beyond what the
> application offers. I believe that Tomcat achieves the "anti-locking"
> by making copies so the original remains writable while the server uses
> the copy. Obviously, this impacts startup and deployment performance.
>
> Cheers,
> Larry
>
> ap wrote:
>> Hi,
>>
>> I am trying to solve a problem that I am having with WTP publishing.
>> I use a library in my web application, which keeps one of the resource
>> files locked when running on an application server. If I deploy my
>> web application to Tomcat, the application will run fine. However,
>> every time I edit the locked resource file in the IDE when the
>> application is already running, WTP displays:
>>
>> "Error copying file to (my workspace
>> location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\...
>> Error deleting:
>> (my workspace
>> location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\... "
>>
>> Is that a way I can workaround this? The file is locked for delete
>> but I can overwrite the file...
>>
>> I tried the antiResourceLocking flag for Tomcat, but I am hoping to
>> find a solution that works for all servers and still allow me to make
>> modifications to the file.
>>
>> For example, if there's a way I can hook up to an extension point such
>> that I can stop/restart the web application during publish, I'll be
>> able to release the lock on the resource files and overwrite them...
>>
>> Thanks,
>> ap
|
|
|
Re: Publishing a webapp when resource files are locked [message #169127 is a reply to message #168921] |
Thu, 11 May 2006 14:05 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
The issue should be fixable, but what can be easily done with the
current code base, I'm not sure. There is no "list" that I'm aware of.
Larry
ap wrote:
> Thanks, Larry. I am wondering, if it's not possible to fully fix this
> issue on Windows, whether or not there's a way I can customize the
> publishing logic, such that I can tell the server adapters to restart
> the application as opposed to publishing the modified resource? This
> behavior is similar to modification to any resources in the WEB-INF
> folder, except I would like to be able to extend the list of items that
> will trigger a restart...
>
> Thanks,
> ap
>
> Larry Isaacs wrote:
>> My understanding is that this is a Windows issue, so outside of
>> replacing your OS, I'm not sure what can be done beyond what the
>> application offers. I believe that Tomcat achieves the "anti-locking"
>> by making copies so the original remains writable while the server
>> uses the copy. Obviously, this impacts startup and deployment
>> performance.
>>
>> Cheers,
>> Larry
>>
>> ap wrote:
>>> Hi,
>>>
>>> I am trying to solve a problem that I am having with WTP publishing.
>>> I use a library in my web application, which keeps one of the
>>> resource files locked when running on an application server. If I
>>> deploy my web application to Tomcat, the application will run fine.
>>> However, every time I edit the locked resource file in the IDE when
>>> the application is already running, WTP displays:
>>>
>>> "Error copying file to (my workspace
>>> location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\...
>>> Error deleting:
>>> (my workspace
>>> location)\.metadata.plugins\org.eclipse.wst.server.core\tmp0 \webapps\... "
>>>
>>>
>>> Is that a way I can workaround this? The file is locked for delete
>>> but I can overwrite the file...
>>>
>>> I tried the antiResourceLocking flag for Tomcat, but I am hoping to
>>> find a solution that works for all servers and still allow me to make
>>> modifications to the file.
>>>
>>> For example, if there's a way I can hook up to an extension point
>>> such that I can stop/restart the web application during publish, I'll
>>> be able to release the lock on the resource files and overwrite them...
>>>
>>> Thanks,
>>> ap
|
|
|
Goto Forum:
Current Time: Wed Sep 18 20:39:24 GMT 2024
Powered by FUDForum. Page generated in 0.02689 seconds
|