We are running JBossAS 5.1.0 for JDK6 and we have recently encountered a crazy problem where JARs will sometimes disappear from the tmp WEB-INF/lib directory of our deployed EARs. Not all the time and not on all our servers.
So far, the missing JARs have just been richfaces-impl-3.3.3.Final.jar and richfaces-ui-3.3.3.Final.jar.
Is there any reason why a JAR (or any other file) would disapper from the tmp/ directory?
Here's some background:
We run four JBoss AS 5.1.0 servers, not clustered. We deploy two exploded EARs to each machine. The EARs are effectively identical except for DB configuration. We do not hot deploy the EARs, but we do allow hot deploy of the XHTML files in the exploded WAR contained in the EAR.
We don't have any problems during deployment.
We first notice the problem a few days after deployment when a user gets an error trying to access some obscure admin page. Then the server throws a ClassNotFoundException trying to load a RichFaces class. When I compare the deploy and tmp directories for that EAR, I find that the RichFaces jars are missing. Sometimes one, sometimes both. Not on all the machines, and not even on both EARs.
Last time this happened two machines are affected. One was missing two files in one EAR, the other was missing one file in each EAR.
If I try to copy the JAR back in to the tmp directory, the classloader does not recognize it is there. So it knows when it goes away, but not when it comes back.
I hadn't seen this issue before, but just this week some other user too has been complaining about missing richfaces jars http://community.jboss.org/thread/167694?tstart=0 from the war. I'm not sure if it's the same, but does look similar. He however couldn't reproduce this issue on JBoss AS 5.1.0.