﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-交口称赞-随笔分类-J2EE &amp; WEB</title><link>http://www.blogjava.net/vip01/category/18978.html</link><description>简单实用----逻辑清楚</description><language>zh-cn</language><lastBuildDate>Wed, 21 May 2008 17:15:39 GMT</lastBuildDate><pubDate>Wed, 21 May 2008 17:15:39 GMT</pubDate><ttl>60</ttl><item><title>史上最简洁的XML2BEAN和BEAN2XML</title><link>http://www.blogjava.net/vip01/archive/2008/05/21/201822.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Wed, 21 May 2008 01:30:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2008/05/21/201822.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/201822.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2008/05/21/201822.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/201822.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/201822.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<span style="COLOR: #000000">引入xstream包<br /><br /> <br /><br />XML2Bean<br /><br />XStream xStreamt </span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #0000ff">new</span>
				<span style="COLOR: #000000"> XStream(</span>
				<span style="COLOR: #0000ff">new</span>
				<span style="COLOR: #000000"> DomDriver());<br /><br />xStreamt.alias(</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">config</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">, ConnectConfig.</span>
				<span style="COLOR: #0000ff">class</span>
				<span style="COLOR: #000000">);</span>
				<span style="COLOR: #008000">//</span>
				<span style="COLOR: #008000">指定节点对应的class</span>
				<span style="COLOR: #008000">
						<br />
				</span>
				<span style="COLOR: #000000">
						<br />ConnectConfig cfgt </span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000"> (ConnectConfig) xStreamt.fromXML(str);</span>
				<span style="COLOR: #008000">//</span>
				<span style="COLOR: #008000">str是接收到的xml字符串，注意，xml里面的节点和bean的属性一定要能对应上，否则会抛异常</span>
				<span style="COLOR: #008000">
						<br />
				</span>
				<span style="COLOR: #000000">
						<br />System.out.println(cfgt.getAdminEmail());<br /><br /> <br /><br /> <br /><br /> <br /><br />Bean2XML<br /><br />XStream xStream </span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #0000ff">new</span>
				<span style="COLOR: #000000"> XStream(</span>
				<span style="COLOR: #0000ff">new</span>
				<span style="COLOR: #000000"> DomDriver());<br /><br />xStream.alias(</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">config</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">, ConnectConfig.</span>
				<span style="COLOR: #0000ff">class</span>
				<span style="COLOR: #000000">);</span>
				<span style="COLOR: #008000">//</span>
				<span style="COLOR: #008000">指定class对应的节点名称，默认是完整package名称＋class名称</span>
				<span style="COLOR: #008000">
						<br />
				</span>
				<span style="COLOR: #000000">
						<br />String str </span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000"> xStream.toXML(cfg);</span>
				<span style="COLOR: #008000">//</span>
				<span style="COLOR: #008000">str为生成的xml，值为空的属性不生成节点。</span>
				<span style="COLOR: #008000">
						<br />
				</span>
				<span style="COLOR: #000000">
						<br />System.out.println(str);<br /><br /></span>
		</div>
<img src ="http://www.blogjava.net/vip01/aggbug/201822.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2008-05-21 09:30 <a href="http://www.blogjava.net/vip01/archive/2008/05/21/201822.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Log4j按级别输出日志到不同的文件</title><link>http://www.blogjava.net/vip01/archive/2008/05/21/201819.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Wed, 21 May 2008 01:26:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2008/05/21/201819.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/201819.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2008/05/21/201819.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/201819.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/201819.html</trackback:ping><description><![CDATA[
		<p>会按日存分割日志文件，并且根据级别输出到不同的文件</p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<span style="COLOR: #000000">log4j.rootLogger=info,stdout,info,debug,error<br />log4j.appender.stdout=org.apache.log4j.ConsoleAppender<br />log4j.appender.stdout.layout=org.apache.log4j.PatternLayout<br />log4j.appender.stdout.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br /> <br />log4j.logger.info=info<br />log4j.appender.info=org.apache.log4j.DailyRollingFileAppender<br />log4j.appender.info.layout=org.apache.log4j.PatternLayout<br />log4j.appender.info.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br />log4j.appender.info.datePattern='.'yyyy-MM-dd<br />log4j.appender.info.Threshold = INFO <br />log4j.appender.info.append=true<br />log4j.appender.info.File=${webApp.root}/WEB-INF/logs/info.log<br /> <br />log4j.logger.debug=debug<br />log4j.appender.debug=org.apache.log4j.DailyRollingFileAppender<br />log4j.appender.debug.layout=org.apache.log4j.PatternLayout<br />log4j.appender.debug.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br />log4j.appender.debug.datePattern='.'yyyy-MM-dd<br />log4j.appender.debug.Threshold = DEBUG <br />log4j.appender.debug.append=true<br />log4j.appender.debug.File=${webApp.root}/WEB-INF/logs/debug.log<br /><br />log4j.logger.error=error<br />log4j.appender.error=org.apache.log4j.DailyRollingFileAppender<br />log4j.appender.error.layout=org.apache.log4j.PatternLayout<br />log4j.appender.error.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br />log4j.appender.error.datePattern='.'yyyy-MM-dd<br />log4j.appender.error.Threshold = ERROR <br />log4j.appender.error.append=true<br />log4j.appender.error.File=${webApp.root}/WEB-INF/logs/error.log</span>
		</div>
<img src ="http://www.blogjava.net/vip01/aggbug/201819.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2008-05-21 09:26 <a href="http://www.blogjava.net/vip01/archive/2008/05/21/201819.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Adobe Flex Builder 3 Beta 3 出来鸟</title><link>http://www.blogjava.net/vip01/archive/2007/12/13/167525.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Thu, 13 Dec 2007 08:17:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2007/12/13/167525.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/167525.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2007/12/13/167525.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/167525.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/167525.html</trackback:ping><description><![CDATA[下载地址，方便没有账号的兄弟。<br />迅雷下载。<br /><a href="http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=RC00419&amp;e=labs_adobeflexbuilder3"><br />http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&amp;sku=RC00419&amp;e=labs_adobeflexbuilder3</a><br /><br />最近一直在研究flex。<br />flex3+spring+hessian+hibenate<br />搭了一个框架并整合了开发工具<br /><br />从flex白痴（flas只是0,as3知识0,flex知识0）到平台搭建并做出demo<br />前后用了一周的业余时间。<br />没有在语言上遇到障碍，以前搞过基于eclipse RCP的C/S，所以思维方式也没遇到什么障碍。<br />就是在熟悉控件，分模块开发（这个花了很多时间，后来才知道有module），前后台整合这些地方花了时间。<br /><br />实践了一把以后，感觉前台用flex比以前的html方式有很多优势<br /><br />上手快<br />代码简洁<br />可读性好<br />维护方便<br />允行速度快<br />超级漂亮<br />开发效率好<br />减少了前台的bug概率<br />做图表效果惊艳<br /><br /><br /><br />但是flex3还没有正式发布<br />还有不少bug<br />开发工具不稳定<br />对机器要求高1g内存做开发比较慢<br /><br /><img src ="http://www.blogjava.net/vip01/aggbug/167525.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2007-12-13 16:17 <a href="http://www.blogjava.net/vip01/archive/2007/12/13/167525.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>window.print与各种浏览器的测试 </title><link>http://www.blogjava.net/vip01/archive/2007/08/29/140859.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Wed, 29 Aug 2007 04:46:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2007/08/29/140859.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/140859.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2007/08/29/140859.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/140859.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/140859.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 全浏览器兼容真难。<br>&nbsp;&nbsp;<a href='http://www.blogjava.net/vip01/archive/2007/08/29/140859.html'>阅读全文</a><img src ="http://www.blogjava.net/vip01/aggbug/140859.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2007-08-29 12:46 <a href="http://www.blogjava.net/vip01/archive/2007/08/29/140859.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>回车自动提交与各种浏览器的测试</title><link>http://www.blogjava.net/vip01/archive/2007/08/28/140318.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Tue, 28 Aug 2007 01:51:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2007/08/28/140318.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/140318.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2007/08/28/140318.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/140318.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/140318.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 很多时候，我们在页面提交之前要做一些值的检验，或者动态拼action等等，但是在有的浏览器，在文本框等控件上回车时，会自动提交页面&nbsp;&nbsp;<a href='http://www.blogjava.net/vip01/archive/2007/08/28/140318.html'>阅读全文</a><img src ="http://www.blogjava.net/vip01/aggbug/140318.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2007-08-28 09:51 <a href="http://www.blogjava.net/vip01/archive/2007/08/28/140318.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>window.close()的全浏览器兼容性</title><link>http://www.blogjava.net/vip01/archive/2007/08/24/139094.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Fri, 24 Aug 2007 06:05:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2007/08/24/139094.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/139094.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2007/08/24/139094.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/139094.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/139094.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Navigator 2.0: closes any window.<br>Navigator 3.0: closes only windows opened by JavaScript.<br>Navigator 4.0: must use signed scripts to unconditionally close a window&nbsp;&nbsp;<a href='http://www.blogjava.net/vip01/archive/2007/08/24/139094.html'>阅读全文</a><img src ="http://www.blogjava.net/vip01/aggbug/139094.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2007-08-24 14:05 <a href="http://www.blogjava.net/vip01/archive/2007/08/24/139094.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>流言终结者：document.all真的是IE only吗？</title><link>http://www.blogjava.net/vip01/archive/2007/08/13/136287.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Mon, 13 Aug 2007 01:51:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2007/08/13/136287.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/136287.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2007/08/13/136287.html#Feedback</comments><slash:comments>13</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/136287.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/136287.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 实测document.all、document.getElementById的全浏览器兼容性&nbsp;&nbsp;<a href='http://www.blogjava.net/vip01/archive/2007/08/13/136287.html'>阅读全文</a><img src ="http://www.blogjava.net/vip01/aggbug/136287.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2007-08-13 09:51 <a href="http://www.blogjava.net/vip01/archive/2007/08/13/136287.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>学习Java6(一) WebServices （3）在tomcat中发布</title><link>http://www.blogjava.net/vip01/archive/2007/01/05/91958.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Fri, 05 Jan 2007 05:38:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2007/01/05/91958.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/91958.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2007/01/05/91958.html#Feedback</comments><slash:comments>38</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/91958.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/91958.html</trackback:ping><description><![CDATA[
		<p>为了满足广大网友的要求，今天抽时间搞了下WebServices 在tomcat中的发布<br />相关文章：<br /><a class="titlelink" id="Editor_Results_rprSelectionList_ctl01_LinkTitle" href="/vip01/archive/2007/01/05/91954.html">tomcat启动时自动加载servlet</a><br /><a class="titlelink" id="Editor_Results_rprSelectionList_ctl07_LinkTitle" href="/vip01/archive/2006/12/21/89201.html">学习Java6(一) WebServices （1）服务端</a><br /><a class="titlelink" id="Editor_Results_rprSelectionList_ctl06_Hyperlink1" href="/vip01/archive/2006/12/21/89204.html">学习Java6(一) WebServices （2）客户端</a><br /><br />新建一个servlet，偶太，能少打一个字符都是好的，所以servlet写的非常简洁，也适合初学者看得懂。。。。。。。。。。<br />WebServiceStarter.java<br /></p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<span style="COLOR: #008080"> 1</span> <span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.servlet.ServletException;<br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.servlet.http.HttpServlet;<br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.xml.ws.Endpoint;<br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> WebServiceStarter </span><span style="COLOR: #0000ff">extends</span><span style="COLOR: #000000"> HttpServlet {<br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">    <br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">long</span><span style="COLOR: #000000"> serialVersionUID </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">5870534239093709659L</span><span style="COLOR: #000000">;<br /></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> WebServiceStarter() {<br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">super</span><span style="COLOR: #000000">();<br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> destroy() {<br /></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">super</span><span style="COLOR: #000000">.destroy();<br /></span><span style="COLOR: #008080">15</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">16</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">17</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> init() </span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000"> ServletException {<br /></span><span style="COLOR: #008080">18</span> <span style="COLOR: #000000">        System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">准备启动服务</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /></span><span style="COLOR: #008080">19</span> <span style="COLOR: #000000">        Endpoint.publish(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">http://localhost:8080/HelloService</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Hello());<br /></span><span style="COLOR: #008080">20</span> <span style="COLOR: #000000">        System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">服务启动完毕</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /></span><span style="COLOR: #008080">21</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">22</span> <span style="COLOR: #000000">}<br /></span><span style="COLOR: #008080">23</span> <span style="COLOR: #000000"></span></div>
		<br />web service类Hello.java也是非常简单<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.jws.WebMethod;<br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.jws.WebService;<br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.jws.soap.SOAPBinding;<br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">@WebService(targetNamespace </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">http://jdk.study.hermit.org/client</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br /></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000">@SOAPBinding(style </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> SOAPBinding.Style.RPC)<br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> Hello {<br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">    @WebMethod<br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> String sayHello(String name) {<br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">hello:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> name;<br /></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">}</span></div>web.xml<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span> <span style="COLOR: #0000ff">&lt;?</span><span style="COLOR: #ff00ff">xml version="1.0" encoding="UTF-8"</span><span style="COLOR: #0000ff">?&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">web-app </span><span style="COLOR: #ff0000">version</span><span style="COLOR: #0000ff">="2.4"</span><span style="COLOR: #ff0000"> xmlns</span><span style="COLOR: #0000ff">="http://java.sun.com/xml/ns/j2ee"</span><span style="COLOR: #ff0000"><br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #ff0000">    xmlns:xsi</span><span style="COLOR: #0000ff">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="COLOR: #ff0000"><br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #ff0000">    xsi:schemaLocation</span><span style="COLOR: #0000ff">="http://java.sun.com/xml/ns/j2ee <br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #0000ff">    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">WebServiceStarter</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">WebServiceStarter</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">1</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">web-app</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000"></span></div><br />ok<br />就这三个文件。。。。。。。。。啥jar都不要。。。。<br />发布，启动服务器<br />2007-1-5 13:28:37 org.apache.catalina.core.AprLifecycleListener init<br />信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\JDK6\bin;F:\tomcat6\bin<br />2007-1-5 13:28:37 org.apache.coyote.http11.Http11Protocol init<br />信息: Initializing Coyote HTTP/1.1 on http-8080<br />2007-1-5 13:28:37 org.apache.catalina.startup.Catalina load<br />信息: Initialization processed in 937 ms<br />2007-1-5 13:28:38 org.apache.catalina.core.StandardService start<br />信息: Starting service Catalina<br />2007-1-5 13:28:38 org.apache.catalina.core.StandardEngine start<br />信息: Starting Servlet Engine: Apache Tomcat/6.0.7<br />2007-1-5 13:28:38 org.apache.catalina.core.StandardHost start<br />信息: XML validation disabled<br />2007-1-5 13:28:38 org.apache.catalina.core.ApplicationContext log<br />信息: ContextListener: contextInitialized()<br />2007-1-5 13:28:38 org.apache.catalina.core.ApplicationContext log<br />信息: SessionListener: contextInitialized()<br /><font color="#ff0000">准备启动服务<br />服务启动完毕<br /></font>2007-1-5 13:28:39 org.apache.coyote.http11.Http11Protocol start<br />信息: Starting Coyote HTTP/1.1 on http-8080<br />2007-1-5 13:28:39 org.apache.jk.common.ChannelSocket init<br />信息: JK: ajp13 listening on /0.0.0.0:8009<br />2007-1-5 13:28:39 org.apache.jk.server.JkMain start<br />信息: Jk running ID=0 time=16/62  config=null<br />2007-1-5 13:28:39 org.apache.catalina.startup.Catalina start<br />信息: Server startup in 1969 ms<br /><br /><br />访问：<a href="http://localhost:8080/HelloService?wsdl">http://localhost:8080/HelloService?wsdl</a><br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;?</span><span style="COLOR: #ff00ff">xml version="1.0" encoding="UTF-8" </span><span style="COLOR: #0000ff">?&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">definitions </span><span style="COLOR: #ff0000">xmlns</span><span style="COLOR: #0000ff">="http://schemas.xmlsoap.org/wsdl/"</span><span style="COLOR: #ff0000"> xmlns:tns</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> xmlns:xsd</span><span style="COLOR: #0000ff">="http://www.w3.org/2001/XMLSchema"</span><span style="COLOR: #ff0000"> xmlns:soap</span><span style="COLOR: #0000ff">="http://schemas.xmlsoap.org/wsdl/soap/"</span><span style="COLOR: #ff0000"> targetNamespace</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> name</span><span style="COLOR: #0000ff">="HelloService"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">types </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">message </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHello"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">part </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="arg0"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="xsd:string"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">message</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">message </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHelloResponse"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">part </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="return"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="xsd:string"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">message</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">portType </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="Hello"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">operation </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHello"</span><span style="COLOR: #ff0000"> parameterOrder</span><span style="COLOR: #0000ff">="arg0"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">input </span><span style="COLOR: #ff0000">message</span><span style="COLOR: #0000ff">="tns:sayHello"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">output </span><span style="COLOR: #ff0000">message</span><span style="COLOR: #0000ff">="tns:sayHelloResponse"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">operation</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">15</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">portType</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">16</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">binding </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="HelloPortBinding"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="tns:Hello"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">17</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">soap:binding </span><span style="COLOR: #ff0000">style</span><span style="COLOR: #0000ff">="rpc"</span><span style="COLOR: #ff0000"> transport</span><span style="COLOR: #0000ff">="http://schemas.xmlsoap.org/soap/http"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">18</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">operation </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHello"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">19</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">soap:operation </span><span style="COLOR: #ff0000">soapAction</span><span style="COLOR: #0000ff">=""</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">20</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">input</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">21</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">soap:body </span><span style="COLOR: #ff0000">use</span><span style="COLOR: #0000ff">="literal"</span><span style="COLOR: #ff0000"> namespace</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">22</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">input</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">23</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">output</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">24</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">soap:body </span><span style="COLOR: #ff0000">use</span><span style="COLOR: #0000ff">="literal"</span><span style="COLOR: #ff0000"> namespace</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">25</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">output</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">26</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">operation</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">27</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">binding</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">28</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">service </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="HelloService"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">29</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">port </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="HelloPort"</span><span style="COLOR: #ff0000"> binding</span><span style="COLOR: #0000ff">="tns:HelloPortBinding"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">30</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">soap:address </span><span style="COLOR: #ff0000">location</span><span style="COLOR: #0000ff">="http://localhost:8080/HelloService"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">31</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">port</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">32</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">service</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">33</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">definitions</span><span style="COLOR: #0000ff">&gt;</span></div>看到以上代码就ok！<br />客户端写法照旧<br /><br />呵呵，这下大家满意了吧。。。。。。。。。<br />有冲动想把项目里的xfire撤掉了。。。。。。。。。。。。。。。。。<img src ="http://www.blogjava.net/vip01/aggbug/91958.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2007-01-05 13:38 <a href="http://www.blogjava.net/vip01/archive/2007/01/05/91958.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>tomcat启动时自动加载servlet</title><link>http://www.blogjava.net/vip01/archive/2007/01/05/91954.html</link><dc:creator>交口称赞</dc:creator><author>交口称赞</author><pubDate>Fri, 05 Jan 2007 05:26:00 GMT</pubDate><guid>http://www.blogjava.net/vip01/archive/2007/01/05/91954.html</guid><wfw:comment>http://www.blogjava.net/vip01/comments/91954.html</wfw:comment><comments>http://www.blogjava.net/vip01/archive/2007/01/05/91954.html#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://www.blogjava.net/vip01/comments/commentRss/91954.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/vip01/services/trackbacks/91954.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: tomcat启动时自动加载servlet&nbsp;&nbsp;<a href='http://www.blogjava.net/vip01/archive/2007/01/05/91954.html'>阅读全文</a><img src ="http://www.blogjava.net/vip01/aggbug/91954.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/vip01/" target="_blank">交口称赞</a> 2007-01-05 13:26 <a href="http://www.blogjava.net/vip01/archive/2007/01/05/91954.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>