logo       

Re: xmlc and tomcat4.1.1.12 compatibility problem: msg#00097

java.enhydra.xmlc

Subject: Re: xmlc and tomcat4.1.1.12 compatibility problem

I just found out that Apache 1.4.4 is implemented with an experimental W3C DOM API that's not exactly compatible with the final release. Namely, the setEncoding in the org.w3c.dom.Document is removed from final release. This makes XMLC throws exception in some rare case.

With that in mind, I'd suggest putting the xerces.jar from XMLC 2.1 to the TOMCAT_HOME/common/endorsed. This way, if you are running JDK 1.4, the org.w3c.dom class will be picked up from the XMLC xerces.jar instead of the default DOM API in the JDK. This would avoid the problem with DOM API.

On Tuesday, Nov 26, 2002, at 10:56 Asia/Shanghai, Jacob Kjome wrote:

No, actually you can leave Tomcat's endorsed directory alone.  Just put the xerces version that comes with XMLC-2.1 into Tomcat's shared/lib directory... along with jtidy, gnu-regexp, and xmlc.  Everything should be fine.

Jake

At 05:52 PM 11/25/2002 +0800, you wrote:

Remove the two xerces jars files from the tomcat/common/endoursed directory.

David


On Monday, Nov 25, 2002, at 17:01 Asia/Shanghai, Bagyura István wrote:

Hi everyone!

I have a problem with tomcat 4.1.12 and xmlc that I haven't experienced before.
I have a project that uses xmlc and runs under tomcat 4.0.1. It runs nicely.
But I have tried to upgrade tomcat 4.1.12 and I've got the following error:

java.lang.VerifyError: (class: org/enhydra/xml/lazydom/LazyElementNoNS, method: expandAttributes signature: ()V) Incompatible object argument for function call
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.enhydra.xml.lazydom.html.LazyHTMLDocument.populateElementType(LazyHTMLDocument.java:689)
at org.enhydra.xml.lazydom.html.LazyHTMLDocument.populateElementTypes(LazyHTMLDocument.java:620)
at org.enhydra.xml.lazydom.html.LazyHTMLDocument.(LazyHTMLDocument.java:701)
at org.enhydra.xml.xmlc.dom.lazydom.LazyHTMLDomFactory.createDocument(LazyHTMLDomFactory.java:46)
at com.hungary.smart.presentation.indexHTML.(indexHTML.java:417)

I tried to configure my tomcat as the previous one, but it can't help.

I can't figure out the solution.

Thanks for your help!

Istvan Bagyura
 

</blockquote></x-html>

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise