These are basic steps you need to do for integration with Jasper JSP provider
- Download Apache Tomcat sources from
http://tomcat.apache.org/download-55.cgi
- Extract jasper subdirectory from source archive
- Download Apache commons
EL and
Logging unless you have them already. Only binaries are required. If you
do not use commons for something else, then you can copy commons-el.jar
and commons-logging-1.1.jar under dependlib directory inside
jasper (the directory needs to be created)
- Copy .java files under TJWS distribution which are in src/jasper
directory to corresponding place of jasper/src/share directory
(accordingly package name)
- Remove or rename with different extension AntCompiler.java,
and JDTCompiler.java from jasper/src/share under package org.apache.jasper.compiler
- Copy .xml files from TJWS distribution src/jasper to jasper
directory
- Edit env.xml providing correct paths to SERVLET_HOME, JSP_HOME,
and commons libraries
- Download and install
7Bee unless you already have it (it's worth to check for a fresh version
though)
- Launch bee and get jasper.jar built. You will find it in build
directory.
- Distribution of TJWS is already pre-configured to be integrated with
Jasper, so if you provide correct paths in env.xml of TJWS to Jasper
libraries, then you can start using it out of the box. Check with TJWS
documentation how to specify additional init parameters for JSP servlets,
like Jasper. If you use a start script for launching TJWS, then the
following Jasper parameters you may add:
-j org.apache.jasper.servlet.JspServlet -org.apache.jasper.servlet.JspServlet.classpath
%classpath% -org.apache.jasper.servlet.JspServlet.scratchdir %deploydir%/WEB-INF