This might be a native call exception... The EJB spec says native code is not alowed, so this might be your problem. I am not sure though :)
 
Hope this helps or youll get a better answer from someone who have got this working (preferably)...
 
Klaus
-----Opprinnelig melding-----
Fra: Brett Lane [mailto:[EMAIL PROTECTED]]
Sendt: 18. januar 2001 06:19
Til: Orion-Interest
Emne: Adding JCE to Orion

Hi People,
 
  I am attempting to add the OPENJCE, lib-1.2, to orion and
was wondering if anyone has encountered a similar problem.
 
  I have built a simple password encryption (PBE) object which
works fine in a standalone environment. When I add the jce.zip
file to $ORION_HOME/lib and attempt to use the object in a
bean it throws a method not found, listed below.  I looked around
inside some of orion's jar but could not find a javax.crypto.SecretKeyFactory
class.
 
Transaction was rolled back:
    java.lang.NoSuchMethodError: javax.crypto.SecretKeyFactory:
    method generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey; not found;       
 
    Nested exception is:
java.lang.NoSuchMethodError: javax.crypto.SecretKeyFactory: method generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey; not found
        at com.nobody.utils.SimplePBE.computePBECipher(SimplePBE.java:71)
        at com.nobody.utils.SimplePBE.encrypt(SimplePBE.java:26)
        at com.nobody.ejb.session.cryptotest.CryptoTestEJB.enc(CryptoTestEJB.java:20)
        at CryptoTest_StatelessSessionBeanWrapper10.enc(CryptoTest_StatelessSessionBeanWrapper10.java:163)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.evermind.server.rmi.bd.run(JAX)
        at com.evermind.server.rmi.bb.hy(JAX, Compiled Code)
        at com.evermind.server.rmi.bb.run(JAX, Compiled Code)
        at com.evermind.util.f.run(JAX, Compiled Code)
at connection to localhost/127.0.0.1
        at com.evermind.server.rmi.OrionRemoteException.h2(JAX)
        at com.evermind.server.rmi.bb.hw(JAX, Compiled Code)
        at com.evermind.server.rmi.bb.run(JAX)
        at java.lang.Thread.run(Thread.java:475)
 
Any assistance would be great.
 
Cheers,
Brett

Reply via email to