<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>RE: [jdom-interest] JRun and JDom</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Tako, </FONT>
</P>
<P><FONT SIZE=2>Yes, those two librairies are useful!! :-)) </FONT>
<BR><FONT SIZE=2>They are part of the Java extension packages that are provided with JRun. </FONT>
<BR><FONT SIZE=2>And JRun is using them to parse the web.xml files : launch your JRun administration console, you will probably have some trouble with the left-hand side tree.</FONT></P>
<P><FONT SIZE=2>So, you have two solutions. </FONT>
<BR><FONT SIZE=2>1. You want to use Xerces as your main parser. </FONT>
<BR><FONT SIZE=2>This is what I do, but this is not the solution I would recommand (I do this because I need Xerces to use Apache SOAP). </FONT></P>
<P><FONT SIZE=2>Just put your xerces.jar file at the beginning of your classpath in your JRun global.properties file. </FONT>
<BR><FONT SIZE=2>Mine looks like that : </FONT>
<BR><FONT SIZE=2>jrun.classpath=C:/OmctApp/tools/xerces-1_3_0/xerces.jar;{jrun.rootdir}/lib/ext;{jrun.rootdir}/lib/jrun.jar;{jrun.rootdir}/lib/install.jar</FONT></P>
<P><FONT SIZE=2>2. You want to stay with the standard Java extension, and in that case use JAXP. I do this for my production servers. </FONT>
<BR><FONT SIZE=2>JAXP is provided by sun (java.sun.com). </FONT>
<BR><FONT SIZE=2>Download JAXP 1.1 : you will get 3 files -> crimson.jar, jaxp.jar, xalan.jar </FONT>
<BR><FONT SIZE=2>Just put them in your JRun lib directory - yes, replace your old jaxp.jar by this one. </FONT>
<BR><FONT SIZE=2>And voilą, it should work. </FONT>
</P>
<P><FONT SIZE=2>Julien Dubois. </FONT>
</P>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Tako Molanus [<A HREF="mailto:molanust@yahoo.com">mailto:molanust@yahoo.com</A>]</FONT>
<BR><FONT SIZE=2>> Sent: vendredi 23 mars 2001 9:39</FONT>
<BR><FONT SIZE=2>> To: jdom-interest@jdom.org</FONT>
<BR><FONT SIZE=2>> Subject: [jdom-interest] JRun and JDom</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Hi there,</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I am trying to install version b6 of JDom on JRun</FONT>
<BR><FONT SIZE=2>> version 3, but I run into some troubles, which I hope</FONT>
<BR><FONT SIZE=2>> you can help me with.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> If I try to run the servlet that builds the DOM tree,</FONT>
<BR><FONT SIZE=2>> it gives an error on the line</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> org.w3c.dom.Document domDoc = domOutputter.output</FONT>
<BR><FONT SIZE=2>> (doc).</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Compiling of this file went ok.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I traced the cause of this error to the inclusion in</FONT>
<BR><FONT SIZE=2>> the classpath (default by JRun) of two files: jaxp.jar</FONT>
<BR><FONT SIZE=2>> and parser.jar.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> If i include these two files in my classpath and put</FONT>
<BR><FONT SIZE=2>> them before the xerces library, the file does not</FONT>
<BR><FONT SIZE=2>> compile anymore.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> So, I have found the cause of my problem. Yippeee.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Now for the solution. If I remove the two libraries</FONT>
<BR><FONT SIZE=2>> from the JRun directory, the servlet works.</FONT>
<BR><FONT SIZE=2>> But I assume that they have been put there for a</FONT>
<BR><FONT SIZE=2>> reason, so I'd prefer to let them stay.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> How can I get around this?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Thanx in advance</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Tako Molanus</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> __________________________________________________</FONT>
<BR><FONT SIZE=2>> Do You Yahoo!?</FONT>
<BR><FONT SIZE=2>> Get email at your own domain with Yahoo! Mail. </FONT>
<BR><FONT SIZE=2>> <A HREF="http://personal.mail.yahoo.com/" TARGET="_blank">http://personal.mail.yahoo.com/</A></FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> To control your jdom-interest membership:</FONT>
<BR><FONT SIZE=2>> <A HREF="http://lists.denveronline.net/mailman/options/jdom-interest/yo" TARGET="_blank">http://lists.denveronline.net/mailman/options/jdom-interest/yo</A></FONT>
<BR><FONT SIZE=2>uraddr@yourhost.com</FONT>
</P>
</BODY>
</HTML>