public String getMessage() { return delegate.getMessage(); }
public String getMessage() { return delegate.getMessage(); }
public String getMessage() { return delegate.getMessage(); }
public static void fillOpenEjb(final Openejb openejb, final Properties sysProps) { for (final Map.Entry<Object, Object> entry : sysProps.entrySet()) { final Object o = entry.getValue(); if (!(o instanceof String)) { continue; } if (!((String) o).startsWith("new://")) { continue; } final String name = (String) entry.getKey(); final String value = (String) entry.getValue(); try { final Object service = toConfigDeclaration(name, value); openejb.add(service); } catch (final URISyntaxException e) { logger.error("Error declaring service '" + name + "'. Invalid Service URI '" + value + "'. java.net.URISyntaxException: " + e.getMessage()); } catch (final OpenEJBException e) { logger.error(e.getMessage()); } } }
public static void fillOpenEjb(final Openejb openejb, final Properties sysProps) { for (final Map.Entry<Object, Object> entry : sysProps.entrySet()) { final Object o = entry.getValue(); if (!(o instanceof String)) { continue; } if (!((String) o).startsWith("new://")) { continue; } final String name = (String) entry.getKey(); final String value = (String) entry.getValue(); try { final Object service = toConfigDeclaration(name, value); openejb.add(service); } catch (final URISyntaxException e) { logger.error("Error declaring service '" + name + "'. Invalid Service URI '" + value + "'. java.net.URISyntaxException: " + e.getMessage()); } catch (final OpenEJBException e) { logger.error(e.getMessage()); } } }
private void loadPropertiesDeclaredConfiguration(Openejb openejb) { Properties sysProps = new Properties(System.getProperties()); sysProps.putAll(SystemInstance.get().getProperties()); for (Map.Entry<Object, Object> entry : sysProps.entrySet()) { Object o = entry.getValue(); if (!(o instanceof String)) continue; if (!((String) o).startsWith("new://")) continue; String name = (String) entry.getKey(); String value = (String) entry.getValue(); try { URI uri = new URI(value); openejb.add(toConfigDeclaration(name, uri)); } catch (URISyntaxException e) { logger.error("Error declaring service '" + name + "'. Invalid Service URI '" + value + "'. java.net.URISyntaxException: " + e.getMessage()); } catch (OpenEJBException e) { logger.error(e.getMessage()); } } }
@Override public Object newInstance(String className, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException { try { final Class<?> clazz = classLoader.loadClass(className); final Object object = webContext.newInstance(clazz); postConstruct(object, clazz); return object; } catch (OpenEJBException e) { throw (InstantiationException) new InstantiationException(e.getMessage()).initCause(e); } catch (WebBeansConfigurationException e) { throw (InstantiationException) new InstantiationException(e.getMessage()).initCause(e); } }
public AppInfo configureApplication(final File jarFile) throws OpenEJBException { logger.debug("Beginning load: " + jarFile.getAbsolutePath()); try { final AppModule appModule = deploymentLoader.load(jarFile); final AppInfo appInfo = configureApplication(appModule); // TODO This is temporary -- we need to do this in AppInfoBuilder appInfo.paths.add(appInfo.path); appInfo.paths.add(jarFile.getAbsolutePath()); return appInfo; } catch (final ValidationFailedException e) { logger.warning("configureApplication.loadFailed", jarFile.getAbsolutePath(), e.getMessage()); // DO not include the stacktrace in the message throw e; } catch (final OpenEJBException e) { // DO NOT REMOVE THE EXCEPTION FROM THIS LOG MESSAGE // removing this message causes NO messages to be printed when embedded logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage()); throw e; } }
public AppInfo configureApplication(File jarFile) throws OpenEJBException { logger.debug("Beginning load: " + jarFile.getAbsolutePath()); AppInfo appInfo; try { AppModule appModule = deploymentLoader.load(jarFile); appInfo = configureApplication(appModule); } catch (ValidationFailedException e) { logger.warning("configureApplication.loadFailed", jarFile.getAbsolutePath(), e.getMessage()); // DO not include the stacktrace in the message throw e; } catch (OpenEJBException e) { // DO NOT REMOVE THE EXCEPTION FROM THIS LOG MESSAGE // removing this message causes NO messages to be printed when embedded logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage()); throw e; } return appInfo; }
public AppInfo configureApplication(final File jarFile) throws OpenEJBException { logger.debug("Beginning load: " + jarFile.getAbsolutePath()); try { final AppModule appModule = deploymentLoader.load(jarFile, null); final AppInfo appInfo = configureApplication(appModule); // we need the finder for web scanning so push it to what sees TomcatWebAppBuilder, ie the info tree // this is clean up in Assembler for safety and TomcatWebAppBuilder when used if (!appModule.getWebModules().isEmpty()) { for (final WebAppInfo info : appInfo.webApps) { for (final EjbModule ejbModule : appModule.getEjbModules()) { if (ejbModule.getModuleId().equals(info.moduleId) && ejbModule.getFinder() != null) { appInfo.properties.put(info, ejbModule); } } } } // TODO This is temporary -- we need to do this in AppInfoBuilder appInfo.paths.add(appInfo.path); appInfo.paths.add(jarFile.getAbsolutePath()); return appInfo; } catch (final ValidationFailedException e) { logger.warning("configureApplication.loadFailed", jarFile.getAbsolutePath(), e.getMessage()); // DO not include the stacktrace in the message throw e; } catch (final OpenEJBException e) { // DO NOT REMOVE THE EXCEPTION FROM THIS LOG MESSAGE // removing this message causes NO messages to be printed when embedded logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage()); throw e; } }
logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage()); throw e; logger.warning("configureApplication.loadFailed", e, id, e.getMessage()); throw e;
logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage()); throw e;
logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage()); throw e;
retValue = container.invoke(deploymentID, interfaceType, interfce, method, args, null); } catch (OpenEJBException e) { logger.debug("entityEjbHomeHandler.containerInvocationFailure", e, e.getMessage()); throw e;
retValue = container.invoke(deploymentID, interfaceType, interfce, method, args, null); } catch (final OpenEJBException e) { logger.debug("entityEjbHomeHandler.containerInvocationFailure", e, e.getMessage()); throw e;
retValue = container.invoke(deploymentID, interfaceType, interfce, method, args, null); } catch (final OpenEJBException e) { logger.debug("entityEjbHomeHandler.containerInvocationFailure", e, e.getMessage()); throw e;
throw new OpenEJBException("Can't find resource for " + ref.getOrigin() + ". (" + e.getMessage() + ")", e.getCause());
/** * embedded usage * * @param classLoader classloader * @param id id supplied from embedded properties or null * @param jarFiles list of ejb modules * @return configured AppInfo * @throws OpenEJBException on error */ public AppInfo configureApplication(final ClassLoader classLoader, final String id, final List<File> jarFiles) throws OpenEJBException { final AppModule collection = loadApplication(classLoader, id, jarFiles); final AppInfo appInfo; try { appInfo = configureApplication(collection); } catch (final ValidationFailedException e) { logger.warning("configureApplication.loadFailed", collection.getModuleId(), e.getMessage()); // DO not include the stacktrace in the message throw e; } catch (final OpenEJBException e) { // DO NOT REMOVE THE EXCEPTION FROM THIS LOG MESSAGE // removing this message causes NO messages to be printed when embedded logger.warning("configureApplication.loadFailed", e, collection.getModuleId(), e.getMessage()); throw e; } return appInfo; }
throw new OpenEJBException("Can't find resource for " + ref.getOrigin() + ". (" + e.getMessage() + ")", e.getCause());
/** * embedded usage * * @param classLoader classloader * @param id id supplied from embedded properties or null * @param jarFiles list of ejb modules * @return configured AppInfo * @throws OpenEJBException on error */ public AppInfo configureApplication(final ClassLoader classLoader, final String id, final List<File> jarFiles) throws OpenEJBException { final AppModule collection = loadApplication(classLoader, id, jarFiles); final AppInfo appInfo; try { appInfo = configureApplication(collection); } catch (final ValidationFailedException e) { logger.warning("configureApplication.loadFailed", collection.getModuleId(), e.getMessage()); // DO not include the stacktrace in the message throw e; } catch (final OpenEJBException e) { // DO NOT REMOVE THE EXCEPTION FROM THIS LOG MESSAGE // removing this message causes NO messages to be printed when embedded logger.warning("configureApplication.loadFailed", e, collection.getModuleId(), e.getMessage()); throw e; } return appInfo; }