Endorsed librarys different between J2sdk 1.4.2 and 1.4.1 ?
From: Patrick Saunders (psaunder_at_comcen.com.au)
Date: 03/31/04
- Next message: James: "Re: About static methods"
- Previous message: Dave Glasser: "Re: servlet can not access jar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Mar 2004 21:26:13 -0800
Something I found out today after much grief.
I was trying to start up JBoss application (Xflow) that required Java
XML apis and was getting this error:
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
According to the documentation it should have just 'worked'.
I fiddled with CLASSPATH to no avai.
What I found out is that the J2SDK 1.4 libraries have precedence over
other libraries, but the problem is that the Sun libraries are an
INCOMPLETE definition of the w3c libraries. In this case it DOES NOT
have definition of class "org.w3c.dom.ranges.DocumentRange"
Then I had idea of using the J2SDK that comes with JBuilder9, lo and
behold it works perfectly. I can only assume that J2SDK 1.4.1 does not
have same precedent mechanism as it found the JBoss xml library NOT
the Sun 1.4.2 libraries..?
Read about endorsed libraries here
http://java.sun.com/j2se/1.4.2/docs/guide/standards/
Anyone else care to comment on this? I can only comment on behaviour I
am seeing.
Patrick.
- Next message: James: "Re: About static methods"
- Previous message: Dave Glasser: "Re: servlet can not access jar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|