I attempted to use JSS but had some trouble with it, but somehow, even
though I commented out all the code related to JSS, it is still racking
havoc with my java program!  what is going on?

Here is the exception:

java.lang.ClassNotFoundException:
org.mozilla.jss.pkcs11.PK11RSAPublicKey
        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:219)
        at
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:558)
        at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
3)
        at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
626)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)

Here is the line in my code that is where it errors out:

        PublicKey pub_key = (PublicKey)ois.readObject();

This has nothing to do with JSS.  PublicKey is a class of
java.security.  Why is my code trying to call that method of JSS when I
took out all mention of JSS in my code and don't even have it imported
as a package?  Everything was running fine before but now I don't know
what to do to fix this.  Please help!  Could it have something to do
with modutil utility that I used once?  Did that change something in my
registry or something?  I am completely baffled as to why my code keeps
on trying to call a method in JSS.

_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to