Solution: FOP code runs standalone, but not in a Servlet

2003-09-15 Thread Mike Kellstrand
Here is how I got FOP to run from a servlet. I did also have a subtle syntax error in my xslt file that was causing some of my troubles and leading me down the wrong path. I think this would be a good entry for the FAQ. Although I searched the web extensively, I never found this issue discussed.

Re: FOP code runs standalone, but not in a Servlet

2003-09-15 Thread Glen Mazza
Mike, On my machine at work (Win NT), I'm using J2SDK 1.4.1 and Tomcat 4.1. Currently: I have *no* xerces/xalan libraries in the j2sdk\jre\lib\ext directory. (Perhaps not a wise idea as Joerg was saying--the libraries with the Sun JDK may be out-of-date) Also, I have *no* xerces/xalan libraries

Re: FOP code runs standalone, but not in a Servlet

2003-09-13 Thread Glen Mazza
0 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 > > > > - Or

Re: FOP code runs standalone, but not in a Servlet

2003-09-13 Thread Glen Mazza
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

Re: FOP code runs standalone, but not in a Servlet

2003-09-12 Thread J.Pietschmann
Mike Kellstrand wrote: I ran the servlet and got: null:4:80 fo:flow must contain block-level children This is not an error messages from the XSLT processor, this means FOP doesn't accept the result of your transformation. Most likely the template responsible for generating the flow content doesn't

Re: FOP code runs standalone, but not in a Servlet

2003-09-12 Thread Mike Kellstrand
ning 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

Re: FOP code runs standalone, but not in a Servlet

2003-09-12 Thread J.Pietschmann
Mike Kellstrand wrote: 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? This is indeed baffling. I guess you were taking the jars fr

Re: FOP code runs standalone, but not in a Servlet

2003-09-12 Thread Mike Kellstrand
CTED]> 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 t

Re: FOP code runs standalone, but not in a Servlet

2003-09-12 Thread J.Pietschmann
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

FOP code runs standalone, but not in a Servlet

2003-09-12 Thread Mike Kellstrand
This is a followup to a question earlier today.   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.   If I put this code in a servlet under Tomcat 4.1.24, I get transform errors.   I have tried putting the