Firestar: The issue you are having is in the jaxen codebase. It has been fixed in the latest version of jaxen (beta 7, i think). In the short term, here is a workaround until the dom4j 1.1 release.
Go to www.jaxen.org and download the latest version of jaxen. Place the jaxen-full.jar in your classpath before the dom4j.jar. This should work for you with JDK 1.2.2 until James releases dom4j 1.1 with the updated verion of jaxen. Hope this helps. James Webb -----Original Message----- From: Firestar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 16, 2001 2:48 AM To: James Strachan; [EMAIL PROTECTED] Subject: Re: [dom4j-user] Does dom4j run on JDK1.2.2? Wow! Thanks a lot - can't wait for the new release to be out:) Regards, Firestar --- James Strachan <[EMAIL PROTECTED]> wrote: > Hi Firestar > > Yes this bug crept in recently and has been fixed. > We'll be doing a dom4j > 1.1 release very soon which will fix this problem > and dom4j will run on > JDK1.2.2. > > James > ----- Original Message ----- > From: "Firestar" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 16, 2001 6:18 AM > Subject: [dom4j-user] Does dom4j run on JDK1.2.2? > > > > Hi, i was having this problem when using dom4j on > a > > Solaris with JDK 1.2.2: > > > > java.lang.NoSuchMethodError: > java.util.Collections: > > method > > singletonList(Ljava/lang/Object;)Ljava/util/List; > not > > found > > at > org.jaxen.BaseXPath.getContext(BaseXPath.java:90) > > at > org.jaxen.BaseXPath.selectNodes(BaseXPath.java:21) > > at > > > org.dom4j.xpath.DefaultXPath.selectNodes(DefaultXPath.java:118) > > > > It seems that the method > Collections.singletonList() > > is only available in JDK 1.3. Does that mean that > > dom4j only runs on JDK1.3, or will recompiling > dom4j > > or jaxen with JDK1.2.2 solve the problem? Thanks > in > > advance. > > > > Regards, > > Firestar > > > > __________________________________________________ > > Do You Yahoo!? > > Make a great connection at Yahoo! Personals. > > http://personals.yahoo.com > > > > _______________________________________________ > > dom4j-user mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/dom4j-user > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
