<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000080 face=Verdana size=2>Correction:</FONT></DIV>
<DIV><FONT color=#000080 face=Verdana size=2></FONT> </DIV>
<DIV><FONT color=#000080 face=Verdana
size=2>
DOMBuilder builder
=<BR>
new DOMBuilder("org.jdom.adapters.XercesDOMAdapter");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000080 face=Verdana size=2> <FONT
color=#ff0000> doc =
builder.build(in); </FONT></FONT></DIV>
<DIV><FONT color=#000080 face=Verdana size=2><FONT
color=#ff0000><BR></FONT></FONT> </DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080>How can I put the explicit
cast?</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT color=#000080 face=Verdana size=2>Regards</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080>Harish</FONT></DIV></FONT>
<DIV><FONT color=#000080 face=Verdana size=2></FONT> </DIV>
<DIV><FONT color=#000080 face=Verdana size=2><BR> </DIV></FONT>
<DIV><FONT color=#000080 face=Verdana size=2>Hi</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000080 face=Verdana size=2>After making the correction Page
No: 354( Java and Xml by Brett - Oreilly) for Writting XML From Java, When
I am trying to compile the XmlRpcConfiguration.java file I am getting the
following error:</FONT></DIV>
<DIV><FONT color=#000080 face=Verdana size=2></FONT> </DIV>
<DIV><FONT color=#ff0000 face=Verdana size=2>E:\xml_test\jdom\src>javac
XmlRpcConfiguration.java<BR>XmlRpcConfiguration.java:195: Incompatible type for
method. Explicit cast needed to convert java.io.Inpu<BR>Stream to
org.w3c.dom.Document.<BR>
doc =
builder.build(in);<BR>
^<BR>1 error</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080>But when I have replace the
colde as shown below</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana size=2><FONT
color=#000080>
DOMBuilder builder =<BR>
new DOMBuilder("org.jdom.adapters.XercesDOMAdapter");</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana size=2><FONT
color=#000080>to SAXBuilder builder =
</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080>
new SAXBuilder("org.jdom.adapters.XercesDOMAdapter");</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080>It is compiling with the
later code. What could be the reason?</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080>But When I am Displaying the
congiguration using the file "XmlRpcConfigurationServlet" (p.356), It is
showing the following error:</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT color=#000080>
<H1><FONT color=#ff0000 size=2>Error: 500</FONT></H1><FONT color=#ff0000><FONT
size=2><B>Internal Servlet Error:</B><BR></FONT></FONT><PRE><FONT color=#ff0000>java.io.IOException: SAX2 driver class org.jdom.adapters.XercesDOMAdapter does not implement XMLReader: SAX2 driver class org.jdom.adapters.XercesDOMAdapter does not implement XMLReader
        at XmlRpcConfiguration.parseConfiguration(XmlRpcConfiguration.java, Compiled Code)
        at XmlRpcConfiguration.<INIT>(XmlRpcConfiguration.java:83)
        at XmlRpcConfiguration.<INIT>(XmlRpcConfiguration.java:62)
        at XmlRpcConfigurationServlet.doGet(XmlRpcConfigurationServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
        at com.sun.web.core.InvokerServlet.service(InvokerServlet.java:168)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
        at com.sun.web.core.Context.handleRequest(Context.java:414)
        at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)
</FONT></PRE><BR></FONT></FONT><FONT face=Verdana><FONT color=#000080><FONT
size=2>Any body has tried this example? Please advice me how to
proceed?</FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT color=#000080><FONT size=2>Advance
Thanks</FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT color=#000080><FONT
size=2>Regards</FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT color=#000080></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT color=#000080><FONT size=2>Harish (mailto:
<A
href="mailto:harish.kumar@patni.com">harish.kumar@patni.com</A>)</FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT
color=#000080> </DIV></FONT></FONT></BODY></HTML>