When redeploy a .war file to Jboss, i get following errors:
StandardContext[/jasper_webapp]: Resources start failed:
StandardContext[/jasper_webapp]: Context startup failed due to previous errors
StandardContext[/jasper_webapp]: Exception during cleanup after start failed
LifecycleException: Container StandardContext[/jasper_webapp] has bot been started
By redeploy the file (copy to deploy directory) against or restart Jboss, the problem is fixed.
This problem occurs occasionally.
Is this a problem with Jboss? Is there any mean to redeploy the application (say using jmx-console)?
Version: Jboss 3.0.6 + Tomcat 4.1.18
Thanks in advance.
Don't use copy, use move.
Move is an atomic operation when it is on the
same file system.
With copy the timestamp is set at the start of
the operation but it might not be finished copying
when jboss sees the changed file.