本文整理了Java中org.mortbay.jetty.webapp.WebAppContext.setParentLoaderPriority()
方法的一些代码示例,展示了WebAppContext.setParentLoaderPriority()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.setParentLoaderPriority()
方法的具体详情如下:
包路径:org.mortbay.jetty.webapp.WebAppContext
类名称:WebAppContext
方法名:setParentLoaderPriority
暂无
代码示例来源:origin: org.kuali.student.core/ks-common-test
webAppcontext.setParentLoaderPriority(true);
webAppcontext.setContextPath(this.contextPath); // e.g. /brms-ws-0.1.0-SNAPSHOT
webAppcontext.setWar(webAppsPath.getCanonicalPath());
代码示例来源:origin: org.sonatype.plexus/plexus-jetty6
webAppContext.setParentLoaderPriority( false );
代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server
wah.setExtractWAR(_extract);
wah.setWar(app.toString());
wah.setParentLoaderPriority(_parentLoaderPriority);
代码示例来源:origin: skyscreamer/yoga
public void run( boolean join ) throws Exception
{
context = new WebAppContext();
context.setResourceBase( "src/main/webapp" );
context.setContextPath( "/" );
context.setParentLoaderPriority( true );
context.setInitParams( Collections.singletonMap( "org.mortbay.jetty.servlet.Default.aliases", "true" ) );
server.setHandler( context );
server.start();
init();
if ( join )
{
server.join();
}
}
代码示例来源:origin: NGDATA/lilyproject
private Server createServer() throws Exception {
if (this.useSolrCloud) {
// create path on zookeeper for solr cloud
ZooKeeperItf zk = ZkUtil.connect("localhost:2181", 10000);
ZkUtil.createPath(zk, "/solr");
zk.close();
}
Server server = new Server(solrPort);
WebAppContext ctx = new WebAppContext(solrWarPath, "/solr");
// The reason to change the classloading behavior was primarily so that the logging libraries would
// be inherited, and hence that Solr would use the same logging system & conf.
ctx.setParentLoaderPriority(true);
server.addHandler(ctx);
return server;
}
代码示例来源:origin: spring-projects/spring-hadoop-samples-old
/**
* @throws Exception
* @throws InterruptedException
*/
private static void createWebContainerWithWebXML() throws Exception,
InterruptedException {
String webappDirLocation = "src/main/resources/META-INF/webapp/";
Server server = new Server(8080);
WebAppContext root = new WebAppContext();
root.setContextPath("/");
root.setDescriptor(webappDirLocation + "/WEB-INF/web.xml");
root.setResourceBase(webappDirLocation);
root.setParentLoaderPriority(true);
server.setHandler(root);
server.start();
server.join();
}
}
代码示例来源:origin: spring-projects/spring-hadoop-samples-old
public void start() throws Exception {
this.server = new Server(this.port);
WebAppContext root = new WebAppContext();
root.setContextPath("/");
root.setDescriptor(webappDirLocation + "/web.xml");
root.setResourceBase(webappDirLocation);
root.setParentLoaderPriority(true);
this.server.setHandler(root);
this.server.setStopAtShutdown(true);
this.server.start();
databaseServer = org.h2.tools.Server.createTcpServer(new String[]{"-tcpAllowOthers"}).start();
this.server.join();
}
代码示例来源:origin: org.springframework.osgi/spring-osgi-web
wac.setParentLoaderPriority(false);
代码示例来源:origin: org.springframework.osgi/org.springframework.osgi.web
wac.setParentLoaderPriority(false);
内容来源于网络,如有侵权,请联系作者删除!