Menu

Tomcat integration

Help
Anonymous
2004-03-17
2004-03-18
  • Anonymous

    Anonymous - 2004-03-17

    Has anyone managed to integrate Babeldoc with Tomcat ? I am basically looking for some sort of proof of concept that it is possible, but here's what I am going to try to do :
    1. Write a servlet that has <load-on-startup>1</load-on-startup>. This will simpy be a wrapper to start the babeldoc scanner ( just like the MBean ).
    2. Put all the babeldoc libs in the lib directory of my WAR ( basically I am going to deploy babeldoc as a WAR ).
    3. Config files go in the classes directory.

    Would this work ?

    Thanks

     
    • Michael Ansley

      Michael Ansley - 2004-03-18

      The JMX scanner component is ready for use.  This doesn't help integration with Tomcat, but it will allow you to deploy Babeldoc inside JBoss.  So, if you use JBoss with the integrated Tomcat, you will be able to use Tomcat for your applications, and have integrated Babeldoc.  I think my instructions for deploying Babeldoc inside JBoss are in the developer forum archives.  If you can't get them, let me know, and I'll post them.

      Cheers...

       
      • Dejan Krsmanovic

        We really need some kind of wiki pages for Babeldoc site, that would make documentation stuff easer. Browsing mail and forum archives is not quite user friendly.
        Also, that would enable users to correct erros from current Babeldoc documentation which is pretty outdated...

         
    • Bill Harrelson

      Bill Harrelson - 2004-03-18

      I have Babledoc running inside Tomcat.  I put all the babeldoc libs into %catalina_home%/shared/lib as the SOAP deployment stuff suggests.  I have a separate directory under my docbase for the config files, journal, etc.  I modified the SOAP scanner servlet to just be a private servlet that listens on HTTP and doesn't require SOAP, but it could as easily have been another scanner.
      I didn't do it with WAR's as I don't have that deployment issue.  I needed to add the babeldoc_home and babeldoc_user variables to the start-up script (as the deployment for the SOAP scanner almost does correctly).

       
    • Anonymous

      Anonymous - 2004-03-18

      Unfortunatelly I am not using the integrated Tomcat. Our Tomcat is in a different box altogether. I've managed to deploy in JBoss so no problems there, but due to our architecture requirements, we need to put babeldoc in Tomcat.

      Bill : I am going to try your suggestion, but I don't quite understand the part about modifying the soap scanner servlet. Why do you that ? Thanks

       
      • Bill Harrelson

        Bill Harrelson - 2004-03-18

        Soap scanner looks for SOAP messages.  I was processing both SOAP and non-SOAP messages on the HttpServletRequest.  I mention the SOAP scanner, because the servlet and the deployment information is set up to run under Tomcat and it's a good starting point for what you want to do.  Feel free to email me off-line to continue the discussion if you want.
        -Bill

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.