Hi,
Sorry about this, from scanning the Q&A archives, you're probably sick
to death of
these.... I'm trying to run the security example at
http://java.sun.com/security/signExample/
and **at first** am getting the following in my java plug in console:
Java(TM) Plug-in
Using JRE version 1.1.6
User home directory = C:\WINNT\Profiles\chungy
Proxy Configuration: Automatic Proxy Configuration
JAR cache enabled.
Opening
http://java.sun.com/security/signExample/signedWriteFile.jar
proxy=proxy2n.kben.co.uk:8080
java.lang.NoClassDefFoundError:
sun/security/provider/IdentityDatabase at
java.security.IdentityScope.initializeSystemScope(IdentityScope.java:73)
at
java.security.IdentityScope.getSystemScope(IdentityScope.java:123)
at
sun.tools.jar.JarVerifierStream.<init>(JarVerifierStream.java:96)
at sun.applet.AppletResourceLoader.loadJar(Compiled Code)
at
sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java:142)
at sun.applet.AppletPanel.loadJarFiles(Compiled Code)
at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:397)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:474)
I've checked my identitydb.obj and it seems very fine and placed in the
home directory.
What really does interest me is that when i click the reload button
after getting the above,
the example then works! Just what is going on?
I tried this locally with the files downloaded from the security example
web page and have found out that if i remove the writeFile.class file
and reload after initially getting the above
problem, i get the following in my console.
File not found when looking for: writeFile
java.lang.NullPointerException:
at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:474)
How about you remove the writeFile.class from the web directory that
signedWriteFile.jar
resides on, the above problem might become more apparent. I'm using
netscape
communicator 4.07 and the java plugin JRE 1.1.6. and running
this on Windows NT 4.0. To add, i've also tried this with Internet
Explorer 4.0 and
it gives the same results as above.
I'd really like to get this working and would really appreciate
any suggestions on what I maybe doing wrong?
thanks in advance, Yoko
..
--------------1EDFCBA0A8D5FCEF98ECEE35
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
Sorry about this, from scanning the Q&A archives, you're probably
sick to death of
these.... I'm trying to run the security example at http://java.sun.com/security/signExample/
and **at first** am getting the following in my java plug in console:
I tried this locally with the files downloaded from the security example
web page and have found out that if i remove the writeFile.class file and
reload after initially getting the above
problem, i get the following in my console.
I'd really like to get this working and would really appreciate
any suggestions on what I maybe doing wrong?
thanks in advance, Yoko
--------------1EDFCBA0A8D5FCEF98ECEE35--