return applicationInfo;
}
public static void parseWarReferences(PortletRequest request, WARConfigData data, URL warUrl)
throws Exception {
WebDeployable webDeployable = new WebDeployable(warUrl);
ClassLoader classLoader = webDeployable.getModuleLoader();
ApplicationInfo applicationInfo = createApplicationInfo(request, warUrl);
Module module = (Module) (applicationInfo.getModules().toArray()[0]);
WebAppType webApp = (WebAppType) module.getSpecDD();
ClassFinder classFinder = null;
try {
classFinder = AbstractWebModuleBuilder.createWebAppClassFinder(webApp, classLoader);
// classFinder = new ClassFinder(classLoader);
} catch (DeploymentException e1) {
// Some of the class types referred in the WAR cannot be resolved.
// A typical case would be references to EJBs already deployed into the system, and
// hence not packaged inside WEB-INF/lib directory of WAR.
// try adding all EJBs deployed in the system as parents of this WAR, and
// see if referred classes can now be successfully resolved
classLoader = new WebDeployable(warUrl, getEjbClassLoaders(request)).getModuleLoader();
try {
classFinder = AbstractWebModuleBuilder.createWebAppClassFinder(webApp, classLoader);
} catch (DeploymentException e2) {
return;
}