marc fleury wrote:

> I am working on the latest jboss2.4-jetty stuff to update the website.
>
> Now I know I am not supposed to post user questions on jboss-deb but please
> bear with me before you flame me.
>
> I have 2 problem:
> 1- double deployment: when I rebuild the website, the autodeployer deploys
> twice.  Tears down and deploys and again. strange... is this an autodeployer
> bug?

The double deployment stuff - hmmmm - I'll leave that to someone else....

>
> 2- / trouble: if I request the page during redeployment of the / context it
> seems to fail with a not found error that prevents future deployments.
>

Greg has already explained this to Marc, but just for the benefit of the list :

- J2EEDeployer tells Jetty to undeploy the EAR
- Jetty stops and destroys the associated context object
- before the next instruction from the J2EEDeployer to deploy the same EAR
again a user gets in with a request.
- finding no context object mapped to '/' Jetty thoughfully dynamically builds
one that returns a NotFoundError
- when the ear is finally redeployed this other context shadows the ear's

A simple solution is (hopefully) to go in via the JMX interface or the Admin
servlet (localhost:8080/Admin) locate the '/' context that contains the
NotFoundHandler and destroy it. Then the ear's '/' handler should receive all
the requests meant for '/' and life should proceed as intended.

Greg has checked a fix into CVS, I shall be talking to him about the problem.


Jules




>
> If this is just me and I should really be trolling the forums feel free to
> let me know :)
>
> marcf
>
> _________________
> Marc Fleury, Ph.D
> [EMAIL PROTECTED]
> _________________
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to