I wish I had a better answer for you, but I don't...  :-(

I logged a bug with the SAAJ team:
https://saaj.dev.java.net/issues/show_bug.cgi?id=7
and they closed it with "WONTFIX".   

Thus, there really are four options:
1) Grab the jaxp jar (can get it from:
http://download.java.net/maven/1/com.sun.xml.parsers/jars/jaxp-ri-1.4.1.jar)
and put that in your jre/lib/endorsed dir.  

2) You MAY be able to put the above jaxp jar into the same classloader as 
the saaj-impl.jar.   That sometimes works.   

3) Grab the SAAJ source from saaj.dev.java.net and change all the classes 
to subclass the org.apache types instead of the com.sun.org.apache 
(search/replace for com.sun.org.apache -> org.apache should do) and 
build your own jar.

4) Find a different SAAJ impl.   I'm surprised the axis2 one doesn't 
work.   I'm sure IBM has an implementation that works with their JDK 
(WebSphere would require it).  JBoss might as well.

Dan




On Tuesday 25 September 2007, Bc. Jiří Mikulášek wrote:
> Hello,
> we are developing for IBM java on AIX, which doesn't contain packages
> like com.sun.org.apache.xerces.*. Unfortunately saaj-impl depends
> directly on these packages.
> Is there some possibility to replace saaj implementation with another
> alternative?
> I have already tried axis2-saaj implementation but got into deep
> troubles with many org.w3c.dom.* Exceptions
>
> yes I know I can force AIX java to use xercesImpl (containing those
> packages), but it is not clean and therefore we prefer to remove the
> ugly library saaj-impl
>
> Best Regards



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to