Bug 2296 - Calling Fop through a servlet
Summary: Calling Fop through a servlet
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: all
Hardware: PC All
: P3 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-22 17:31 UTC by Manik
Modified: 2012-04-01 06:35 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manik 2001-06-22 17:31:47 UTC
Hi I am using latest Fop 19. I am able to convert my .fo files to .pdf easily 
by using fop.bat file. I am trying to create a servlet which can provide the 
functionality of converting any file (chosen by user through browser., 
mainly .fo) to pdf. I found an example FopServlet that accomplishes the 
purpose. But I am not able to compile the FopServlet.java to .class file. It 
did not compile and the following are the error I got.


D:\manik\fop19\docs\examples\embedding>javac FopServlet.java
FopServlet.java:59: Class org.xml.sax.InputSource not found in import.
import org.xml.sax.InputSource;
       ^
FopServlet.java:60: Class org.xml.sax.XMLReader not found in import.
import org.xml.sax.XMLReader;
       ^
FopServlet.java:62: Class org.apache.fop.apps.Driver not found in import.
import org.apache.fop.apps.Driver;
       ^
FopServlet.java:63: Class org.apache.fop.apps.Version not found in import.
import org.apache.fop.apps.Version;
       ^
4 errorsD:\manik\fop19\docs\examples\embedding>javac FopServlet.java
FopServlet.java:59: Class org.xml.sax.InputSource not found in import.
import org.xml.sax.InputSource;
       ^
FopServlet.java:60: Class org.xml.sax.XMLReader not found in import.
import org.xml.sax.XMLReader;
       ^
FopServlet.java:62: Class org.apache.fop.apps.Driver not found in import.
import org.apache.fop.apps.Driver;
       ^
FopServlet.java:63: Class org.apache.fop.apps.Version not found in import.
import org.apache.fop.apps.Version;
       ^
4 errors


I tried to build the fop by the calling build.bat(d:\manik\fop19\build.bat) in 
the command line. The build was successfull., but still javac FopServlet.java 
was not sucessfull. Please let me know, how i can call successfully create the 
class FopServlet.class and call it through a servlet (running from jakarta 
tomcat server).

Please help us ASAP.

Thanks
Manik
Comment 1 keiron 2001-08-10 01:02:55 UTC
This information will be available in the java file and on the website (when 
next updated).
You need the appropriate jars in the classpath
 - servlet_2_2.jar
 - fop.jar
 - sax api
Comment 2 Glenn Adams 2012-04-01 06:35:58 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed