|
Re: Tomcat redeploys web application when a JSP get changed [message #222504 is a reply to message #222434] |
Tue, 30 September 2008 16:23 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Mohsen Saboorian wrote:
> Hi,
>
> I have two duplicate web applications, one in Ganyede 3.4.0 and one in
> 3.4.1. In both projects "Automacitally publish when resources change" is
> selected. In 3.4.0 my configuration works fine and tomcat doesn't redeploy
> application on a jsp change, but the new 3.4.1 redeploys tomcat as I change
> a jsp. When TC decides a redeploy? I also chacked for modify date of web.xml
> but it was not modified. I've noticed that whenever a jsp is changed,
> org.eclipse.wst.server.core/tmpx/conf/server.xml is also modified (in both
> projects).
>
> Any hint how to prevent redeploying on page changes?
>
> Mohsen.
>
>
Rather than guess, what exactly do you mean by "redeploys tomcat". It's
not clear whether you are referring to something Tomcat is doing, like
reloading a webapp, or something WTP is doing, like publishing the
server or asking for a restart.
Cheers,
Larry
|
|
|
Re: Tomcat redeploys web application when a JSP get changed [message #222570 is a reply to message #222504] |
Sun, 05 October 2008 19:47 |
Eclipse User |
|
|
|
Originally posted by: mohsen.siahe.com
I mean an application redeploy. My webapp is reloaded if any page changes.
Any workaround?
Thanks,
Mohsen.
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:gbtjqt$i8c$1@build.eclipse.org...
> Mohsen Saboorian wrote:
>> Hi,
>>
>> I have two duplicate web applications, one in Ganyede 3.4.0 and one in
>> 3.4.1. In both projects "Automacitally publish when resources change" is
>> selected. In 3.4.0 my configuration works fine and tomcat doesn't
>> redeploy application on a jsp change, but the new 3.4.1 redeploys tomcat
>> as I change a jsp. When TC decides a redeploy? I also chacked for modify
>> date of web.xml but it was not modified. I've noticed that whenever a jsp
>> is changed, org.eclipse.wst.server.core/tmpx/conf/server.xml is also
>> modified (in both projects).
>>
>> Any hint how to prevent redeploying on page changes?
>>
>> Mohsen.
>
> Rather than guess, what exactly do you mean by "redeploys tomcat". It's
> not clear whether you are referring to something Tomcat is doing, like
> reloading a webapp, or something WTP is doing, like publishing the server
> or asking for a restart.
>
> Cheers,
> Larry
|
|
|
Re: Tomcat redeploys web application when a JSP get changed [message #222585 is a reply to message #222570] |
Mon, 06 October 2008 15:23 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Just changing a JSP shouldn't cause a redeploy. I did some simple
testing with Eclipse 3.4.1 and WTP 3.0.2 to confirm this. Your
redeployments, suggest something else is getting published that is
triggering the reload. Rewriting of server.xml during each publish is
normal and wouldn't trigger the reload.
You can try right-clicking on the Tomcat server in the Servers view and
selecting "Clean...". This will cause a full publish for all projects
on the server and may clean out some error in the publish data that
might be causing some additional file(s) to be unnecessarily published.
If that doesn't help we'll have to dig deeper to find what is
triggering the reloads.
Cheers,
Larry
Mohsen Saboorian wrote:
> I mean an application redeploy. My webapp is reloaded if any page changes.
> Any workaround?
>
> Thanks,
> Mohsen.
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:gbtjqt$i8c$1@build.eclipse.org...
>> Mohsen Saboorian wrote:
>>> Hi,
>>>
>>> I have two duplicate web applications, one in Ganyede 3.4.0 and one in
>>> 3.4.1. In both projects "Automacitally publish when resources change" is
>>> selected. In 3.4.0 my configuration works fine and tomcat doesn't
>>> redeploy application on a jsp change, but the new 3.4.1 redeploys tomcat
>>> as I change a jsp. When TC decides a redeploy? I also chacked for modify
>>> date of web.xml but it was not modified. I've noticed that whenever a jsp
>>> is changed, org.eclipse.wst.server.core/tmpx/conf/server.xml is also
>>> modified (in both projects).
>>>
>>> Any hint how to prevent redeploying on page changes?
>>>
>>> Mohsen.
>> Rather than guess, what exactly do you mean by "redeploys tomcat". It's
>> not clear whether you are referring to something Tomcat is doing, like
>> reloading a webapp, or something WTP is doing, like publishing the server
>> or asking for a restart.
>>
>> Cheers,
>> Larry
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04562 seconds