[jdom-interest] Base vs. Relative URI?

MarkW markw at wilsoncom.de
Mon Mar 11 02:39:21 PST 2002


Hi,
try path relative to "localhost" or "127.0.0.1"
ie. //localhost/User_Manager/......
Mark

> -----Original Message-----
> From: jdom-interest-admin at jdom.org 
> [mailto:jdom-interest-admin at jdom.org] On Behalf Of Steve Beech
> Sent: Monday, March 11, 2002 10:26 AM
> To: 'jdom-interest at jdom.org'
> Subject: [jdom-interest] Base vs. Relative URI?
> 
> 
> Dear All,
> 
> I'm running a server app and using JDOM to parse my 
> configuration file. This
> works fine from inside my IDE but when I try to run from the 
> command line I
> get the following error:
> 
> Exception in thread "main" java.io.IOException: Error on line 
> 2: Relative
> URI "C:\User_Manager\UM_config.dtd"; can not be resolved 
> without a base URI.
>         at
> User_Manager.UM_configuration.parseConfiguration(UM_configurat
> ion.java:104)
>         at 
> User_Manager.UM_configuration.<init>(UM_configuration.java:49)
>         at 
> User_Manager.UM_configuration.<init>(UM_configuration.java:40)
>         at User_Manager.UM_multiServer.main(UM_multiServer.java:35)
> 
> My xml config file contains the following dtd reference:
> 
> <?xml version="1.0"?>
> <!DOCTYPE angel:um_config SYSTEM "c:\User_Manager\UM_config.dtd">
> 
> In my code I create a validating SAXBuilder using:
> 
> 	SAXBuilder builder = new SAXBuilder(true);
> 	System.out.println("SAXBuilder created ok");
> 	Document doc = builder.build(in);
> 
> I get the 'SAXBuilder created ok' message but the doc never 
> gets built.
> 
> The URI given appears to me to be a base URI and not relative 
> - so does
> anyone know why I might be getting this error?
> 
> Thanks in advance,
> 
> Steve Beech
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com




More information about the jdom-interest mailing list