I'm assuming you're using Tomcat 4.0 (Tomcat 3.2
appears to rely on its own XML parser, one that
individual webapps can't override--see
http://marc.theaimsgroup.com/?l=tomcat-user&m=99849943408731&w=2)

>From the link above, *perhaps* copying the xalan &
xerces you are placing in the jre/ext directory *also*
into tomcat\lib directory might be of help--from what
the link is suggesting above.  (Grasping at
straws--there is also an xml-apis.jar file that needs
copying, correct?  You should be moving three files if
I'm not mistaken.)

I've used FOP at work with Servlets--when I return to
work I'll see if there's anything useful I can report
on my library setup.

When successful, please let us know what you did--our
website may need updating somewhere so others don't
have to suffer so much after you! ;-)

Glen


--- Mike Kellstrand <[EMAIL PROTECTED]> wrote:
> OK,  I downloaded the latest xalan & xerces, and
> installed
> the jars in the lib/endorsed dir.
> 
> I ran the servlet and got:
> null:4:80 fo:flow must contain block-level children
> 
> Does the endorsed dir get loaded first, or are there
> some
> parsers build into one of the Tomcat core jars that
> are running instead?
> 
> Thanks,  Mike
> 
> ----- Original Message -----
> From: "Mike Kellstrand" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 12, 2003 3:43 PM
> Subject: Re: FOP code runs standalone, but not in a
> Servlet
> 
> 
> > Thanks for the reply.
> > I would think this would be a VFAQ, but I have
> seached
> > the web extensively and not found a good
> definitive answer.
> >
> > I'm downloading the latest releases of xerces and
> xalan.
> > I'll put the appropriate jars in the lib/endorsed
> dir and see if it works.
> >
> > Although there is still the very interesting
> question of why do the jars I
> > have
> > work from a stand-alone java program when placed
> in the jre\ext dir,
> > but don't work from a servlet when placed in the
> lib\endorsed dir?
> >
> > Thanks,  Mike
> >
> >
> > ----- Original Message -----
> > From: "J.Pietschmann" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, September 12, 2003 3:05 PM
> > Subject: Re: FOP code runs standalone, but not in
> a Servlet
> >
> >
> > > Mike Kellstrand wrote:
> > > > I have FOP 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.
> > >
> > > You should put the xerces and xalan jars in the
> lib/endorsed
> > > directory in order to override the buggy xalan
> release coming
> > > with older JDK 1.4 distributions. Getting the
> latest 1.4 release
> > > and disposing of the Xalan jar completely should
> work too.
> > >
> > > Also, make sure you have a recent Xalan jar in
> the FOP lib
> > > directory, pre 0.20.5rc3 FOP distributions came
> with Xalan
> > > releases which pretended to work for some buggy
> style sheets,
> > > causing problems with more recent Xalans.
> > >
> > > This all is a VFAQ.
> > >
> > > J.Pietschmann
> > >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to