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

Reply via email to