Martijn Houtman <[EMAIL PROTECTED]> wrote: > Nico Klasens wrote > > > When I removed all jars from the endorsed dir I got this error: > > > > java.lang.NullPointerException > > I found out that the editwizard does allways need the xerces and xalan > jar's. It appears to work with both the Tomcat jar's (xercesImpl.jar etc.) > and the jar's supplied in the MMBase lib. So, if you remove the jar's from > the MMBase lib you need to put the Tomcat jar's back. > > It would be nice if the editwizard is changed and works without these jar's > like everything else in MMBase 1.7.
I think editwizard lean mainly on XPathAPI and XObject and so on, for which exist no good alternative. But: /usr/local/j2sdk1.4.2_02/jre/lib$ jar tf rt.jar | grep XPathAPI org/apache/xpath/CachedXPathAPI.class org/apache/xpath/XPathAPI.class I had to install neither xerces or xalan, not in tomcat nor in mmbase, it simply works. Also editwizards. Placing xalan.jar only gave troubles. So I tried a few things. - I upgraded the mmbase copile and 'bindist' to x*.jar of xalan_2_5_2 in stead of 2_2_0. - I ran mmbase in tomcat 4.1 jdk 1.4.1 and tomcat 5.0 and jdk 1.4.2 - I also installed j2sdk from blackdown, and I did not hit any misses I could place x* in WEB-INF/lib and it still worked. I could also simply delete them. Everything goes ok. I vaguely remember that I tried to upgrade xalan earlier (to 2_4 then) but it failed for some reason. But now it goes a lot better. Consicely, I think we should go to xalan_2_5_2 immediately. We could even consider not shipping xalan (is in jre's) and xerces (at least tomcat provides it), since that would cut down the size of the zip considerably. I'm not sure how about e.g. resin and orion. Resin has its own XSLT-processor IIRC, which its own problems. Orion required installing of rt.jar (so that also gives the right XObject and so on then), and parses with crimson IIRC. Michiel -- Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] ()
