View Single Post
  #2 (permalink)  
Old September 14th, 2005, 09:31 PM
newtoo newtoo is offline
Registered User
 
Join Date: Sep 2005
Location: mexico, df, Mexico.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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