<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>NewPush &#187; Tomcat</title> <atom:link href="http://newpush.com/tag/tomcat/feed/" rel="self" type="application/rss+xml" /><link>http://newpush.com</link> <description>Server Hosting, Data Warehouse Hosting, Collaboration</description> <lastBuildDate>Mon, 30 Jan 2012 15:40:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>How to create an MD5 password in java or Tomcat</title><link>http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/</link> <comments>http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/#comments</comments> <pubDate>Sun, 31 May 2009 14:13:34 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[MD5]]></category> <category><![CDATA[Tomcat]]></category><guid isPermaLink="false">http://www.wdream.com/?p=236</guid> <description><![CDATA[To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type $ export TOMCAT="/usr/local/tomcat" $ java -cp "$TOMCAT/server/lib/catalina.jar:/usr/share/java/jmxri.jar:$TOMCAT/bin/commons-logging-api.jar" \ org.apache.catalina.realm.RealmBase -a md5 [secret] by replacing &#8220;[secret]&#8221; with the password. Some systems have a working digest.sh &#8230; <a href="http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="grey">To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type</p><pre>$ export TOMCAT="/usr/local/tomcat"
$ java -cp "$TOMCAT/server/lib/catalina.jar:/usr/share/java/jmxri.jar:$TOMCAT/bin/commons-logging-api.jar" \
org.apache.catalina.realm.RealmBase -a md5 [secret]</pre><p>by replacing &#8220;[secret]&#8221; with the password.<br /> Some systems have a working <code>digest.sh</code> script that does the same thing. </span></p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to load/reload/unload apps while Tomcat is running</title><link>http://newpush.com/2009/05/how-to-loadreloadunload-apps-while-tomcat-is-running/</link> <comments>http://newpush.com/2009/05/how-to-loadreloadunload-apps-while-tomcat-is-running/#comments</comments> <pubDate>Mon, 04 May 2009 17:42:58 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[Tomcat]]></category><guid isPermaLink="false">http://www.wdream.com/?p=171</guid> <description><![CDATA[To manage web applications with Tomcat, you can use the Tomcat manager application that comes with Tomcat. These simple steps show how it is done: Make sure that there is a user with manager role set up in the .../tomcat4/conf/tomcat-users.xml file. The &#8230; <a href="http://newpush.com/2009/05/how-to-loadreloadunload-apps-while-tomcat-is-running/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>To manage web applications with Tomcat, you can use the Tomcat manager application that comes with Tomcat.  These simple steps show how it is done:</p><ul><li>Make sure that there is a user with manager role set up in the <code>.../tomcat4/conf/tomcat-users.xml</code> file. The line to define the user should look like this:<pre>&lt;user username="manager" password="md5hash-goes-here" roles="admin,manager"&gt;</pre></li><li>If you changed the file above, restart tomcat, for your changes to take effect.</li><li>Now you are ready to use the Tomcat manager webapp to load / reload / unload webapps from your tomcat container.</li><li>Refer to the tomcat manager webapp documentation for all the details. Here are a couple of examples:<ul><li>To list the loaded apps, and their status:<pre>

http://localhost:[port]/manager/list</pre></li><li>To reload an app (&#8220;[port]&#8221; is your HTTP connector port in the server.xml file, and &#8220;[webapp-path]&#8221; is the path as displayed with the &#8220;list&#8221; comand):<pre>

http://localhost:[port]/manager/reload?path=/[webapp-path]</pre></li></ul></li><li>Since the HTTP connector is usually not available from outside the firewall, you will probably do that from the command line, in which case, the most effective way is to use &#8220;curl&#8221; eg:<pre>
curl -u [admin_user]:[secret_passwd]

http://localhost:[port]/manager/reload?path=/[webapp-path]</pre></li></ul> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-loadreloadunload-apps-while-tomcat-is-running/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: newpush.com @ 2012-02-09 09:34:24 by W3 Total Cache -->
