Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stellation-res] Eclipse no longer ships org.apache.xerces plugin

Rafal Krzewski wrote:

Mark C Chu-Carroll wrote:

Re: Xerces. Unfortunately, Xerces is *not* part of the Java API. Sun has defined the w3c DOM classes as part of the standard API, and requires all JDKs and JREs the include *an* implementation of the DOM. In the IBM JVMs, that's Xerces; in the Sun JDKs, it's not.


I know they've included DOM & SAX APIs, and I thought that the implementation in Sun JDKs also Xerces. I was mistaken. Anyway I don't see an obvious reason why Stellation would depend on any proprietary interfacs of Xerces. I suspect that the only thing needed to switch to platform's DOM/SAX would be doing instantiation of parsers through JAXP.

So, to get the client working for the interim, there are really only two choices: switch to the generic Java DOM support, or switch to JDOM.
>
>
> Platform DOM/JAXP would probably be faster. I'll take look at that
> tomorrow.

Unfortunately I wasn't able to get to it until now.

There were two distinct issues:

- xml serialization in DialogPropertyBag class, I was able to get around it with some basic java.xml.parsers/java.xml.transform stuff.

- Base64 encoding decoding using a class from Xerces implementation. After tweaking this to one side and another I ended up with copying the file from platform sources to org.stellation.util. I don't know if it's apropriate WRT licensing policies. If not - another suitable implementation must be found.

The patch is available at:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=64013

Rafal


Back to the top