title: Deploying JSF application on a Glassfish cluster
body: <p>When I deploy a JSF application on a Glassfish V2.1 Patch02 Cluster, the following exception is thrown while loading the first page.</p>
  
  <hr>
  
  <pre><code>java.security.ProviderException: update() failed
      at  sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:557)
      at  sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:457)
      at  sun.security.pkcs11.P11Cipher.engineDoFinal(P11Cipher.java:485)
      at  sun.security.pkcs11.P11Cipher.engineDoFinal(P11Cipher.java:471)
      at  javax.crypto.Cipher.doFinal(DashoA13*..)
  ...
  Caused  by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DEVICE_ERROR
      at  sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(Native Method)
      at  sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:510)
  </code></pre>
  
  <hr>
  
  <p>I am NOT using any kind of encryption/decryption inside my application.</p>
  
  <p>When I googled up for this exception, I found <a href="http://www.marceble.com/?p=147" rel="nofollow noreferrer">this</a> which is the case when Ciphers are loaded in the application.</p>
  
  <p>I would like to know if Glassfish/JSF load default Ciphers which are causing this exception?</p>
  
  <p>If not, what could be the possible cause and the solution for it?</p>