<!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 "ClassCircularityError" 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("org.jdom.adapters.XercesDOMAdapter",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"><?xml version="1.0" encoding="UTF-8"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!DOCTYPE myDocument></FONT>
<BR><FONT SIZE=2 FACE="Arial"><bugs><description>aBug</description></FONT>
<BR><FONT SIZE=2 FACE="Arial"><author>Frank</author></FONT>
<BR><FONT SIZE=2 FACE="Arial"><createdDate>Today</createdDate></FONT>
<BR><FONT SIZE=2 FACE="Arial"><roles /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><activities /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><dataList /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><transitions /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><conditions /></FONT>
<BR><FONT SIZE=2 FACE="Arial"></bugs></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"><?xml version="1.0" encoding="UTF-8"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!DOCTYPE myDocument><bugs><description>aBug</description></FONT>
<BR><FONT SIZE=2 FACE="Arial"><author>Frank</author></FONT>
<BR><FONT SIZE=2 FACE="Arial"><createdDate>Today</createdDate></FONT>
<BR><FONT SIZE=2 FACE="Arial"><roles></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <role></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <name>Programmer</name></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <description>a programmer</description></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </role></FONT>
<BR><FONT SIZE=2 FACE="Arial"></roles></FONT>
<BR><FONT SIZE=2 FACE="Arial"><activities /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><dataList /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><transitions /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><conditions /></FONT>
<BR><FONT SIZE=2 FACE="Arial"></bugs></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> <FONT SIZE=2 FACE="Arial">at java.lang.ClassLoader.resolveClass0(Native Method)</FONT>
<BR> <FONT SIZE=2 FACE="Arial">at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)</FONT>
<BR> <FONT SIZE=2 FACE="Arial">at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassLoader.java, Compiled Code)</FONT>
<BR> <FONT SIZE=2 FACE="Arial">at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java, Compiled Code)</FONT></P>
<P> <FONT SIZE=2 FACE="Arial">at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java, Compiled Code)</FONT>
<BR> <FONT SIZE=2 FACE="Arial">at java.lang.ClassLoader.defineClass0(Native Method)</FONT>
</P>
<BR>
<BR>
<BR>
</BODY>
</HTML>