|
Re: Build problem: msg#00020java.enhydra.xmlc
I run the follow code: public void testXMLC(){ PrintWriter writer = new PrintWriter(new OutputStreamWriter(System.err)); StreamXMLCLogger logger = new StreamXMLCLogger(writer, writer, writer); XMLCDeferredParsingFactory xmlcFactory = new XMLCDeferredParsingFactory(null, this.getClass().getClassLoader(), null); XMLObject xmlObject = xmlcFactory.createFromFile("resource/html/norvar/templete.html"); System.out.println(xmlObject.toDocument()); } I added all the jar files in release/lib. I don't know what I am still missing. java.lang.NoSuchMethodError: org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.getLogger()Lorg/enhydra/xml/xmlc/XMLCLogger; at org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getLogger(DocumentLoaderImpl.java:490) at org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getDocument(DocumentLoaderImpl.java:213) at $$XMLC_GENERATED$$.resource.html.norvar.templete.html.buildDocument(<generated>) at $$XMLC_GENERATED$$.resource.html.norvar.templete.html.<init>(<generated>) at $$XMLC_GENERATED$$.resource.html.norvar.templete.html.<init>(<generated>) at $$XMLC_GENERATED$$.resource.html.norvar.templete.html.<init>(<generated>) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.enhydra.xml.xmlc.XMLCStdFactory.doCreate(XMLCStdFactory.java:97) at org.enhydra.xml.xmlc.XMLCStdFactory.create(XMLCStdFactory.java:139) at org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.createFromFile(XMLCDeferredParsingFactory.java:182) at HTMLGenerator.testXMLC(HTMLGenerator.java:112) at HTMLGenerator.main(HTMLGenerator.java:97) Exception in thread "main" --- David Li <david@xxxxxxxxxxxxxxxxx> wrote: > check out the xmlc/examples/tomcat > > David > > On Tuesday, Mar 4, 2003, at 02:27 Asia/Shanghai, > Xue-Feng Yang wrote: > > > Thanks. > > > > I checked XMLCDeferredParsingFactory. It doesn't > have > > loadDocument methods. Actually, I check all > classes, > > there are no loadDocument methods. > > > > Do you have samples or testing code on this > "create"? > > I asked this since the arguments of the > constructor is > > (DocumentLoader, ClassLoader, XMLCLogger). It > looks > > too complicated for me. > > > > > > > > --- David Li <david@xxxxxxxxxxxxxxxxx> wrote: > > > 1) > > Where ca I find the XMLC command related files? > >> > >> I guess we should put the xmlc.sh/xmlc.bat back > to > >> the system? > >> > >> include all the jars in the release/lib and the > >> command line driver is: > >> > >> org.enhydra.xml.xmlc.commands.xmlc.XMLC > >> > >> > >>> 2) Which class(es) do I need to use to parse an > >>> html(xhtml) file to a Document/LazyHTMLDocument? > >> > >> Easiest way is to create a > >> XMLCDeferredParsingFactory and use the > >> loadDocument method on it. > >> > >> David > >> > >> _______________________________________________ > >> XMLC mailing list > >> XMLC@xxxxxxxxxxx > >> http://www.enhydra.org/mailman/listinfo.cgi/xmlc > > > > > ______________________________________________________________________ > > Post your free ad now! http://personals.yahoo.ca > > _______________________________________________ > > XMLC mailing list > > XMLC@xxxxxxxxxxx > > http://www.enhydra.org/mailman/listinfo.cgi/xmlc > > _______________________________________________ > XMLC mailing list > XMLC@xxxxxxxxxxx > http://www.enhydra.org/mailman/listinfo.cgi/xmlc ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Build problem, Xue-Feng Yang |
|---|---|
| Next by Date: | Re: Build problem, Xue-Feng Yang |
| Previous by Thread: | Re: Build problem, Xue-Feng Yang |
| Next by Thread: | Re: Build problem, Xue-Feng Yang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |