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

  • SEARCH
  • Home
  • 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 8717799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:22:44+00:00 2026-06-13T06:22:44+00:00

Hi I am beginner in Java security, i encounter the following issue, when calling

  • 0

Hi I am beginner in Java security, i encounter the following issue, when calling :

Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");

I got the error :

java.lang.ClassCastException: com.sun.crypto.provider.RSACipher cannot be cast to javax.crypto.CipherSpi

There are 5 more jars file for a payment gateway encryption in my war file:

  • cryptix-jce-api.jar
  • cryptix-jce-provider.jar
  • cryptix-message-api.jar
  • cryptix-openpgp-provider.jar
  • cryptix-pki-api.jar

Without these 5 JAR files then the Cipher.getInstance() works, but that is not possible because I need the JARs for payment information encryption.

Anyone out there can show me the path of how should I overcome this issue?

  • 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-13T06:22:46+00:00Added an answer on June 13, 2026 at 6:22 am

    Thanks for all the comments and answers.

    In the end, I moved the 5 Jars out from WAR file to server Jars library directory and solved this.

    In between there was an java.lang.RuntimeException: NYI.

    It was solved using the solution from here: http://javabeanz.wordpress.com/2009/06/11/java-lang-runtimeexception-nyi/

    Hope this helps, to anyone out there.

    Once again thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am beginner with java, please forgive me if I do make any error
Im a beginner with java and i am following tutorials by Thenewboston on youtube.
I'm a beginner Java/LibGDX developer so I'm sorry if I got something terribly wrong
Java Beginner. Hi, I haven't got any much experience with GUI programming. So I'm
I'm beginner in Java but I has the following code limit = con.prepareStatement(SELECT COUNT(*)
I'll preface my question by saying that I'm a beginner Java EE developer. I
Iam a Java beginner and i would like to ask whats the pros and
Am Beginner to java.I have a small doubt while i am developing an application
Hello :) I am beginner in Java Swing and I can't google solution for
i am a beginner at java language and i use text pad. i have

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.