I have a portlet web app which depends on some classes loaded from an EAR deployed in the same Jboss server. However, for some reason Jboss tries to deploy my portlet war prior to my EAR and hence results in some classnot found exceptions. Once jboss starts with this error if I now redeploy the portlet it works fine (because the EAR is now already loaded).
Could you please advice on how to overcome the above problem during startup. Please note that my portlet only uses the EAR for making an ejb call and can not be part of the EAR itself.
You just have to replace the EAR file by a SAR file and tu put the WAR file into the SAR and it will works better!!