<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:Verdana;
        color:purple;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Hi there,</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>This is my first post
to the JDOM mailing list, as up till now I have experienced no problems using
JDOM. However I have been using weblogic 5/8.1 up until now.</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>I am currently part
of a team writing an application which reads in configuration files which are
in xml files. For development purposes we are using Apache Tomcat 5.0.16,
with Java Standard Edition 1.4.2.02 and Java Enterprise Edition 1.4</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>When I call SAXBuilder.build
on any of the configuration files, I get this error</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Exception: java.net.UnknownHostException:
D</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Now my file is on my
D: drive, in a config folder, and the path to this config folder is in a
properties file. The file path is being read in correctly, as I have
added debug in to prove this. I can create a File from this path and the
configuration file name, but when I pass this File into the SAXBuilder.build(myFile)
get the UnknowHostException. I know it falls over here, as I have debug
following this line and this is never output.</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Here is my code:</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>File configFile = new
File(thePath+buildFile);</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>System.out.println("BuildParsingServiceImpl.getRoot():
configFile “ + configFile.toString());</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Document document = builder.build(configFile);
System.out.println("BuildParsingServiceImpl.getRoot(): Document Created:
");</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>The result of adding thePath
+ buildFile is </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>D:\dev\projects\SproV2\web\sentinelpro\WEB-INF\config\node.xml</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>I honestly have no
idea what is wrong, I have tried making the File a URL, I have tried adding
file: in front of thePath, but still nothing.</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Can somebody please
indicate where I am going wrong?</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'> </span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Any help would be
greatly appreciated, thank-you for taking the time to read this,</span></font></p>
<p class=MsoNormal><font size=2 color=purple face=Verdana><span lang=EN-GB
style='font-size:11.0pt;font-family:Verdana;color:purple'>Gillian</span></font></p>
</div>
</body>
</html>