You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Dane Foster <df...@equitytg.com> on 2001/02/22 19:27:45 UTC
Problem with Xalan J2 transformation
I'm having a serious problem with Xalan-J2/Xerces-J versions 2 and 1.3
respectively. I have embedded Xalan into a Servlet and I'm trying to
Transform a XML DOM to an XSL:FO DOM. I have attached a)the servlet code,
b)the XSLT document, and c) an instance of the XML Document that would have
been created by the Servlet's doPost method. Below is snapshot of the
StackTrace
java.lang.NoSuchMethodError: org.w3c.dom.Document: method
createElementNS(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
not found
at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:305)
at
org.apache.xalan.transformer.QueuedStartElement.flush(QueuedStartElement.jav
a:286)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
r.java:774)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:283)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
749)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at com.equitytg.webTools.FormIDServlet._$83959(FormIDServlet.java:390)
at com.equitytg.webTools.FormIDServlet.doPost(FormIDServlet.java:74)
Dane Foster
MIS Director
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800
Re: Problem with Xalan J2 transformation
Posted by Dane Foster <df...@equitytg.com>.
I'm desperate ! Any help would be greatly appreciated.
Dane Foster
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800
Re: Problem with Xalan J2 transformation
Posted by Dane Foster <df...@equitytg.com>.
You were right. I browsed through the JARS in my classpath and found that
my ServletEngine's Jar file has the DOM 1 interface classes. Thanx
Dane Foster
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800
----- Original Message -----
From: "Arnaud Le Hors" <le...@us.ibm.com>
To: <xe...@xml.apache.org>
Sent: Thursday, February 22, 2001 5:26 PM
Subject: Re: Problem with Xalan J2 transformation
Dane Foster wrote:
>
> I'm using the latest and greatest version of XercesJ and XalanJ
Even though, if you happen to have a jar, which contains the DOM Level 1
interfaces, first on your classpath you'll get the error you're
reporting.
--
Arnaud Le Hors - IBM Cupertino, XML Strategy Group
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Problem with Xalan J2 transformation
Posted by Arnaud Le Hors <le...@us.ibm.com>.
Dane Foster wrote:
>
> I'm using the latest and greatest version of XercesJ and XalanJ
Even though, if you happen to have a jar, which contains the DOM Level 1
interfaces, first on your classpath you'll get the error you're
reporting.
--
Arnaud Le Hors - IBM Cupertino, XML Strategy Group
Re: Problem with Xalan J2 transformation
Posted by Dane Foster <df...@equitytg.com>.
I'm using the latest and greatest version of XercesJ and XalanJ
Dane Foster
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800
----- Original Message -----
From: "Sam Pullara" <sa...@sampullara.com>
To: <xe...@xml.apache.org>
Sent: Thursday, February 22, 2001 1:51 PM
Subject: RE: Problem with Xalan J2 transformation
It looks like you have the wrong version of the DOM classes. You should use
the ones that come with the distributions.
Sam
-----Original Message-----
From: Dane Foster [mailto:dfoster@equitytg.com]
Sent: Thursday, February 22, 2001 10:28 AM
To: xerces-j-user@xml.apache.org
Subject: Problem with Xalan J2 transformation
I'm having a serious problem with Xalan-J2/Xerces-J versions 2 and 1.3
respectively. I have embedded Xalan into a Servlet and I'm trying to
Transform a XML DOM to an XSL:FO DOM. I have attached a)the servlet code,
b)the XSLT document, and c) an instance of the XML Document that would have
been created by the Servlet's doPost method. Below is snapshot of the
StackTrace
java.lang.NoSuchMethodError: org.w3c.dom.Document: method
createElementNS(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
not found
at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:305)
at
org.apache.xalan.transformer.QueuedStartElement.flush(QueuedStartElement.jav
a:286)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
r.java:774)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:283)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
749)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at com.equitytg.webTools.FormIDServlet._$83959(FormIDServlet.java:390)
at com.equitytg.webTools.FormIDServlet.doPost(FormIDServlet.java:74)
Dane Foster
MIS Director
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
RE: Problem with Xalan J2 transformation
Posted by Sam Pullara <sa...@sampullara.com>.
It looks like you have the wrong version of the DOM classes. You should use
the ones that come with the distributions.
Sam
-----Original Message-----
From: Dane Foster [mailto:dfoster@equitytg.com]
Sent: Thursday, February 22, 2001 10:28 AM
To: xerces-j-user@xml.apache.org
Subject: Problem with Xalan J2 transformation
I'm having a serious problem with Xalan-J2/Xerces-J versions 2 and 1.3
respectively. I have embedded Xalan into a Servlet and I'm trying to
Transform a XML DOM to an XSL:FO DOM. I have attached a)the servlet code,
b)the XSLT document, and c) an instance of the XML Document that would have
been created by the Servlet's doPost method. Below is snapshot of the
StackTrace
java.lang.NoSuchMethodError: org.w3c.dom.Document: method
createElementNS(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
not found
at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:305)
at
org.apache.xalan.transformer.QueuedStartElement.flush(QueuedStartElement.jav
a:286)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
r.java:774)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:283)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
749)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at com.equitytg.webTools.FormIDServlet._$83959(FormIDServlet.java:390)
at com.equitytg.webTools.FormIDServlet.doPost(FormIDServlet.java:74)
Dane Foster
MIS Director
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800