﻿<?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-wilsonyq-文章分类-Tomcat</title><link>http://www.blogjava.net/wilsonyq/category/53536.html</link><description /><language>zh-cn</language><lastBuildDate>Sun, 26 Oct 2014 11:33:40 GMT</lastBuildDate><pubDate>Sun, 26 Oct 2014 11:33:40 GMT</pubDate><ttl>60</ttl><item><title>【转】tomcat 6 debug jpda 简单配置</title><link>http://www.blogjava.net/wilsonyq/articles/418961.html</link><dc:creator>wilsonyq</dc:creator><author>wilsonyq</author><pubDate>Thu, 23 Oct 2014 02:50:00 GMT</pubDate><guid>http://www.blogjava.net/wilsonyq/articles/418961.html</guid><wfw:comment>http://www.blogjava.net/wilsonyq/comments/418961.html</wfw:comment><comments>http://www.blogjava.net/wilsonyq/articles/418961.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wilsonyq/comments/commentRss/418961.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wilsonyq/services/trackbacks/418961.html</trackback:ping><description><![CDATA[<span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">今日在tomcat下开发，为避免在没有改变java方法和类名的情况下重新加载整个webapp，查阅了些资料后需要启用jvm的jpda，&nbsp; 同时要能远程debug；</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">研究了半天发现其实很简单，人家已经做的很好了；只需要加jpda 4个字母就可以了；</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">修改startup.bat 找到call "%EXECUTABLE%" start %CMD_LINE_ARGS% 改为call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS% 即可；这样在java的方法里面修改代码就不需要费时费力的重新加载上下文，也不需要重新登录。</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">如果需要修改debug端口，（默认8000），改catalina.bat 中set JPDA_ADDRESS=8000 处；</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">启动命令方式如下：</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo Usage:&nbsp; catalina ( commands ... )</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo commands:</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start Catalina in a debugger</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; debug -security&nbsp;&nbsp; Debug Catalina with a security manager</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; jpda start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start Catalina under JPDA debugger</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; run&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start Catalina in the current window</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; run -security&nbsp;&nbsp;&nbsp;&nbsp; Start in the current window with security manager</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start Catalina in a separate window</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; start -security&nbsp;&nbsp; Start in a separate window with security manager</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; stop&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stop Catalina</span><br style="color: #303030; font-family: Verdana, Helvetica, Arial; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;" /><span style="color: #303030; font-family: 'Lucida Console'; font-size: 12px; line-height: 18px; text-align: justify; background-color: #ffffff;">echo&nbsp;&nbsp; version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What version of tomcat are you running?</span><img src ="http://www.blogjava.net/wilsonyq/aggbug/418961.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wilsonyq/" target="_blank">wilsonyq</a> 2014-10-23 10:50 <a href="http://www.blogjava.net/wilsonyq/articles/418961.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[分享]分析tomcat的Catalina.bat启动脚本</title><link>http://www.blogjava.net/wilsonyq/articles/398297.html</link><dc:creator>wilsonyq</dc:creator><author>wilsonyq</author><pubDate>Tue, 23 Apr 2013 08:55:00 GMT</pubDate><guid>http://www.blogjava.net/wilsonyq/articles/398297.html</guid><wfw:comment>http://www.blogjava.net/wilsonyq/comments/398297.html</wfw:comment><comments>http://www.blogjava.net/wilsonyq/articles/398297.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wilsonyq/comments/commentRss/398297.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wilsonyq/services/trackbacks/398297.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Catalina.bat是tomcat所有脚本中最重要的脚本，完成几乎所有的tomcat操作。如启动，关闭等等,都是由catalina.bat脚本来完成的。接下来，我将对Tomcat catalina.bat脚本进行分析。&nbsp;&nbsp;&nbsp; 首先省去catalina.bat开头诸多注解，这些注解主要是讲解各个变量是干什么的。需要的话，自己看下英文就可以了。这里就不翻译了。rem ...&nbsp;&nbsp;<a href='http://www.blogjava.net/wilsonyq/articles/398297.html'>阅读全文</a><img src ="http://www.blogjava.net/wilsonyq/aggbug/398297.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wilsonyq/" target="_blank">wilsonyq</a> 2013-04-23 16:55 <a href="http://www.blogjava.net/wilsonyq/articles/398297.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>