<!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>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;I got &quot;ClassCircularityError&quot; exception when I tried to add an element</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;to the xml file below, I found if I kept trying, after two more times,</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;it would successfully</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;insert this element and created the right xml file.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;The evrionment I used are:</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;DOMBuilder builder = new</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;DOMBuilder(&quot;org.jdom.adapters.XercesDOMAdapter&quot;,false);</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;Weblogic 5.1.0 as application server.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;NT4.0 workstation</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;IE5.0</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;did anybody has experience of this kind of error?</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;please help, thanks.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;Frank</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;I want to add a role (e.g. programmer) to this xml file as an element</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;of roles.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;//</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;!DOCTYPE myDocument&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;bugs&gt;&lt;description&gt;aBug&lt;/description&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;author&gt;Frank&lt;/author&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;createdDate&gt;Today&lt;/createdDate&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;roles /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;activities /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;dataList /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;transitions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;conditions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;/bugs&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;//</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;//first try failed, tried two more times, it successfully created the</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;following xml file</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;!DOCTYPE myDocument&gt;&lt;bugs&gt;&lt;description&gt;aBug&lt;/description&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;author&gt;Frank&lt;/author&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;createdDate&gt;Today&lt;/createdDate&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;roles&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; &lt;role&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&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;&nbsp; &lt;description&gt;a programmer&lt;/description&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;/role&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;/roles&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;activities /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;dataList /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;transitions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;conditions /&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&lt;/bugs&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;//</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;weblogic logfile:</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;java.lang.ClassCircularityError: org/apache/xerces/dom/AttrImpl</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.resolveClass0(Native Method)</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassLoader.java,</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;Compiled Code)</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java,</FONT></P>

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

</BODY>
</HTML>