Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 9th, 2003, 02:10 PM
Registered User
Join Date: Jul 2003
Location: boulder, co, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with Tomcat 5.0 and security

I've been using the Apache Tomcat Security Handbook and I am
having trouble with using encrypted passwords in tomcat_users.xml

I am running this command straight from the book with some alterations cause I'm in a win2k environment

$ java -classpath %CATALINA_HOME%\server\lib\catalina.jar org.apache.catalina.realm.RealmBase -a sha testpassword

I get the following error message when I try to execute this encryption tool....

Exception in "main" java.lang.NoClassDefFoundError: javax/management/MBeanRegistration

and then a bunch of at java.lang.....stuff.

Why can't I execute this encyption tool and why can't it find the freakin classes. I can run all my jsp pages and servlets just fine in the Tomcat install.

Please help and Thanks if you do!!!!
Reply With Quote
  #2 (permalink)  
Old September 14th, 2005, 09:31 PM
Registered User
Join Date: Sep 2005
Location: mexico, df, Mexico.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I am using tomcat 5 and I want to codify password with MD5 using the classes that are in the package to catalina.jar but I obtain the following error:

java -cp catalina.jar org.apache.catalina.loader.WebappLoader -cp catalina.jar org.apache.catalina.realm.RealmBase -a MD5 tomcat
Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java :537)
        at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader .java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader. java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java: 194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.j ava:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
        at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)

In the classpath already declares the route of the classes of tomcat\server\lib but apparently the classes that are concerned from RealmBase be badly established helpe me please:
Greetings Fernando

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Access Security & Role Based Security robzyc C# 6 April 11th, 2008 02:31 AM
J2EE Security in Tomcat iamrakesh22 Apache Tomcat 0 April 12th, 2007 04:06 AM
configuring security in Tomcat aadz5 Apache Tomcat 0 May 29th, 2006 11:00 AM
Unprotect certain script in tomcat security shilpa.tendulkar Apache Tomcat 0 May 16th, 2006 01:30 PM
Security constraint for Tomcat anntosh BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 February 9th, 2006 04:40 PM

All times are GMT -4. The time now is 07:00 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.