tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kellstrand" <mi...@rapix.com>
Subject Re: FOP code runs standalone, but not in a Servlet
Date Fri, 12 Sep 2003 17:07:29 GMT
I tried putting the xalan jar in the endorsed dir and got the following
error:
null:4:80 fo:flow must contain block-level children

I ran into this one before.

There is a section in my xslt file as follows:
<fo:flow flow-name="xsl-region-body">
      <xsl:apply-templates select="coverpage"/>
</fo:flow>

If I add a <fo:block> snippet between the fo:flow tags,
the transform runs with no errors, but it never calls
the xsl:apply-templates tag to call in the real document contents.

This seems like a good clue, that whatever parser it is really calling
doesn't understand xsl: tags.

Help!!   :)

Mike


----- Original Message -----
From: "Jacob Kjome" <hoju@visi.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, September 12, 2003 11:47 AM
Subject: RE: FOP code runs standalone, but not in a Servlet


> At 11:33 AM 9/12/2003 -0400, you wrote:
>
> >Howdy,
> >You want to put all your jars in WEB-INF/lib.  What are the errors
> >you're getting?
>
> hmm.... Xalan is an endorsed library.  It needs to be in
> CATALINA_HOME/common/endorsed or JAVA_HOME/jre/lib/endorsed, otherwise the
> old buggy version of Xalan that comes with j2sdk1.4.x will be used.
>
> Jake
>
> >Yoav Shapira
> >Millennium ChemInformatics
> >
> >
> > >-----Original Message-----
> > >From: Mike Kellstrand [mailto:mikek@rapix.com]
> > >Sent: Friday, September 12, 2003 11:27 AM
> > >To: tomcat-user@jakarta.apache.org
> > >Subject: FOP code runs standalone, but not in a Servlet
> > >
> > >I have Java FOP (XSLT-FO PDF converter) code that runs great from the
> > >command line if I put the fop, batik, avalon, and xalan jars
> > >in the JAVA_HOME\jre\lib\ext dir.
> > >
> > >If I put this code in a servlet under Tomcat 4.1.24, I get transform
> > >errors.
> > >
> > >I have tried putting the FOP jars in various Tomcat lib dirs,
> > >in webapps with the servlet, etc.  Everywhere I move these jars
> > >I get different amusing transform exceptions, but it doesn't run.
> > >
> > >1)  Where do the jars need to go?
> > >2)  Are there any parser jars that come with Tomcat that need to get
> > >removed.
> > >I tried removing the 2 jars that are in /common/endorsed, but that
> >didn't
> > >help.
> > >
> > >This is driving me nuts!
> > >
> > >Many thanks!
> > >
> > >Mike
> >
> >
> >
> >This e-mail, including any attachments, is a confidential business
> >communication, and may contain information that is confidential,
> >proprietary and/or privileged.  This e-mail is intended only for the
> >individual(s) to whom it is addressed, and may not be saved, copied,
> >printed, disclosed or used by anyone else.  If you are not the(an)
> >intended recipient, please immediately delete this e-mail from your
> >computer system and notify the sender.  Thank you.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message