posts - 264, comments - 0, trackbacks - 11, articles - 71
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

Java 服务器配置与维护

     摘要: 这是比较根本的办法:修改服务器的 server.xml 文件: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/> 加上 URIEncoding 属性,然后重启服务器。  阅读全文

posted @ 2009-11-12 01:55 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 做成类似 Microsoft.NET SqlHelper 的 Java 实现。用到了 apache-commons-dbutils-1.1 类库、JDBC、正则表达式、Java 泛型、Annotation 属性标注。可作为自定义 framework 的一部分。  阅读全文

posted @ 2008-01-14 16:41 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 主要原因是 JSP 文件编译时出错,应检查 JSP 中包含的 JspTag 是否有编译错误。work 目录中 jsp 文件不存在(尤其是 class 没有被编译出来)将直接导致访问该 jsp 时浏览器报告 404 File Not Found 错误。  阅读全文

posted @ 2007-08-12 21:12 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 一个应用服务器不会告诉你真实错误原因的问题,一个很莫名其妙的解决办法。  阅读全文

posted @ 2007-08-12 20:32 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: jboss\server\default\deploy\jbossweb-tomcatxx.sar\conf\web.xml把 <servlet> <servlet-name>default</servlet-name> <servlet-class> org.apache.catalina.servlets.DefaultServlet </...  阅读全文

posted @ 2007-07-03 08:48 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 适用于 XFire 自动生成的 Web 服务元数据类型,以及 Apache Commons BeanUtils.copyProperties 方法。  阅读全文

posted @ 2007-06-27 23:53 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: IFRAME, Runnable thread  阅读全文

posted @ 2007-06-27 15:24 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-06-27 14:18 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 负责解释相同命名空间下的 Request 和 Response 对象的 ObjectFactory.java 被覆盖,手工备份然后手工合并即可解决。  阅读全文

posted @ 2007-06-26 00:16 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: jmx-console  阅读全文

posted @ 2007-06-22 12:07 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: jmx-console  阅读全文

posted @ 2007-06-22 11:54 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 保护 jmx-console 和 web-console  阅读全文

posted @ 2007-06-22 11:46 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: jmx-console  阅读全文

posted @ 2007-06-22 11:21 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 方便、快捷、好用!适用于用 XFire 取回 .NET Web Service 的 Response 后的后续工作 ^_^  阅读全文

posted @ 2007-06-05 19:06 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 很简单的序列化、反序列化方法,省不少力气  阅读全文

posted @ 2007-06-05 18:12 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 在 tomcat 的 web.xml 中启用 compilerSourceVM 选项,设值为 1.5  阅读全文

posted @ 2007-04-18 15:19 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-04-14 20:53 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-04-14 20:52 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-04-14 20:51 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-04-14 20:50 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-04-06 11:10 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-04-04 10:22 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-03-09 10:30 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-03-07 17:47 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: JSP 按地址引用,JSP TAG 按值引用  阅读全文

posted @ 2007-03-07 14:26 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-02-28 12:23 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-02-28 11:49 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-02-02 11:19 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-02-02 11:17 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: private protected public friendly static final 等的作用域  阅读全文

posted @ 2007-02-02 09:30 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-01-24 15:08 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 现在的 jstl.jar 不需要手工使用 ExpressionEvaluatorManager.evaluate() 方法转换 ${} 变量,是自动装配的  阅读全文

posted @ 2007-01-14 23:16 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-01-14 20:42 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-01-10 09:55 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2007-01-08 17:56 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-10 09:10 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-08 23:01 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: Configuration 应尽可能被共享  阅读全文

posted @ 2006-12-07 05:10 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-05 22:27 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-05 22:24 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-04 12:13 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-03 00:47 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 在 web.xml 中一个 Servlet 类可以做多个映射  阅读全文

posted @ 2006-12-02 23:12 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-02 22:36 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-12-02 20:32 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-11-25 17:40 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: String 内置的JavaScript转换、默认值处理、Sequence 内置的计数器 xxx_index 、分段器 chunk  阅读全文

posted @ 2006-11-25 13:47 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 测试如下内容:
·对象属性/方法、HashMap、对象数组、List遍历、遍历时排序、
·运行时选择 include、
·日期指定格式显示、
·人类阅读习惯数值表示、计算机阅读习惯数值表示、
·新闻索引时截断显示过长标题
·利用 Hash 键值对应表获得和计算 document.links[i] 中的序号(含错误处理)
·更复杂的综合型函数(根据 iTV 平台获得网页超链接)
  阅读全文

posted @ 2006-11-25 08:40 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-11-17 11:01 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-11-16 16:06 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 另,SpringSide Demo:实施WebService Security[WS-Security1.0]的Encrypt和Sign模式(XFire+WSS4J)
http://security.javaeye.com/blog/28480
http://security.javaeye.com/blog/28481  阅读全文

posted @ 2006-11-16 00:34 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: .net 1.1 <- web services -> java  阅读全文

posted @ 2006-11-16 00:12 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: MyEclipse 5.1GA, XFire WebService framework,5 分钟内完全可以做完一个 Demo (包括服务端和客户端)
XFire 官方网站:http://xfire.codehaus.org/  阅读全文

posted @ 2006-11-16 00:04 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-11-15 06:28 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-11-14 12:57 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-11-14 06:00 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-09-21 05:37 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 比较 SUN JVM, IBM JVM, BEA JVM, 得到的事实就是 SUN JVM - 慢  阅读全文

posted @ 2006-07-14 16:10 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-07-05 16:17 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-07-05 15:22 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: AUTH LOGIN, base64, 邮件正文前的空行  阅读全文

posted @ 2006-07-01 19:20 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-06-07 09:14 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: dom4j , 用于业务逻辑层  阅读全文

posted @ 2006-06-07 08:54 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: Web 项目的话,在 web.xml 中配置一个 servlet 。  阅读全文

posted @ 2006-06-05 19:30 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-05-19 18:55 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 很好玩的思维影像工具,把你的即兴想法方便地用最简单直观的图形表现出来哦 ^_^  阅读全文

posted @ 2006-05-18 10:41 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-05-01 08:13 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: C#.NET 1.1 的默认 DES 算法与 Java 的 JCE 的 DES 加密算法不同,需要改为 ECB 模式。  阅读全文

posted @ 2006-04-26 18:00 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-04-18 17:50 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-04-13 23:30 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-04-13 23:29 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: 本文主要解决由字符集编码冲突引起的中文显示和中文入库(数据库)问题。

作者:StephenCat.WJJ @ GZ,2006年4月13日。

作者声明:不对读者使用本文内容所引起的影响和后果承担任何责任。转载请注明来源于本 Blog。作者保留著作权。
  阅读全文

posted @ 2006-04-13 09:31 散漫的貓儿 Kelvin Wong| 编辑 |

posted @ 2006-04-12 17:17 散漫的貓儿 Kelvin Wong| 编辑 |

     摘要: UUID(GUID)作为主键,用在数据库移植、数据合并、分流时十分不错。而且无条件地保证唯一。  阅读全文

posted @ 2006-04-10 19:54 散漫的貓儿 Kelvin Wong| 编辑 |