public WebAppInfo configureApplication(WebModule webModule) throws OpenEJBException { AppModule appModule = new AppModule(webModule.getClassLoader(), webModule.getJarLocation()); appModule.getWebModules().add(webModule); AppInfo appInfo = configureApplication(appModule); return appInfo.webApps.get(0); }
private WebModule extractWebApp(final URI moduleUri) { if (module == null || module.getJarLocation() == null) { return null; } final File appModuleFile = new File(module.getJarLocation()); File moduleFile; try { moduleFile = URLs.toFile(moduleUri.toURL()); } catch (final MalformedURLException e) { return null; } catch (final IllegalArgumentException iae) { final File f = new File(appModuleFile, moduleUri.getPath()); if (f.exists()) { moduleFile = f; } else { LOGGER.warning("Illegal uri: " + moduleUri, iae); return null; } } for (final WebModule webModule : module.getWebModules()) { if (webModule.getJarLocation() != null && isParent(new File(webModule.getJarLocation()), moduleFile, appModuleFile)) { return webModule; } } return null; }
private WebModule extractWebApp(final URI moduleUri) { if (module == null || module.getJarLocation() == null) { return null; } final File appModuleFile = new File(module.getJarLocation()); File moduleFile; try { moduleFile = URLs.toFile(moduleUri.toURL()); } catch (final MalformedURLException e) { return null; } catch (final IllegalArgumentException iae) { final File f = new File(appModuleFile, moduleUri.getPath()); if (f.exists()) { moduleFile = f; } else { LOGGER.warning("Illegal uri: " + moduleUri, iae); return null; } } for (final WebModule webModule : module.getWebModules()) { if (webModule.getJarLocation() != null && isParent(new File(webModule.getJarLocation()), moduleFile, appModuleFile)) { return webModule; } } return null; }
final File warFile = new File(webModule.getJarLocation()); final WebApp webApp = webModule.getWebApp(); if (webApp != null) {
File warFile = new File(webModule.getJarLocation()); WebApp webApp = webModule.getWebApp(); if (webApp != null) {
final File warFile = new File(webModule.getJarLocation()); final WebApp webApp = webModule.getWebApp(); if (webApp != null) {
File warFile = new File(webModule.getJarLocation()); WebApp webApp = webModule.getWebApp(); if (webApp != null) {
File warFile = new File(webModule.getJarLocation()); WebApp webApp = webModule.getWebApp(); if (webApp != null) {
if (file.getAbsolutePath().equals(webModule.getJarLocation())) { continue;
if (file.getAbsolutePath().equals(webModule.getJarLocation())) { continue;
private void addConnectorModules(final AppModule appModule, final WebModule webModule) throws OpenEJBException { final String jarLocation = new File(webModule.getJarLocation(), "/WEB-INF/classes").getAbsolutePath(); final ConnectorModule connectorModule = createConnectorModule(jarLocation, jarLocation, webModule.getClassLoader(), webModule.getModuleId() + "RA", (URL) webModule.getAltDDs().get("ra.xml")); appModule.getConnectorModules().add(connectorModule);
final File warFile = new File(webModule.getJarLocation()); final WebApp webApp = webModule.getWebApp(); if (webApp != null) {
final File warFile = new File(webModule.getJarLocation()); final WebApp webApp = webModule.getWebApp(); if (webApp != null) {
File file = new File(webModule.getJarLocation()); URL[] urls = DeploymentLoader.getWebappUrls(file); final ClassLoader webClassLoader = webModule.getClassLoader();
private static void addConnectorModules(final AppModule appModule, final WebModule webModule) throws OpenEJBException { final String jarLocation = new File(webModule.getJarLocation(), "/WEB-INF/classes").getAbsolutePath(); final ConnectorModule connectorModule = createConnectorModule(jarLocation, jarLocation, webModule.getClassLoader(), webModule.getModuleId() + "RA", (URL) webModule.getAltDDs().get("ra.xml")); if (connectorModule != null) {
private void buildWebModules(AppModule appModule, JndiEncInfoBuilder jndiEncInfoBuilder, AppInfo appInfo) throws OpenEJBException { for (WebModule webModule : appModule.getWebModules()) { WebApp webApp = webModule.getWebApp(); WebAppInfo webAppInfo = new WebAppInfo(); webAppInfo.description = webApp.getDescription(); webAppInfo.displayName = webApp.getDisplayName(); webAppInfo.codebase = webModule.getJarLocation(); webAppInfo.moduleId = webModule.getModuleId(); webAppInfo.watchedResources.addAll(webModule.getWatchedResources()); webAppInfo.host = webModule.getHost(); webAppInfo.contextRoot = webModule.getContextRoot(); webAppInfo.jndiEnc = jndiEncInfoBuilder.build(webApp, webModule.getJarLocation(), webAppInfo.moduleId); webAppInfo.portInfos.addAll(configureWebservices(webModule.getWebservices())); configureWebserviceSecurity(webAppInfo, webModule); for (Servlet servlet : webModule.getWebApp().getServlet()) { ServletInfo servletInfo = new ServletInfo(); servletInfo.servletName = servlet.getServletName(); servletInfo.servletClass = servlet.getServletClass(); webAppInfo.servlets.add(servletInfo); } appInfo.webApps.add(webAppInfo); } }
AppModule appModule = new AppModule(webModule.getClassLoader(), webModule.getJarLocation());
final EjbModule webEjbModule = new EjbModule(webModule.getClassLoader(), webModule.getModuleId(), webModule.getJarLocation(), null, null); webEjbModule.setWebapp(true); webEjbModule.getAltDDs().putAll(webModule.getAltDDs());
webAppInfo.description = webApp.getDescription(); webAppInfo.displayName = webApp.getDisplayName(); webAppInfo.path = webModule.getJarLocation(); webAppInfo.moduleId = webModule.getModuleId(); webAppInfo.watchedResources.addAll(webModule.getWatchedResources()); jndiEncInfoBuilder.build(webApp, webModule.getJarLocation(), webAppInfo.moduleId, webModule.getModuleUri(), webAppInfo.jndiEnc, webAppInfo.jndiEnc);
final EjbModule webEjbModule = new EjbModule(webModule.getClassLoader(), webModule.getModuleId(), webModule.getJarLocation(), null, null); webEjbModule.setWebapp(true); webEjbModule.getAltDDs().putAll(webModule.getAltDDs());