Creating a custom server.xml file with Tomcat
来源:互联网 发布:华为手机克隆软件 编辑:程序博客网 时间:2024/05/21 11:29
Typically, when you run your web application using Tomcat in the JBuilder IDE, JBuilder creates a serverXXXX.xml file (where XXXX is the port number Tomcat is listening to)and deletes it when you shut down Tomcat. You can edit the file and force JBuilder to keep it.
To create a custom server.xml file:
1.Run your web application in JBuilder as you normally would.
2.Go to your project’s Tomcat/conf directory while Tomcat is running. This folder is created by JBuilder when your web application is running.
3.Make a copy of the conf directory in a temp directory.
4.Open serverXXXX.xml in the conf directory in a text editor.
5.Remove the second line of the file:<!--This comment marks this file as generated, so it may be deleted and regenerated at any time. To preserve manual changes to this file, delete this comment.--> With this line removed, JBuilder will not automatically delete the file when you stop the server.
6.Make other changes to the server configuration file as needed. (Save the file and leave it open in the editor.)
7.Go back to JBuilder and shut down Tomcat.
8.Save the edited file to the copy of the conf directory.
9.Copy the conf directory back to your project’s Tomcat directory.
10.Restart the web server and your web application.
Now, when you re-start the web application and the web server, your edited serverXXXX.xml file will be used instead of an auto-generated one.
--摘自JBuilder2005 Developing Applications for J2EE™ Servers文档
- Creating a custom server.xml file with Tomcat
- Creating Custom ASP.NET Server Controls with Embedded JavaScript
- Creating a Custom View
- Creating custom View - Creating a View Class
- Creating a custom data descriptor
- Tutorial: Creating a custom button
- Hack3--Creating a custom ViewGroup
- Creating a Data dictionary file to use with LogMi
- Creating a sequential file
- C# Creating a Custom Mouse Cursor
- Creating a Custom SharePoint 2007 List Definition
- Creating a Custom Timer Job Definition
- Creating custom UITableViewCell's within a Storyboard
- Creating a custom ViewGroup(自定义ViewGroup)
- Creating Excel File Through XML
- Creating a Game with CocosBuilder
- Creating a Game with CocosBuilder
- Creating a Game with CocosBuilder
- 考研 PK 找工作
- 一个asp.net Page的生死轮回
- 金庸在浙江大学招博士生的考卷
- 酒桌上的严氏公关
- 基本教程篇--第五节BarChartSampleDemo.cs介绍
- Creating a custom server.xml file with Tomcat
- Effective C++
- 关于中小型软件企业技术管理的建议
- 修身齐家治国平天下 读《战国策》和《编程卓越之道》有感
- Programming Attention Points
- 第一个设计模式:简单工厂
- pb10 调用api乱码
- strdup ( ) 【C语言库函数源代码】
- 在xna中管理资源