随笔 - 6  文章 - 129  trackbacks - 0
<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 815966
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

tomcat
Apache2+Tomcat6+MOD_JK集群      摘要: o run session replication in your Tomcat 6.0 container, the following steps should be completed:

All your session attributes must implement java.io.Serializable
Uncomment the Cluster element in server.xml
If you have defined custom cluster valves, make sure you have the ReplicationValve defined as well under the Cluster element in server.xml
If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each inst  阅读全文
posted @ 2011-06-16 12:02 Ke 阅读(1246) | 评论 (0)  编辑
config.getServletContext().getRealPath("/")返回NULL的解決辦法      摘要: java.net.URL url = this.getClass().getResource("/");
String mSchemaPath = url.getFile();
if (mSchemaPath != null || !mSchemaPath.equals("")) {
String separator = "/";
int lastSlash = mSchemaPath.lastIndexOf(separator);
if (lastSlash == -1) {
separator = "\\";
lastSlash = mSchemaPath.lastIndexOf(separator);
}
prefix = mSchemaPath.substring(0, lastSlash);  阅读全文
posted @ 2010-12-03 22:06 Ke 阅读(2406) | 评论 (0)  编辑
eclipse項目發布webapps      摘要: 1:找到 server 面板,右击当前的那个 tomcat,先 remove 掉其中所有的工程
2:再右击那个 tomcat,选择 clean... 清空一下
3:双击那个 tomcat,会打开属性面板,找到左边第二个 server locations,你那个单选框选中的应该是第一个,你选择第三个,在 server path 中输入你想要的路径后,保存即可以了  阅读全文
posted @ 2010-10-21 15:34 Ke 阅读(405) | 评论 (0)  编辑
Tomcat 內存溢出
posted @ 2010-01-05 08:52 Ke 阅读(1505) | 评论 (0)  编辑
Apache + Tomcat 负载均衡及Session绑定的实现(轉)      摘要: 本測試使用的軟體下載地址:

http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/

http://archive.apache.org/dist/httpd/binaries/win32/
  阅读全文
posted @ 2009-11-26 15:26 Ke 阅读(472) | 评论 (0)  编辑