I tried the same thing and couldn't reproduce your error, so I believe it might be the underlying implementation you're using that does not support this ...
The problem seems to be that the underlying implementation tries to create a URL directly from the path you supplied and seems to fail because you are using a relative path, this relative path cannot be resolved because the underlying implementation does not try to 'guess' the base of the path. I found it a little strange that I couldn't repeat your error, so I did a little investigation and found that this specific error message is only generated by the GNU Classpath implementation of java.net.URL. So, the JDK and GNU Classpath's implementation don't seem to be compatible. (this is a little worrying) To fix this, you could try to use either a File, like this: Document document = reader.read(new File("data/config/language.xml")); Which will use the current user directory (user.dir) to resolve the path. Or you could try to provide an absolute path? Document document = reader.read("/whatever/data/config/language.xml")); Or, looking at the code, you could just provide a protocol: Document document = reader.read("file:data/config/language.xml")); I hope this helped? Regards, Edwin -- http://www.edankert.com/ _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user