xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Ye" <eri...@locus.apache.org>
Subject Re: schema validation error in jsp.
Date Sat, 16 Sep 2000 02:02:42 GMT
First, what OS are you working with?
Second, you need to print out your java classpath to check each directory
and jar file listed there.
_____


Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org

----- Original Message -----
From: "Guoliang Cao" <cao@ispsoft.com>
To: <ericye@locus.apache.org>
Sent: Friday, September 15, 2000 9:52 AM
Subject: Re: schema validation error in jsp.


> Thanks a million.
> Can you be more specific please? Where can I find such a .jar file? in
previous
> xerces package or Sun jaxp 1.0 or some other product?
>
> > You must have another .jar file that has DOM implementaion in your
classpath
> > that comes before xerces.jar.
> > _____
> >
> > Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org
> >
> > ----- Original Message -----
> > From: "Guoliang Cao" <cao@ispsoft.com>
> > To: <xerces-j-dev@xml.apache.org>
> > Sent: Wednesday, September 13, 2000 1:07 PM
> > Subject: schema validation error in jsp.
> >
> > > When I use this code in my jsp file, I got an error like "method not
> > > found". Does anybody have the same experience?  Please be kind to give
> > > some suggestions. Thanks a lot.
> > >
> > > My platform: xerces-1.2.0, Jrun 3.0.  The configuration should be ok,
> > > because the compilation has passed.
> > >
> > > try {
> > >             SAXParser parser = new SAXParser();
> > >
> > >             if ( parser instanceof XMLReader ){
> > >                 ((XMLReader)parser).setFeature(
> > > "http://xml.org/sax/features/validation",
> > >                                                 true);
> > >                 ((XMLReader)parser).setFeature(
> > > "http://xml.org/sax/features/namespaces",
> > >                                                 true);
> > >                 ((XMLReader)parser).setFeature(
> > > "http://apache.org/xml/features/validation/schema",
> > >                                                 true);
> > >             }
> > >
> > >             parser.parse("request.xml");
> > > }
> > >
> > >
> > > 500 Internal Server Error
> > >
> > > /final/xmlTransformer.jsp:
> > >
> > > javax.servlet.ServletException: Exception thrown on line '38' from
page
> > > '/home/cao/jbproject/newton/req_xml/final/xmlTransformer.jsp'.
> > > java.lang.NoSuchMethodError: org.w3c.dom.Document: method
> > >
createElementNS(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
> > > not found
> > >         at
> > > org.apache.xerces.parsers.DOMParser.startElement(DOMParser.java:1042)
> > >         at
> > >
> >
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
> > or.java:823)
> > >
> > >         at
> > >
> >
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> > LDocumentScanner.java:989)
> > >
> > >         at
> > >
> >
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> > java:380)
> > >
> > >         at
> > > org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
> > >         at
> > >
> >
org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar(XMLVal
> > idator.java:2210)
> > >
> > >         at
> > >
> >
org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElementAndA
> > ttributes(XMLValidator.java:2098)
> > >
> > >         at
> > >
> >
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
> > or.java:815)
> > >
> > >         at
> > >
> >
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
> > r.java:1852)
> > >
> > >         at
> > >
> >
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> > LDocumentScanner.java:1000)
> > >
> > >         at
> > >
> >
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> > java:380)
> > >
> > >         at
> > > org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
> > >         at
> > > org.apache.xerces.framework.XMLParser.parse(XMLParser.java:939)
> > >         at
> > >
> >
jrun__final__xmlTransformer2ejsp19._jspService(jrun__final__xmlTransformer2e
> > jsp19.java:72)
> > >
> > >         at
> > > allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
> > >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> > >         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> > >         at
> > >
> >
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
> > )
> > >
> > >         at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174)
> > >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> > >         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> > >         at
> > >
> >
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
> > a:88)
> > >
> > >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> > >         at
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> > >
> > >         at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
> > >         at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
> > >         at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>


Mime
View raw message