IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Tomcat and Passthru Servlet

    Posted Wed November 14, 2001 09:21 PM

    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


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Tomcat and Passthru Servlet

    Posted Thu November 15, 2001 12:25 PM

    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.


    #webMethods
    #API-Management
    #Tamino


  • 3.  RE: Tomcat and Passthru Servlet

    Posted Thu November 15, 2001 04:36 PM

    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


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: Tomcat and Passthru Servlet

    Posted Fri November 16, 2001 07:20 AM
    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.


    #webMethods
    #API-Management
    #Tamino


  • 5.  RE: Tomcat and Passthru Servlet

    Posted Fri November 16, 2001 11:05 AM

    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


    #API-Management
    #Tamino
    #webMethods