<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>ClassCircularityError: org/apache/xerces/dom/AttrImpl</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I got &quot;ClassCircularityError&quot; exception when I tried to add an element</FONT>
<BR><FONT SIZE=2 FACE="Arial">to the xml file below, I found if I kept trying, after two more times, it would successfully</FONT>
<BR><FONT SIZE=2 FACE="Arial">insert this element and created the right xml file.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The evrionment I used are:</FONT>
<BR><FONT SIZE=2 FACE="Arial">DOMBuilder builder = new DOMBuilder(&quot;org.jdom.adapters.XercesDOMAdapter&quot;,false);</FONT>
<BR><FONT SIZE=2 FACE="Arial">Weblogic 5.1.0 as application server.</FONT>
<BR><FONT SIZE=2 FACE="Arial">NT4.0 workstation</FONT>
<BR><FONT SIZE=2 FACE="Arial">IE5.0</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">did anybody has experience of this kind of error?</FONT>
<BR><FONT SIZE=2 FACE="Arial">please help, thanks.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Frank</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">I want to add a role (e.g. programmer) to this xml file as an element of roles. </FONT>
<BR><FONT SIZE=2 FACE="Arial">//</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;!DOCTYPE myDocument&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;bugs&gt;&lt;description&gt;aBug&lt;/description&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;author&gt;Frank&lt;/author&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;createdDate&gt;Today&lt;/createdDate&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;roles /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;activities /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;dataList /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;transitions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;conditions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;/bugs&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">//</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">//first try failed, tried two more times, it successfully created the following xml file</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;!DOCTYPE myDocument&gt;&lt;bugs&gt;&lt;description&gt;aBug&lt;/description&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;author&gt;Frank&lt;/author&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;createdDate&gt;Today&lt;/createdDate&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;roles&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;role&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name&gt;Programmer&lt;/name&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description&gt;a programmer&lt;/description&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; &lt;/role&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;/roles&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;activities /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;dataList /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;transitions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;conditions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&lt;/bugs&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">//</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">weblogic logfile:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">java.lang.ClassCircularityError: org/apache/xerces/dom/AttrImpl</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">at java.lang.ClassLoader.resolveClass0(Native Method)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassLoader.java, Compiled Code)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java, Compiled Code)</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java, Compiled Code)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">at java.lang.ClassLoader.defineClass0(Native Method)</FONT>
</P>
<BR>
<BR>
<BR>

</BODY>
</HTML>