Problem using the gnujaxp jar in an applet

Sean Cavanaugh <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.xml
Message-ID <[email protected]>
Hello,

I am attempting to use the gnujaxp.jar file to support an applet I am 
writing for a school project. However, when I attempt to load the 
applet, it doesn't work, instead the java console displays a stack trace 
(see below) complaining of a duplicate entry for META-INF/

I just can't seem to get this to work. The code does work from a regular 
swing application.

Anyone have any ideas how I can get this working?

Thanks.

The stack trace:

java.util.zip.ZipException: duplicate entry: META-INF/
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:163)
at sun.plugin.cache.CachedJarLoader.decompress(CachedJarLoader.java:394)
at sun.plugin.cache.CachedJarLoader.access$500(CachedJarLoader.java:53)
at sun.plugin.cache.CachedJarLoader$5.run(CachedJarLoader.java:335)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.cache.Cache.privileged(Cache.java:219)
at sun.plugin.cache.CachedJarLoader.download(CachedJarLoader.java:320)
at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:128)
at sun.plugin.cache.JarCache.get(JarCache.java:172)
at 
sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:93)
at 
sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:78)
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:580)
at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:541)
at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:308)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:285)
at sun.misc.URLClassPath.getResource(URLClassPath.java:155)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:134)
at 
sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1775)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
at sun.applet.AppletPanel.run(AppletPanel.java:292)
at java.lang.Thread.run(Thread.java:536)

-- 
Sean Cavanaugh - Email: seanc at unixgeeks period ca
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.