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 ...
随机推荐
- ubuntu源列表(清华,阿里,官方,选一即可)
Ubuntu的源列表在/etc/apt/sources.list中,替换即可 #清华的源deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial m ...
- linux达人养成计划学习笔记(六)—— 挂载命令
一.查询与自动挂载 mount #查询系统中已挂载的设备 mount -a #根据配置文件/etc/fstab的内容,自动挂载 二.挂载命令格式 mount [-t 文件系统] [-o 特殊选项] 设 ...
- Python之包管理工具
安装Python包的过程中,经常涉及到distutils.setuptools.distribute.setup.py.easy_install.easy_install和pip等等. distuil ...
- Android程序员必备精品资源
平时写程序中不断收集到的一些比较常用的东西,分享给大家. 实用工具集锦 Android Lifecycle https://github.com/xxv/android-lifecycle TinyP ...
- Spring Cloud启动应用时指定IP或忽略某张网卡配置
说明:分布式应用部署到服务上,由于服务器可能存在多张网卡,造成IP地址不准的问题. 解决方法: 1.直接添加忽略某张网卡的配置: spring.cloud.inetutils.ignored-inte ...
- GC那些事儿--Android内存优化第一弹
引言 接App优化之内存优化(序), 作为App优化系列中内存优化的一个小部分. 由于内存相关知识比较生涩, 内存优化中使用到的相关工具, 也有很多专有名词. 对Java内存管理, GC, Andro ...
- 64位平台C/C++开发注意事项
在http://www.viva64.com/en/l/上例出了28个在64位平台上使用C/C++开发的注意事项,对于进入64位时代的程序员应该去看看这28个事项,这些英文读物对于有C/C++功底的朋 ...
- vc2010 属性值无效 灾难性故障 解决方法
原文链接: http://blog.csdn.net/enterlly/article/details/8739281 说明: 我遇到这个问题是这样的,在为某个类添加消息时出现的.因为该类不在此工程的 ...
- 反射式光电开关QRE1113
The QRE1113 is a small IR reflectance sensor. This sensor is often used in line following robots bec ...
- 有关java调用方法参数传递的分析
这个问题好多文章都讲过了,在此本人补充一下,加深理解,有不足之处请指教. 相信做java开发同学们都知道,调用方法传递参数时,不论是基本类还是引用类型, java都是值传递,不存在引用传递(称引用传递 ...