Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30272

Glassfish bug? jaxb-osgi.jar has bad manifest

From Wayne <nospam@all.invalid>
Newsgroups comp.lang.java.programmer
Subject Glassfish bug? jaxb-osgi.jar has bad manifest
Message-ID <84F5w.629440$Rp.62373@fx23.iad> (permalink)
Organization Newshosting.com - Highest quality at a great price! www.newshosting.com
Date 2014-11-03 01:15 -0500

Show all headers | View raw


I have seen this behavior for some time now, under Windows 7,
warning messages coming from javaee.jar, as this output shows:

C:\Temp>javac -version
javac 1.8.0_25

C:\Temp>asadmin version
Version = GlassFish Server Open Source Edition  4.1  (build 13)
Command version executed successfully.

C:\Temp>type Foo.java
class Foo {}

C:\Temp>set CLASSPATH=.

C:\Temp>javac -Xlint:all Foo.java

C:\Temp>set CLASSPATH=.;\Java\glassfish4\glassfish\lib\javaee.jar

C:\Temp>javac -Xlint:all Foo.java
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\jaxb-core-2.2.10-b140802
.1033.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\jaxb-xjc-2.2.10-b140802.
1033.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\jaxb-impl-2.2.10-b140802
.1033.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\jaxb-jxc-2.2.10-b140802.
1033.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\jaxb1-impl-2.2.10-b14080
2.1033.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\jaxb-runtime-2.2.10-b140
802.1033.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\jaxb-api-2.2.12-b140109.
1041.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\txw2-2.2.10-b140802.1033
.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\istack-commons-runtime-2
.19.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\stax-ex-1.7.7.jar": no s
uch file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\FastInfoset-1.2.13.jar":
 no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\msv-core-2013.6.1.jar":
no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\xsdlib-2013.6.1.jar": no
 such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\relaxngDatatype-20020414
.jar": no such file or directory
warning: [path] bad path element
"\Java\glassfish4\glassfish\lib\..\modules\isorelax-20090621.jar":
no such file or directory
15 warnings

C:\Temp>

I have traced the bad class path elements to jaxb-osgi.jar.
The manifest seems to be an old template manifest, not the
correct one, but I don't know that for certain.  It mentions
Java 1.6 and has place-holders for version number of some items.

By editing that manifest file and removing the bad entries,
I can eliminate the warning messages.  However I think some
of the elements do need to be there, just without the
"-<versionNumber>" part; for example, "jaxb-api.jar".

More troubling is the reference to "jaxb1-impl-2.2.10-b14080.jar",
which I replaced with "jaxb-impl.jar" (without the "1" or the
version number).

It's also strange to me I was able to get away with this.
Why aren't the gf jars aren't signed?

With such drastic changes made to that manifest file, I
have little confidence that my modified gf is still working
correctly.

But it seems strange to me that nobody else posted about this, so
I'm thinking I must have done something dumb?  Can someone else
look into this, and report back?

(I tried to post this to the Glassfish user's forum, but I had
no luck with that.)

-- 
Wayne

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

Glassfish bug?  jaxb-osgi.jar has bad manifest Wayne <nospam@all.invalid> - 2014-11-03 01:15 -0500

csiph-web