You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Carole E. Mah" <ca...@mama.stg.brown.edu> on 2002/05/02 04:13:01 UTC
broken x:transform
So <x:transform> was working for me before when using early access jstl.
Now I have upgraded to beta2.
Now, I get this error:
javax.servlet.ServletException:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
Document root element is missing.
Can someone tell me why this is happening?
thank you,
-carole
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Carole E. Mah carolem@stg.brown.edu
Senior Programmer/Analyst
Brown University Scholarly Technology Group
phn 401-863-2669
fax 401-863-9313
http://www.stg.brown.edu/
personal: http://www.stg.brown.edu/~carolem/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Parser Exceptions
Posted by Ronald DiFrango <di...@alumni.pitt.edu>.
Has anyone out there seen the following error when upgrading to Beta2 of the
standard taglibs:
javax.servlet.ServletException: SAX2 driver class
org.apache.xerces.parsers.SAXParser does not implement XMLReader
I placed all the JARS in WEB-INF/lib. I am using Tomcat 4.0.1 to run the
JSP's.
Thanks in advance,
Ron
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: broken x:transform
Posted by "Carole E. Mah" <ca...@mama.stg.brown.edu>.
Shawn sent me this reply -- it was not parsing anything becasue it never
even found the files - I was using the wrong syntax for the file path.
>Hi Carole,
>
>Since Beta2, <x:transform> doesn't accept URLs directly; you need to feed
>it actual XML documents. To do this, you can load them with <c:import>.
>(The fact that absolute filenames ever worked was an accident -- a bug,
>actually.)
>
>Shawn
>
>On Wed, 1 May 2002, Carole E. Mah wrote:
>
>
> They are exactly as they were under the old system.
>
> Not empty!
>
> Full paths, like
>
> <x:transform
> xslt="/usr/java/tomcat/webapps/foo/single-toc.xsl"
> xml="/usr/java/tomcat/webapps/foo/single-test.xml">
> <x:param name="expandID" value="${param.expand}" />
> </x:transform>
>
>
> Do you need more?
>
> I did not change anything inside these files.
>
> :-(
>
> -c
On Thu, 2 May 2002, James Strachan wrote:
> Sounds like its now parsing the body of the tag and not finding any XML. Any
> chance the tag attributes have changed and you're using old attribute names?
>
> James
> ----- Original Message -----
> From: "Carole E. Mah" <ca...@mama.stg.brown.edu>
> To: "Tag Libraries Users List" <ta...@jakarta.apache.org>
> Sent: Thursday, May 02, 2002 3:13 AM
> Subject: broken x:transform
>
>
> >
> > So <x:transform> was working for me before when using early access jstl.
> >
> > Now I have upgraded to beta2.
> >
> > Now, I get this error:
> >
> > javax.servlet.ServletException:
> > javax.xml.transform.TransformerConfigurationException:
> > javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
> > Document root element is missing.
> >
> > Can someone tell me why this is happening?
> >
> > thank you,
> > -carole
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > Carole E. Mah carolem@stg.brown.edu
> > Senior Programmer/Analyst
> > Brown University Scholarly Technology Group
> > phn 401-863-2669
> > fax 401-863-9313
> > http://www.stg.brown.edu/
> > personal: http://www.stg.brown.edu/~carolem/
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Carole E. Mah carolem@stg.brown.edu
Senior Programmer/Analyst
Brown University Scholarly Technology Group
phn 401-863-2669
fax 401-863-9313
http://www.stg.brown.edu/
personal: http://www.stg.brown.edu/~carolem/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: broken x:transform
Posted by James Strachan <ja...@yahoo.co.uk>.
Sounds like its now parsing the body of the tag and not finding any XML. Any
chance the tag attributes have changed and you're using old attribute names?
James
----- Original Message -----
From: "Carole E. Mah" <ca...@mama.stg.brown.edu>
To: "Tag Libraries Users List" <ta...@jakarta.apache.org>
Sent: Thursday, May 02, 2002 3:13 AM
Subject: broken x:transform
>
> So <x:transform> was working for me before when using early access jstl.
>
> Now I have upgraded to beta2.
>
> Now, I get this error:
>
> javax.servlet.ServletException:
> javax.xml.transform.TransformerConfigurationException:
> javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
> Document root element is missing.
>
> Can someone tell me why this is happening?
>
> thank you,
> -carole
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Carole E. Mah carolem@stg.brown.edu
> Senior Programmer/Analyst
> Brown University Scholarly Technology Group
> phn 401-863-2669
> fax 401-863-9313
> http://www.stg.brown.edu/
> personal: http://www.stg.brown.edu/~carolem/
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: broken x:transform
Posted by Shawn Bayern <ba...@essentially.net>.
Carole,
We'll need more information to help. What are the input XML and XSLT
documents. The error likely indicates that one of them is empty or null.
--
Shawn Bayern
"JSP Standard Tag Library" http://www.jstlbook.com
(coming this summer from Manning Publications)
On Wed, 1 May 2002, Carole E. Mah wrote:
>
> So <x:transform> was working for me before when using early access jstl.
>
> Now I have upgraded to beta2.
>
> Now, I get this error:
>
> javax.servlet.ServletException:
> javax.xml.transform.TransformerConfigurationException:
> javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
> Document root element is missing.
>
> Can someone tell me why this is happening?
>
> thank you,
> -carole
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Carole E. Mah carolem@stg.brown.edu
> Senior Programmer/Analyst
> Brown University Scholarly Technology Group
> phn 401-863-2669
> fax 401-863-9313
> http://www.stg.brown.edu/
> personal: http://www.stg.brown.edu/~carolem/
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>