Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 9th, 2003, 02:10 PM
Registered User
Join Date: Jul 2003
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!!!!
Old September 14th, 2005, 09:31 PM
Registered User
Join Date: Sep 2005
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

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

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