jetty debug 启动 jettyconfig配置文件
@Testpublic void serverStrart() throws Exception {Server server = new Server();XmlConfiguration configuration = new XmlConfiguration(new File(System.getProperty("user.dir")+"/etc/jetty_config.xml").toURI().toURL());configuration.configure(server);server.start();server.join();}
<?xml version="1.0" encoding="GBK"?><!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"><Configure id="Server" class="org.mortbay.jetty.Server"><Set name="ThreadPool"><New class="org.mortbay.thread.BoundedThreadPool"><Set name="minThreads">10</Set><Set name="maxThreads">250</Set><Set name="lowThreads">25</Set></New></Set><Property name="org.mortbay.util.URI.charset" default="GBK"/><Call name="addConnector"><Arg><New class="org.mortbay.jetty.nio.SelectChannelConnector"><Set name="port"><SystemProperty name="jetty.port" default="8888" /><!-- 端口号 --></Set><Set name="maxIdleTime">30000</Set><Set name="Acceptors">2</Set><Set name="statsOn">false</Set><Set name="confidentialPort">8443</Set><Set name="lowResourcesConnections">5000</Set><Set name="lowResourcesMaxIdleTime">5000</Set></New></Arg></Call><Set name="sessionIdManager"><New class="org.mortbay.jetty.servlet.HashSessionIdManager"><Set name="workerName">node1</Set></New></Set><Set name="handler"><New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection"><Set name="handlers"><Array type="org.mortbay.jetty.Handler"><Item><New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection" /></Item><Item><New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler" /></Item><Item><New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler" /></Item></Array></Set></New></Set><Set name="handler"><New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection"><Set name="handlers"><Array type="org.mortbay.jetty.Handler"><Item><New class="org.mortbay.jetty.webapp.WebAppContext"><Set name="contextPath">/</Set><!-- ContextPath --><Set name="resourceBase">F:/EDev/OA/Code/webapps/OA</Set><!-- Web应用根目录 --><Call name="addServlet"><Arg>org.mortbay.jetty.servlet.DefaultServlet</Arg><Arg>/</Arg></Call><!-- 增加其它的Servlet --></New></Item></Array></Set></New></Set><Set name="UserRealms"><Array type="org.mortbay.jetty.security.UserRealm"/></Set><Set name="stopAtShutdown">true</Set><Set name="sendServerVersion">true</Set><Set name="gracefulShutdown">1000</Set></Configure>
jetty debug 启动 jettyconfig配置文件的更多相关文章
- maven eclipse jetty debug
可以通过查看最近版本: http://mvnrepository.com/artifact/org.eclipse.jetty/jetty-server http://search.maven.org ...
- myeclipse配置下tomcat debug启动很无比慢
myeclipse配置下tomcat debug启动很无比慢,而run启动很快今天照常使用MyEclipse 6.5 Blue Edition进行开发,但是却遇到一个怪问题.在MyEclipse环境下 ...
- gradle中使用嵌入式(embedded) tomcat, debug 启动
在gradle项目中使用embedded tomcat. 最开始部署项目需要手动将web项目打成war包,然后手动上传到tomcat的webapp下,然后启动tomcat来部署项目.这种手动工作通常还 ...
- tomcat中debug启动和start启动的区别
debug启动tomcat:修改代码不加方法,不加参数,只是单纯的修改方法,不用重启tomcat(热部署). start启动tamcat:修改代码需要重启tomcat.
- 意想不到的的异常-由于eclipse和tomcat的交互出错-eclipse断点导致debug启动缓慢
足足启动了200多秒,正赶上hibernate 的使用上全部换使用方式,修改了很多代码.赶在这个节骨点上,出现debug 启动时卡在hibernate 启动的地方不动了,也没掉到debug断点的地方. ...
- eclipse中tomcat可以start启动,无法debug启动的解决
设置断点,进行程序调试,但是debug启动tomcat,却无法启动,并且会报超时异常. 原因可能是eclipse和tomcat启动时读取文件发生冲突 去掉所有的断点,然后重新debug启动,再设置断点 ...
- jetty debug修改 java static 静态变量值不会生效
在jetty debug模式下修改static静态变量值不会重新Load 因为jetty是嵌入式web容器,static静态变量是全局的,如果想生效,就必须重启jetty 在热部署的时候tomcat会 ...
- jetty 代码启动
jetty代码启动 jetty 版本为:jetty-distribution-8.1.16.v20140903 public class ServerStart extends Server { @T ...
- springboot 选择启动某个配置文件
选择启动某个配置文件 Spring Boot配置文件提供了隔离一部分应用程序配置的方法,并可使其仅在某指定环境可用.任何有@Component和@Configuration注解的Bean都用@prof ...
随机推荐
- A. Candy Bags
A. Candy Bags http://codeforces.com/problemset/problem/334/A time limit per test 1 second memory l ...
- 对于“Newtonsoft.Json”已拥有为“NETStander.Library”定义的依赖项,解决办法
问题描述: 在使用visual studio中的NuGet包管理下载程序时,有时会出现-对于“Newtonsoft.Json”已拥有为“NETStander.Library”定义的依赖项,这样的错误. ...
- xtrabackup部分备份数据库 Partial Backups
官方文档: 部分备份: http://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/partial_backups_innobacku ...
- Access数据库中日期时间类型的时间段查询
例: select ID,预设点,备注 from 预设点派车预警 where ( 到达时间>=#2013-01-01 12:12:12# and 到达时间<=#2016-01-24 2 ...
- MySQL子查询的优化
本文基于MySQL5.7.19测试 创建四张表,pt1.pt2表加上主键 mysql> create table t1 (a1 int, b1 int); mysql> create ta ...
- Shell脚本开发规范
一.前言 由于工作需要,最近重新开始拾掇shell脚本.虽然绝大部分命令自己平时也经常使用,但是在写成脚本的时候总觉得写的很难看.而且当我在看其他人写的脚本的时候,总觉得难以阅读.毕竟shell脚本这 ...
- linux 压缩和解压命令
Linux下的压缩解压缩命令详解及实例 实例:压缩服务器上当前目录的内容为xxx.zip文件 zip -r xxx.zip ./* 解压zip文件到当前目录 unzip filename.zip == ...
- Keras 2.0版本运行
Keras 2.0版本运行demo出错: d:\program\python3\lib\site-packages\ipykernel_launcher.py:8: UserWarning: Upda ...
- Python 爬虫 使用正则去掉不想要的网页元素
在做爬虫的时候,我们总是不想去看到网页的注释,或者是网页的一些其他元素,有没有好的办法去掉他们呢? 例如:下面的问题 第一种情况<ahref="http://artso.artron. ...
- linux环境下matlab连接mysql
因为matlab是基于java的,但是原生的matlab是没有jdbc的,这是一个java的mysql connection. 只有matlab有这个包,才能正确的连接mysql. 1.在http:/ ...