tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: password encryption
Date Fri, 01 Apr 2011 16:40:51 GMT
In Tomcat 7 you will need lib/tomcat-util.jar. The following works:

java -cp bin/tomcat-juli.jar;lib/catalina.jar;lib/tomcat-util.jar
org.apache.catalina.realm.RealmBase -a md5 foo

I updated the docs:
http://svn.apache.org/viewvc?rev=1087791&view=rev

Best regards,
Konstantin Kolinko

2011/4/1 Paul Gifford <pggifford@gmail.com>:
> Do you have org.apache.tomcat.util.res.StringManager on your classpath?
> It's in tomcat-coyote.jar in my installation (6.0.18).
>
> Paul
>
>
>
>
> On Fri, Apr 1, 2011 at 10:47 AM, Henry Lu <zhlu@umich.edu> wrote:
>
>> I tried the following command and failed as tomcat home directory:
>>
>>
>> C:\apps\apache-tomcat-7.0.11>java -cp lib/catalina.jar;bin/tomcat-juli.jar
>> org.a
>> pache.catalina.realm.RealmBase -a md5 henry
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/tomcat/uti
>> l/res/StringManager
>>        at
>> org.apache.catalina.util.LifecycleBase.<clinit>(LifecycleBase.java:38
>> )
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.tomcat.util.res.StringMa
>> nager
>>        at java.net.URLClassLoader$1.run(Unknown Source)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(Unknown Source)
>>        at java.lang.ClassLoader.loadClass(Unknown Source)
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>        at java.lang.ClassLoader.loadClass(Unknown Source)
>>        ... 1 more
>> Could not find the main class: org.apache.catalina.realm.RealmBase.
>>  Program wil
>> l exit.
>>
>> Any Help?
>>
>> -Henry
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message