Tomcat and Passthru Servlet

ok so maybe this is a stupid question but i’m pretty stuck.

Coulds anyone explain how i get the Passthru servlet example in the documentation to work with tomcat.

i have got tomcat to work with apache so this is no problem, i did have Jserv working fine but i need JSP also.

Using Tomcat 4.0.1

thx

i did have Jserv working fine but i need JSP
> also.

what does this mean? do you still have JServ running fine? you can check with:
http://localhost/servlets/IsItWorking

you need JServ to be alive and kicking if you want to make the PT servlet run.

this should not impact with Tomcat running on your Apache server.

I’m learning.

I assumed that the PT servlet would work with tomcat also. Not to worry i’ll get JServ working again.

Which is best

- The PT Servlet in JServ or
- Cocoon running in tomcat (i assume with cocoon i would have to right my own servlet which interacts with the DOM API to collect the xslt)


This all seems a bit crazy to me, so i have apache calling JServ for the xslt and tomcat to perform JSP via the Java DOM API?

Thx

quote:
I'm learning.

So do I ;)

> - The PT Servlet in JServ
> - Cocoon running in tomcat

These are two pretty different solutions. I haven't used Cocoon for a year, but I remember that to dynamically collect data you will have to build a specific "provider" (their own term) in Java. Cocoon also provides caching and FOP support (for PDF rendering).

So if you need Cocoon features, in your position I would personaly forget the PTS, else it is to messy.

Hi Steve,

I haven’t tried with Tomcat 4 but I have pass-thru running with Tomcat 3. In principle it works fine but please notice that pass-thru is only tested with Jserv.

To install pass-thru in Tomcat you can do the following:

  • add a new directory for instance %TOMCAT_HOME%\webapps\passthru
  • Create directory passthru\WEB-INF
  • Create directory passthru\WEB-INF\lib
  • Copy xt.jar, xp.jar, passthru.jar and sax.jar into the passthru\WEB-INF\lib directory
  • Create a file passthru\WEB-INF\web.xml

A basic web.xml for pass-thru can look like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN”
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd”>


filter
com.softwareag.tamino.api.servlet.TaminoFilter



test
com.softwareag.tamino.api.servlet.TaminoTest


You have to restart Tomcat.

Pointing your browser to
http://localhost:8080/passthru/servlet/com.softwareag.tamino.api.servlet.TaminoTest should show the test page.

Best Regards
Christine