@Override protected void stopInternal() throws LifecycleException { setState(LifecycleState.STOPPING); }
protected WebResourceSet createMainResourceSet() { String docBase = context.getDocBase(); WebResourceSet mainResourceSet; if (docBase == null) { mainResourceSet = new EmptyResourceSet(this); } else { File f = new File(docBase); if (!f.isAbsolute()) { f = new File(((Host)context.getParent()).getAppBaseFile(), f.getPath()); } if (f.isDirectory()) { mainResourceSet = new DirResourceSet(this, "/", f.getAbsolutePath(), "/"); } else if(f.isFile() && docBase.endsWith(".war")) { mainResourceSet = new WarResourceSet(this, "/", f.getAbsolutePath()); } else { throw new IllegalArgumentException( sm.getString("standardRoot.startInvalidMain", f.getAbsolutePath())); } } return mainResourceSet; }
public WebResource getResource(String path) { if (path.endsWith("/")) return super.getResource(path); URL url = appContext.getClassLoader().getResource(prefix + path); if (url == null) { return super.getResource(path); return super.getResource(path);
protected WebResourceSet createMainResourceSet() { String docBase = context.getDocBase(); WebResourceSet mainResourceSet; if (docBase == null) { mainResourceSet = new EmptyResourceSet(this); } else { File f = new File(docBase); if (!f.isAbsolute()) { f = new File(((Host)context.getParent()).getAppBaseFile(), f.getPath()); } if (f.isDirectory()) { mainResourceSet = new DirResourceSet(this, "/", f.getAbsolutePath(), "/"); } else if(f.isFile() && docBase.endsWith(".war")) { mainResourceSet = new WarResourceSet(this, "/", f.getAbsolutePath()); } else { throw new IllegalArgumentException( sm.getString("standardRoot.startInvalidMain", f.getAbsolutePath())); } } return mainResourceSet; }
LOGGER.info("Loading application resources from '" + additionClassesFolder.getAbsolutePath() + "'"); } else { resourceSet = new EmptyResourceSet(resources);
@Override protected void startInternal() throws LifecycleException { setState(LifecycleState.STARTING); }
LOGGER.info("Loading application resources from '" + additionClassesFolder.getAbsolutePath() + "'"); } else { resourceSet = new EmptyResourceSet(resources);
@Override protected void stopInternal() throws LifecycleException { setState(LifecycleState.STOPPING); }
@Override protected void startInternal() throws LifecycleException { setState(LifecycleState.STARTING); }