public EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException { AppModule appModule = new AppModule(ejbModule.getClassLoader(), ejbModule.getJarLocation()); appModule.getEjbModules().add(ejbModule); AppInfo appInfo = configureApplication(appModule); return appInfo.ejbJars.get(0); }
private void initSecurityRoles(EjbModule jar, EjbJarInfo ejbJarInfo) { List<SecurityRole> roles = jar.getEjbJar().getAssemblyDescriptor().getSecurityRole(); for (SecurityRole sr : roles) { SecurityRoleInfo info = new SecurityRoleInfo(); info.description = sr.getDescription(); info.roleName = sr.getRoleName(); if (securityRoles.contains(sr.getRoleName())) { ConfigUtils.logger.warning("conf.0102", jar.getJarLocation(), sr.getRoleName()); } else { securityRoles.add(sr.getRoleName()); } ejbJarInfo.securityRoles.add(info); } }
private void initSecurityRoles(final EjbModule jar, final EjbJarInfo ejbJarInfo) { final List<SecurityRole> roles = jar.getEjbJar().getAssemblyDescriptor().getSecurityRole(); for (final SecurityRole sr : roles) { final SecurityRoleInfo info = new SecurityRoleInfo(); info.description = sr.getDescription(); info.roleName = sr.getRoleName(); if (securityRoles.contains(sr.getRoleName())) { ConfigUtils.logger.warning("conf.0102", jar.getJarLocation(), sr.getRoleName()); } else { securityRoles.add(sr.getRoleName()); } ejbJarInfo.securityRoles.add(info); } }
private void initSecurityRoles(final EjbModule jar, final EjbJarInfo ejbJarInfo) { final List<SecurityRole> roles = jar.getEjbJar().getAssemblyDescriptor().getSecurityRole(); for (final SecurityRole sr : roles) { final SecurityRoleInfo info = new SecurityRoleInfo(); info.description = sr.getDescription(); info.roleName = sr.getRoleName(); if (securityRoles.contains(sr.getRoleName())) { ConfigUtils.logger.warning("conf.0102", jar.getJarLocation(), sr.getRoleName()); } else { securityRoles.add(sr.getRoleName()); } ejbJarInfo.securityRoles.add(info); } }
logger.debug("can't look for server event listener for module " + ejb.getModuleUri(), mue); } catch (final Exception e) { logger.error("can't look for server event listener for module " + ejb.getJarLocation());
AppModule appModule = new AppModule(ejbModule.getClassLoader(), ejbModule.getJarLocation()); appModule.getEjbModules().add(ejbModule);
logger.debug("can't look for server event listener for module " + ejb.getModuleUri(), iae); } catch (final Exception e) { logger.error("can't look for server event listener for module " + ejb.getJarLocation());
ejbModule.setClientModule(new ClientModule(null, ejbModule.getClassLoader(), ejbModule.getJarLocation(), null, ejbModule.getModuleId()));
for (EnterpriseBean bean : jar.getEjbJar().getEnterpriseBeans()) { if (!deployed.containsKey(bean.getEjbName())){ ConfigUtils.logger.warning("conf.0018", bean.getEjbName(), jar.getJarLocation()); String message = messages.format("conf.0008", jar.getJarLocation(), "" + beansInEjbJar, "" + beansDeployed); logger.warning(message); throw new OpenEJBException(message); ejbJar.jarPath = jar.getJarLocation(); ejbJar.moduleId = jar.getModuleId(); if (ejbJar.moduleId == null) { String message = messages.format("conf.0100", beanInfo.ejbDeploymentId, jar.getJarLocation(), beanInfo.ejbName); logger.warning(message); throw new OpenEJBException(message); beanInfo.codebase = jar.getJarLocation(); infos.put(beanInfo.ejbName, beanInfo); items.put(beanInfo.ejbName, bean);
ConfigUtils.logger.warning("conf.0018", bean.getEjbName(), jar.getJarLocation()); final String message = messages.format("conf.0008", jar.getJarLocation(), String.valueOf(beansInEjbJar), String.valueOf(beansDeployed)); logger.warning(message); throw new OpenEJBException(message); ejbJar.path = jar.getJarLocation(); ejbJar.moduleUri = jar.getModuleUri(); ejbJar.moduleId = jar.getModuleId(); final String message = messages.format("conf.0100", beanInfo.ejbDeploymentId, jar.getJarLocation(), beanInfo.ejbName); logger.warning(message); throw new OpenEJBException(message); beanInfo.codebase = jar.getJarLocation(); infos.put(beanInfo.ejbName, beanInfo); items.put(beanInfo.ejbName, bean);
ConfigUtils.logger.warning("conf.0018", bean.getEjbName(), jar.getJarLocation()); final String message = messages.format("conf.0008", jar.getJarLocation(), String.valueOf(beansInEjbJar), String.valueOf(beansDeployed)); logger.warning(message); throw new OpenEJBException(message); ejbJar.path = jar.getJarLocation(); ejbJar.moduleUri = jar.getModuleUri(); ejbJar.moduleId = jar.getModuleId(); final String message = messages.format("conf.0100", beanInfo.ejbDeploymentId, jar.getJarLocation(), beanInfo.ejbName); logger.warning(message); throw new OpenEJBException(message); beanInfo.codebase = jar.getJarLocation(); infos.put(beanInfo.ejbName, beanInfo); items.put(beanInfo.ejbName, bean);
ConfigUtils.logger.warning("conf.0004", ejbModule.getJarLocation(), e.getMessage()); throw e; EjbJarInfo ejbJar = ejbJarInfos.get(ejbModule.getJarLocation());
if (ejbModule.getJarLocation() != null) { try { String location = ejbModule.getJarLocation(); File file = new File(location); startupLogger.warning("startup.scrapeFailedForModule", ejbModule.getJarLocation()); return ejbModule;
ConfigUtils.logger.warning("conf.0004", ejbModule.getJarLocation(), e.getMessage()); throw e;
ConfigUtils.logger.warning("conf.0004", ejbModule.getJarLocation(), e.getMessage()); throw e;
startupLogger.warning("startup.scrapeFailedForModule", ejbModule.getJarLocation()); return ejbModule; } catch (final Exception e) { if (ejbModule.getJarLocation() != null && ejbModule.getJarLocation().contains(ejbModule.getModuleId() + "/target/test-classes".replace("/", File.separator))) {
startupLogger.warning("startup.scrapeFailedForModule", ejbModule.getJarLocation()); return ejbModule; } catch (final Exception e) { if (ejbModule.getJarLocation() != null && (ejbModule.getJarLocation().contains(ejbModule.getModuleId() + "/target/test-classes".replace("/", File.separator)) || ejbModule.getJarLocation().contains(ejbModule.getModuleId() + "/build/classes/test".replace("/", File.separator)))) {