Submit a Ticket
Support Center » Knowledgebase » JSP - Tomcat » JSP/Servlet processing

JSP/Servlet processing

Shared Tomcat:

 To be able to serve servlet an jsp requests in our hosting environment we are using the following schema:

Apache mod_jk Tomcat

In mod_jk (http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html) for your virtual host we have the following definitions.

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13

Which means that if in the URL you are requesting *.jsp or /servlet/ or /servlets/ the Apache server will forward the request to Tomcat for processing.

If you need additional JkMounts to be specified so that you can serve different URL schemas such as *.do please open a support ticket.

Private Tomcat:

1. Windows:

In order for your servlets/JSP code to work - you need to make sure that you setup your Apache (IIS) to Tomcat mappings through the provided Domain Mapping feature avaialble inside your NGASI control panel. The Domain mapping feature in NGASI is located at the top right corner of your NASI interface (2nd icon from the left). The same applies for any WAR files being deployed - you need to make sure that the mapping of the file is set through NGASI once the application is deployed.

2. Linux:

You need to define what hosts you want to be handled by Tomcat application service. To do that select a domain from the drop-down box located in "Map a domain to private JVM". This will create a definition inside server.xml and will deploy a default application WAR.

For each domain name docBase Directory is located at:
/home/username/jvm/apache-tomcat-xx/domains/

If you want your application to work at http://domain.name you have to rename your .war to ROOT.war and then deploy it.

Now you are ready to start the application server. All you need to do is just hit the start button.
And finally you need to redirect all traffic from Apache Web server for that domain to be handled by Tomcat application. To do that - navigate to "Mapped Domains" section and click on Enable/Disable check box.

 This answer was helpful  This answer was not helpful
 Back
Copyright 2002-2014 MochaHost.com. All Rights Reserved