Does your .ear file contain any .war files? If yes, does that .war have .jar files in the WEB-INF/lib folder? If it does (and if your application is not a Servlet 3.0 application) then add a file named jboss-scanning.xml to the .war/WEB-INF folder with the following contents:
<scanning xmlns="urn:jboss:scanning:1.0"> <!-- Purpose: Disable scanning for annotations in contained deployment. --> </scanning>
See if it makes a difference.
Thanks a lot
It really works. Now it's starts up in less 1 minut and 30 seconds. Wow, what a great improvement.
Right now I'm not using servlet 3.0 but in the future I'm going to migrate to servlet 3 and abandon google-guice, so I know how to control the process of scanning.
Once again, thanks a lot.