public TomcatClassPath(final ClassLoader classLoader) { this.commonLoader = classLoader; final ClassLoader serverLoader = getServerLoader(getContextClassLoader()); if (serverLoader != null && serverLoader != commonLoader) { this.serverLoader = serverLoader; } else { this.serverLoader = null; } }
public TomcatClassPath() { this(getCommonLoader(getContextClassLoader())); }
public TomcatClassPath() { this(getCommonLoader(getContextClassLoader())); }
public TomcatClassPath() { this(getCommonLoader(getContextClassLoader())); }
public TomcatClassPath(ClassLoader classLoader) { this.commonLoader = classLoader; try { addRepositoryMethod = getAddRepositoryMethod(); } catch (Exception tomcat4Exception) { try { addURLMethod = getAddURLMethod(); } catch (Exception tomcat5Exception) { throw new RuntimeException("Failed accessing classloader for Tomcat 5 or 6", tomcat5Exception); } } ClassLoader serverLoader = getServerLoader(getContextClassLoader()); if (serverLoader != null && serverLoader != commonLoader){ this.serverLoader = serverLoader; } else this.serverLoader = null; }
public TomcatClassPath(final ClassLoader classLoader) { this.commonLoader = classLoader; try { addRepositoryMethod = getAddRepositoryMethod(); } catch (final Exception tomcat4Exception) { try { addURLMethod = getAddURLMethod(); } catch (final Exception tomcat5Exception) { throw new LoaderRuntimeException("Failed accessing classloader for Tomcat 5 or 6", tomcat5Exception); } } final ClassLoader serverLoader = getServerLoader(getContextClassLoader()); if (serverLoader != null && serverLoader != commonLoader) { this.serverLoader = serverLoader; } else { this.serverLoader = null; } }