Endorsed librarys different between J2sdk 1.4.2 and 1.4.1 ?

From: Patrick Saunders (psaunder_at_comcen.com.au)
Date: 03/31/04


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.



Relevant Pages

  • Re: Spring/Hibernate vs EJBs
    ... Spring/Hibernate vs using EJBs (e.g., with ... JBoss); I do realize that they are not necessarily mutually exclusive. ... there any special tools, products, libraries, etc. you ...
    (comp.lang.java.programmer)
  • SSL libraries that both JBoss and IBM can use?
    ... A client is running into conflicts in SSL implementation between JBoss ... and WebSphere - different libraries, ... Is there a 3rd party ... When I raise this with JBoss and WebSphere they ...
    (comp.lang.java.programmer)
  • Re: JDeveloper ADF and JBoss
    ... First of all you will have to install all ADF related libraries into ... deploy these applications to a JBoss application server. ...
    (comp.databases.oracle.tools)