Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] classloading bug with xom used in servlet

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Bill de hÓra <bill AT dehora.net>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] classloading bug with xom used in servlet
  • Date: Mon, 02 Feb 2004 21:45:08 +0000

Wolfgang Hoschek wrote:


Above patch works for me but can perhaps be improved - I'm no class loader guru either...

IIRC delegating the request to the system class loader won't work in a servlet container - the system class loader is further up in the chain than the web app class loader that loaded xom. The current thread's loader should also work, but I believe some experimentation will be need to figure out whether to use "/" at the root of the resource path for certain loaders. I've had problems getting resources to load soundly across the gamut of servlet containers, ejb cointainers, ides, junit and ant.

http://www.javaworld.com/javaqa/2003-08/01-qa-0808-property_p.html

has a good overview.

cheers
Bill de hÓra





Archive powered by MHonArc 2.6.24.

Top of Page