title: How do I get javax.crypto classes such as javax.crypto.Cipher to work on a servlet with jboss?
body: <p>My application validates a license file in order for it to work. It does this by calling javax.crypto.Cipher.getInstance("DES","SunJCE") inorder to decipher the license key file.</p>
  
  <p>When I run my application locally everything works fine but when I deploy my application with jboss and get to the point where I want to validate the license file on the servlet, I get the following error:</p>
  
  <pre><code>java.lang.SecurityException: JCE cannot authenticate the provider SunJCE
    at javax.crypto.Cipher.getInstance(DashoA13*..)
    at javax.crypto.Cipher.getInstance(DashoA13*..)
  </code></pre>
  
  <p>Like I said, it works fine from command prompt and eclipse, but not as a servlet on jboss. Does anybody have any idea what I need to do? I am using jdk 1.6 and jboss as 7.</p>
  
  <p>Thanks</p>