p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Apache Tomcat (http://p2p.wrox.com/forumdisplay.php?f=107)
-   -   Help with Tomcat 5.0 and security (http://p2p.wrox.com/showthread.php?t=1458)

dawlboult July 9th, 2003 02:10 PM

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!!!!

newtoo September 14th, 2005 09:31 PM

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



All times are GMT -4. The time now is 08:04 AM.

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