private Class loadClass(final String className) throws OpenEJBException { try { final Class clazz = Class.forName(className, true, classLoader); // clazz.getDeclaredMethods(); // clazz.getDeclaredFields(); // clazz.getDeclaredConstructors(); // clazz.getInterfaces(); return clazz; } catch (final Throwable e) { throw new OpenEJBException("Unable to load class " + className); } } }
public String getMessage() { return delegate.getMessage(); }
public void printStackTrace(final PrintWriter writer) { delegate.printStackTrace(writer); } }
appDir = appDir.getCanonicalFile(); } catch (IOException e) { throw new OpenEJBException("Invalid application directory " + appDir.getAbsolutePath()); throw new OpenEJBException("Invalid path to module " + e.getMessage(), e); throw new OpenEJBException("Unable to determine the module type of " + entry.getKey() + ": Exception: " + e.getMessage(), e); throw new OpenEJBException("Malformed URL to app. " + e.getMessage(), e); logger.error("Unable to load EJBs from EAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e); logger.error("Unable to load RAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e); addWebModule(appModule, URLs.toFilePath(warUrl), appClassLoader, webContextRoots.get(moduleName), moduleName); } catch (OpenEJBException e) { logger.error("Unable to load WAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e);
throw new OpenEJBException("Can't find resource for " + ref.getOrigin() + ". (" + e.getMessage() + ")", e.getCause());
addFacesConfigs(webModule); } catch (OpenEJBException e1) { logger.error("Unable to add faces config modules in " + standardContext.getPath() + ": Exception: " + e1.getMessage(), e1); e1.printStackTrace(); annotationDeployer.deploy(webModule); } catch (OpenEJBException e) { logger.error("Unable to process annotation in " + standardContext.getPath() + ": Exception: " + e.getMessage(), e);
logger.debug("finished invoking method " + method.getName() + ". Return value:" + returnValue); } else { final Throwable exception = openEjbException.getRootCause() != null ? openEjbException.getRootCause() : openEjbException; logger.debug("finished invoking method " + method.getName() + " with exception " + exception);
public String getMessage() { final Throwable rootCause = getCause(); if (rootCause != null) { return super.getMessage() + ": " + rootCause.getMessage(); } else { return super.getMessage(); } }
appDir = appDir.getCanonicalFile(); } catch (final IOException e) { throw new OpenEJBException("Invalid application directory " + appDir.getAbsolutePath()); throw new OpenEJBException("Invalid path to module " + e.getMessage(), e); throw new OpenEJBException("Malformed URL to app. " + e.getMessage(), e); appModule.getEjbModules().add(ejbModule); } catch (final OpenEJBException e) { logger.error("Unable to load EJBs from EAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e); logger.error("Unable to load RAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e); addWebModule(appModule, warUrl, appClassLoader, webContextRoots.get(moduleName), null); } catch (final OpenEJBException e) { logger.error("Unable to load WAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e);
throw new OpenEJBException("Can't find resource for " + ref.getOrigin() + ". (" + e.getMessage() + ")", e.getCause());
logger.debug("finished invoking method " + method.getName() + ". Return value:" + returnValue); } else { final Throwable exception = openEjbException.getRootCause() != null ? openEjbException.getRootCause() : openEjbException; logger.debug("finished invoking method " + method.getName() + " with exception " + exception);
public String getMessage() { final Throwable rootCause = getCause(); if (rootCause != null) { return super.getMessage() + ": " + rootCause.getMessage(); } else { return super.getMessage(); } }
private Class loadClass(String className) throws OpenEJBException { try { Class clazz = Class.forName(className, true, classLoader); // clazz.getDeclaredMethods(); // clazz.getDeclaredFields(); // clazz.getDeclaredConstructors(); // clazz.getInterfaces(); return clazz; } catch (Throwable e) { throw new OpenEJBException("Unable to load class " + className); } } }
appDir = appDir.getCanonicalFile(); } catch (final IOException e) { throw new OpenEJBException("Invalid application directory " + appDir.getAbsolutePath()); throw new OpenEJBException("Invalid path to module " + e.getMessage(), e); throw new OpenEJBException("Malformed URL to app. " + e.getMessage(), e); appModule.getEjbModules().add(ejbModule); } catch (final OpenEJBException e) { logger.error("Unable to load EJBs from EAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e); logger.error("Unable to load RAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e); addWebModule(appModule, warUrl, appClassLoader, webContextRoots.get(moduleName), null); } catch (final OpenEJBException e) { logger.error("Unable to load WAR: " + appId + ", module: " + moduleName + ". Exception: " + e.getMessage(), e);
public String getMessage() { return delegate.getMessage(); }
public void printStackTrace(final PrintWriter writer) { delegate.printStackTrace(writer); } }
logger.debug("finished invoking method " + method.getName() + ". Return value:" + returnValue); } else { final Throwable exception = openEjbException.getRootCause() != null ? openEjbException.getRootCause() : openEjbException; logger.debug("finished invoking method " + method.getName() + " with exception " + exception);
public String getMessage() { Throwable rootCause = getCause(); if (rootCause != null) { return super.getMessage() + ": " + rootCause.getMessage(); } else { return super.getMessage(); } }
public static Field getField(final Class clazz, final String fieldName) throws OpenEJBException { try { return clazz.getField(fieldName); } catch (final NoSuchFieldException e) { throw new OpenEJBException("Unable to get primary key field from entity bean class: " + clazz.getName(), e); } }
String msg = messages.format("config.noContainerFound", d.getContainerId(), d.getEjbName()); logger.fatal(msg); throw new OpenEJBException(msg); ConfigUtils.logger.warning("conf.0004", ejbModule.getJarLocation(), e.getMessage()); throw e; appInfo.libs.add(file.getCanonicalPath()); } catch (IOException e) { throw new OpenEJBException("Invalid application lib path " + file.getAbsolutePath()); throw new OpenEJBException("Unable to marshal cmp entity mappings", e);