dev@glassfish.java.net

Re: NetBeans doesn't like the jaxb-osgi.jar from v3

From: Snjezana Sevo-Zenzerovic <Snjezana.Sevo-Zenzerovic_at_Sun.COM>
Date: Thu, 19 Mar 2009 16:44:55 -0700

Vince,

FWIW, we hit the same issue in installer while trying to uncompress this
jar using Java equivalent of unpack200, so there is an issue already
filed on Metro side of things:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=7019

So, feel free to piggyback on this one...

Thanks,

Snjezana

Vince Kraemer wrote:

> here is the message that I get from NB...
>
> SEVERE [org.openide.util.Exceptions]
>
> msg
> Caused: java.lang.IllegalArgumentException: Duplicate entries in
> /export/home/vkraemer/GlassFish_v3/glassfish/modules/jaxb-osgi.jar:
> com/sun/xml/bind/unmarshaller/Patcher.class
> [catch] at
> org.openide.filesystems.JarFileSystem.parse(JarFileSystem.java:801)
> at
> org.openide.filesystems.JarFileSystem.getCache(JarFileSystem.java:727)
> (and oh so much more)
>
> I started to dig into jaxb-osgi.jar and discovered something...
>
> There are duplicate files in the jar. The jar has 4128 files total.
> There are 4111 uniq files in the jar...
>
> One of the dups is com/sun/xml/bind/unmarshaller/Patcher.class... just
> like NB said (in its oh so round-about way)
>
> I also noticed a number of files (over 1000) of the form...
> 1.0/com/sun/xml/...
> 1.0/com/sun/...
> 1.0/org/apache/xml/...
>
> I think there is a bug in both sides of this...
>
> 1. netbeans should not be so fussy about duplicate files in a jar.
> 2. the jaxb-osgi.jar file should be cleaned up... (if possible)...
> the dups are probably easy to fix...
> the funky 1.0 package may actually serve a purpose... it just looks
> silly....
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>