Skip to main content

web.xml redeploy required?

4 replies [Last post]
Anonymous

Hi,

If I changed web.xml file, do I have to redeploy the .war file again?
(glassfish v2)
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ludovic Champenois

On 8/17/09 10:11 AM, Hu Zhang wrote:
> Hi,
>
> If I changed web.xml file, do I have to redeploy the .war file
> again? (glassfish v2)
>
Yes..Critical info changes there would need a redeploy...For ex,
adding/removing/renaming a servlet or a resource or whatever....
Ludo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Hu Zhang

But it would be very inconvenient. Adding a servlet is a very common thing.
Will the redeployment cause a long down time on the server?

On Mon, Aug 17, 2009 at 1:15 PM, Ludovic Champenois <
Ludovic.Champenois@sun.com> wrote:

> On 8/17/09 10:11 AM, Hu Zhang wrote:
>
>> Hi,
>>
>> If I changed web.xml file, do I have to redeploy the .war file again?
>> (glassfish v2)
>>
>> Yes..Critical info changes there would need a redeploy...For ex,
> adding/removing/renaming a servlet or a resource or whatever....
> Ludo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
[att1.html]

Hong Zhang

> But it would be very inconvenient. Adding a servlet is a very common
> thing. Will the redeployment cause a long down time on the server?
>
No, the redeployment should not take too long (a few seconds for a
simple web application).

And you can use directory (re)deployment so you don't have to repackage
your application after you make changes.

> On Mon, Aug 17, 2009 at 1:15 PM, Ludovic Champenois
> > wrote:
>
> On 8/17/09 10:11 AM, Hu Zhang wrote:
>
> Hi,
>
> If I changed web.xml file, do I have to redeploy the .war
> file again? (glassfish v2)
>
> Yes..Critical info changes there would need a redeploy...For ex,
> adding/removing/renaming a servlet or a resource or whatever....
> Ludo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

[att1.html]

Hong Zhang

Yes.

>
>
> If I changed web.xml file, do I have to redeploy the .war file
> again? (glassfish v2)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net