<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Meddelande</TITLE>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE>@font-face {
        font-family: Verdana;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: purple; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=673022313-04022004>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=673022313-04022004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=673022313-04022004>When 
given a File object, SAXBuilder calls File#toURL and then creates an InputSource 
from that URL, and</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=673022313-04022004>hands 
it over to the XMLReader (the underlying parser).&nbsp; You can always check 
that you can open a connection</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=673022313-04022004>to 
this URL, yourself:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=673022313-04022004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=673022313-04022004>&nbsp;&nbsp;&nbsp; 
configFile.toURL().openStream();</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=673022313-04022004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=673022313-04022004>/pmn</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=673022313-04022004></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=sv dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Ursprungligt meddelande-----<BR><B>Från:</B> 
  jdom-interest-admin@jdom.org [mailto:jdom-interest-admin@jdom.org] <B>För 
  </B>Daniel, Gillian<BR><B>Skickat:</B> den 4 februari 2004 
  14:12<BR><B>Till:</B> jdom-interest@jdom.org<BR><B>Ämne:</B> [jdom-interest] 
  UnknownHostException with SAXBuilder<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Hi 
  there,</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">This is my first 
  post to the JDOM mailing list, as up till now I have experienced no problems 
  using JDOM.&nbsp; However I have been using weblogic 5/8.1 up until 
  now.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">I am currently 
  part of a team writing an application which reads in configuration files which 
  are in xml files.&nbsp; 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 face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">When I call 
  SAXBuilder.build on any of the configuration files, I get this 
  error</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Exception: 
  java.net.UnknownHostException: D</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Now my file is on 
  my D: drive, in a config folder, and the path to this config folder is in a 
  properties file.&nbsp; The file path is being read in correctly, as I have 
  added debug in to prove this.&nbsp; I can create a File from this path and the 
  configuration file name, but when I pass this File into the 
  SAXBuilder.build(myFile)&nbsp; get the UnknowHostException.&nbsp; 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 face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Here is my 
  code:</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">File configFile = 
  new File(thePath+buildFile);</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">System.out.println("BuildParsingServiceImpl.getRoot(): 
  configFile &#8220; + configFile.toString());</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Document document 
  = builder.build(configFile); 
  System.out.println("BuildParsingServiceImpl.getRoot(): Document Created: 
  ");</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">The result of 
  adding thePath + buildFile is </SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">D:\dev\projects\SproV2\web\sentinelpro\WEB-INF\config\node.xml</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">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 face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Can somebody 
  please indicate where I am going wrong?</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Any help would be 
  greatly appreciated, thank-you for taking the time to read 
  this,</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=purple size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: Verdana">Gillian</SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>