logo       


Re: Build problem: msg#00020

Subject: Re: Build problem
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


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe