private void createApplicationFromFiles(final String appId, final ClassLoader tmpClassLoader, final Map<String, URL> ejbModules, final Map<String, URL> clientModules, final Map<String, URL> resouceModules, final Map<String, URL> webModules, final HashMap<String, URL> files) throws OpenEJBException { for (final Map.Entry<String, URL> entry : files.entrySet()) { // if (entry.getKey().startsWith("lib/")) continue;// will not be scanned since we don't get folder anymore if (!entry.getKey().matches(".*\\.(jar|war|rar|ear)")) { continue; } try { detectAndAddModuleToApplication(appId, tmpClassLoader, ejbModules, clientModules, resouceModules, webModules, entry); } catch (final UnsupportedOperationException | UnknownModuleTypeException e) { // Ignore it as per the javaee spec EE.8.4.2 section 1.d.iii logger.info("Ignoring unknown module type: " + entry.getKey()); } catch (final Exception e) { throw new OpenEJBException("Unable to determine the module type of " + entry.getKey() + ": Exception: " + e.getMessage(), e); } } }
private void createApplicationFromFiles(final String appId, final ClassLoader tmpClassLoader, final Map<String, URL> ejbModules, final Map<String, URL> clientModules, final Map<String, URL> resouceModules, final Map<String, URL> webModules, final HashMap<String, URL> files) throws OpenEJBException { for (final Map.Entry<String, URL> entry : files.entrySet()) { // if (entry.getKey().startsWith("lib/")) continue;// will not be scanned since we don't get folder anymore if (!entry.getKey().matches(".*\\.(jar|war|rar|ear)")) { continue; } try { detectAndAddModuleToApplication(appId, tmpClassLoader, ejbModules, clientModules, resouceModules, webModules, entry); } catch (final UnsupportedOperationException e) { // Ignore it as per the javaee spec EE.8.4.2 section 1.d.iii logger.info("Ignoring unknown module type: " + entry.getKey()); } catch (final UnknownModuleTypeException e) { // Ignore it as per the javaee spec EE.8.4.2 section 1.d.iii logger.info("Ignoring unknown module type: " + entry.getKey()); } catch (final Exception e) { throw new OpenEJBException("Unable to determine the module type of " + entry.getKey() + ": Exception: " + e.getMessage(), e); } } }
for (final URL url : configurer.additionalURLs()) { try { detectAndAddModuleToApplication(appId, tmpClassLoader, ejbModules, clientModules, resouceModules, webModules, new ImmutablePair<>(URLs.toFile(url).getAbsolutePath(), url));
for (final URL url : configurer.additionalURLs()) { try { detectAndAddModuleToApplication(appId, tmpClassLoader, ejbModules, clientModules, resouceModules, webModules, new ImmutablePair<String, URL>(URLs.toFile(url).getAbsolutePath(), url));