Solaris10/F 9: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
<p>I have a java app which runs on Solaris9/CF7 and it is using dom4j library for parsing XML files.
When testing the app on Solaris 10/CF 9 I get the following error:</p>

<p>org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory  </p>

<p>It looks like the library is not included twice (I removed the library from the instance class path and I got an object instantiation error).</p>

<p>Any ideas?</p>

<p>Thanks.
ags</p>
