1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Tomcat and global servlets

Discussion in 'Plesk for Linux - 8.x and Older' started by billsutton, Apr 14, 2005.

  1. billsutton

    billsutton Guest

    I am moving from jserv to plesk/tomcat.
    I need to install a number of servlets so they are available to all virtual domains using virtdomain.com/servlets/MyGlobalServlet.
    Can someone point me in the right direction?

  2. billsutton

    billsutton Guest

    I have found one way to do it. Would appreciate any comments.

    I put my servlets into /var/tomcat4/shared/classes.
    On each domain I upload (using Plesk tomcat interface) a simple war file, servlets.war, containing only one file WEB-INF/web.xml.
    This file contains -
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    <display-name>My global servlets</display-name>
    My global servlets.

    I am still testing this idea.