1 Reply Latest reply on Jun 13, 2011 1:33 AM by jaikiran pai

    JARs being deleted from WAR WEB-INF/lib

    Steven Skovran Newbie



      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?


      Thank you


      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.