quality@glassfish.java.net

RE: [SJSU] auto deployment error?

From: Karen Ho <hokar_at_hotmail.com>
Date: Wed, 1 Apr 2009 17:04:43 -0700

Hi Tim,

I tried what you suggested and the result is the same. I also tried
starting the domain with autodeploy flag = false and then enable it. It
still won't deploy after setting the flag to true. Only disabling of the
auto deploy flag works without domain restart.

Should I file this as a bug?

Karen

-----Original Message-----
From: Judy.J.Tang_at_Sun.COM [mailto:Judy.J.Tang_at_Sun.COM]
Sent: Tuesday, March 31, 2009 9:21 PM
To: quality_at_glassfish.dev.java.net
Subject: Re: [SJSU] auto deployment error?

Thanks Tim. Your answer is great help to encourage students to expend
the testing. Good job Karen !

Judy

Tim Quinn wrote:
> Hi, Karen.
>
> The autodeployer is indeed intended to respond dynamically to changes
> in its enabled/disabled state, both ways.
>
> It would be interesting to know what happens if you replaced your
> steps 11 and 12 with:
>
> 11. Copy the hello.war into the autodeploy directory.
>
> At that point, with the autodeployer re-enabled, I expect it would
> have detected the newly-added file and deployed the app.
>
> We'd need to look at this to be sure, but the autodeployer might clear
> its internal recordkeeping when it is disabled and then re-enabled.
>
> We could look at modifying the autodeployer so it re-examines the
> directory upon re-enable if we think this is an important enough
> problem. If you think the autodeployer should be changed along these
> lines please open an issue.
>
> Thanks.
>
> - Tim
>
> Karen Ho wrote:
>>
>> Hi,
>>
>> I am not sure if this is a bug or not, please kindly help to verify.
>>
>> 1. Start the Admin Console
>>
>> 2. Check the auto deploy setting in "Application Server" ->
>> "Advanced" tab, it is enabled. Now try to copy the hello.war into the
>> autodeploy folder
>>
>> 3. Hello.war is successfully deployed after 1 or 2 seconds
>>
>> 4. Disable the auto deploy in "Application Server" -> select
>> "Advanced" tab
>>
>> 5. Undeploy the hello application with Admin Console
>>
>> 6. Remove the hello.war and hello.war_deployed and
>> .autodeploystatus\hello.war files from the auto deploy folder
>>
>> 7. Copy the hello.war file to the auto deploy folder again
>>
>> 8. It won't deploy which is expected. So I delete the hello.war file
>> from the auto deploy folder
>>
>> 9. Now, enable the auto deploy setting in "Application Server" ->
>> "Advanced" tab again. Repeat step 7 above. Hello.war file is not
>> deployed no matter how long I wait.
>>
>> 10. Remove the hello.war file from auto deploy folder
>>
>> 11. Stop the domin and start it again
>>
>> 12. Re-check the auto deploy setting, it is enabled. Repeat step 7
>> again, now the hello.war is deployed.
>>
>> Question: Since I found that disabling the auto deploy flag does not
>> require domain restart to take effect, therefore I also think that
>> enabling auto deploy flag does not need domain restart as well. Do I
>> have any misunderstandings?
>>
>> GlassFish Version: v3 Prelude (build b28c)
>>
>> Thanks & Regards,
>>
>> Karen
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: quality-help_at_glassfish.dev.java.net