Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Tomcat redeploys web application when a JSP get changed
Tomcat redeploys web application when a JSP get changed [message #222434] Tue, 30 September 2008 05:30 Go to next message
Mohsen Saboorian is currently offline Mohsen SaboorianFriend
Messages: 19
Registered: July 2009
Junior Member
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.
Re: Tomcat redeploys web application when a JSP get changed [message #222504 is a reply to message #222434] Tue, 30 September 2008 16:23 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
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
>
>
Previous Topic:JSP Validator Hates Spring's form:errors Tag
Next Topic:Re: Adding an XML Editor to a product
Goto Forum:
  


Current Time: Fri Mar 29 08:26:48 GMT 2024

Powered by FUDForum. Page generated in 0.02223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top