public static NotSerializableException newNotSerializableException(final Throwable cause) {
return initCause(new NotSerializableException(), cause);
}
public static NoModulesFoundException newNoModulesFoundException() {
return new NoModulesFoundException(Join.join("\n", "No modules found to deploy.", "1)Maybe descriptors are placed in incorrect location.", "Descriptors could go under: ", "<base-dir>/META-INF or <base-dir>/WEB-INF", "but not directly under <base-dir>", "Check 'Application Discovery via the Classpath' docs page for more info", "2)Maybe no modules are present in the classpath.", "Is 'openejb.base' system property pointing to the intended location?")
);
}