Thursday, 11th March 2010.

Posted on Sunday, 31st May 2009 by Balazs

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 “[secret]” with the password.
Some systems have a working digest.sh script that does the same thing.

Share and Enjoy:

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags: , ,
Posted in Java | Comments (Comments)

Posted on Monday, 4th May 2009 by Balazs

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 line to define the user should look like this:
<user username=”manager” password=”md5hash-goes-here” roles=”admin,manager”>

If you changed the [...]

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags:
Posted in Java | Comments (Comments)