Hello folks,
I was boneheaded enough to stick an ear file in the deploy directory
which started a ton of error messages. After checking around bugzilla I
found that the same problem has been reported although I'm not sure if
it's for the same reason. In any case, autodeploy will only deploy
infinitely if the lastmodified date of the file being deployed is zero
(which only happens if the file is not found, I think) so this should
fix bug #23 as well.
best regards,
Ron
Here's the diff:
Index: jboss/src/main/org/jboss/ejb/AutoDeployer.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/AutoDeployer.java,v
retrieving revision 1.4
diff -r1.4 AutoDeployer.java
186a187,200
> //lm == 0 if deployment.watch.getFile() doesn't exist
> // or the URL doesn't exist
> if( lm == 0 && deployment.lastModified == 0)
> {
> log.error("Auto deply of " + deployment.url + " failed.
>Cannot find " + deployment.watch + ".");
> //hack! we have to somehow have a sign that
> // we have processed this URL
> // 1 seems to be a good idea. Since if the modified
>date
> // is found it wont likely be 1
> //endhack!
> deployment.lastModified = 1;
> continue;
> }
>