• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Tomcat and global servlets

B

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?

Bill
 
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"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>My global servlets</display-name>
<description>
My global servlets.
</description>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>

I am still testing this idea.

Bill
 
Back
Top