Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9195041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:32:55+00:00 2026-06-17T21:32:55+00:00

i am trying to encrypt password for server.xml using RealmBase into Tomcat7 through below

  • 0

i am trying to encrypt password for server.xml using RealmBase
into Tomcat7 through below command:

java -cp bin\tomcat-juli.jar;lib\catalina.jar;lib\tomcat-util.jar; org.apache.catalina.realm.RealmBase -a SHA passwd

and I am facing below error on executing the comman:

C:\Program Files\Apache Software Foundation\Tomcat 7.0>java -cp bin\tomcat-juli.jar;lib\catalina.jar;lib\tomcat-util.jar; org.apache.catalina.realm.RealmBase -a  MD5 passwd
Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        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)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
        at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest
        at java.net.URLClassLoader$1.run(Unknown Source)
        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)
        ... 18 more

C:\Program Files\Apache Software Foundation\Tomcat 7.0>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:32:56+00:00Added an answer on June 17, 2026 at 9:32 pm

    Try including servlet-api.jar as well.

    java -cp bin\tomcat-juli.jar;lib\catalina.jar;lib\tomcat-util.jar;lib\servlet-api.jar org.apache.catalina.realm.RealmBase -a SHA passwd
    

    EDIT

    After trying to run this myself, there was yet another class missing. Instead of including every JAR in the classpath manually, I decided it would be easier to just include them all with lib\*. Try this…it works for me!

    java -cp bin\tomcat-juli.jar;lib\* org.apache.catalina.realm.RealmBase -a SHA passwd
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Newbie here. I'm trying to encrypt the user password using SHA-256 after they've made
Using CF8 and MySQL 5.1, I am trying to encrypt() a password upon creation
I'm trying to encrypt my database password using a JBOSS security domain. The datasource
I'm trying to encrypt an array of 256 bytes by using RSACryptoServiceProvider but I'm
Have been trying to encrypt an xml file to a string so that I
I have the following code to encrypt a password, but when I am trying
I'm trying to encrypt and decrypt data using RSA in C#. I have the
I'm trying to encrypt/decrypt files with PBE using AES. I'm using Bouncy Casle library(lightweight
I am trying to encrypt database columns using a certificate and a symmetric key.
I am trying to encrypt a string using C# and decrypt it using Python.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.