ResponsiveWeb Home > Hosting Plans > Virtual Hosting > FAQ > Details
Jakarta-Tomcat Configuration FAQ
Jakarta-Tomcat Configuration
This page is intended for our customers who uses one or more of our dedicated servers running Red Hat Linux 7.1 or higher with Java SDK and Jakarta-Tomcat installed.  If you have a dedicated server with us and you like to find out whether your server supports Java and/or Jakarta-Tomcat, please contact us.

In general, we deliver dedicated linux servers with the Apache configured to use the Vhost Alias module so you do not have to modify the Apache configuration to configure a new Java web site.  The following will create and test a JSP web site:

Create a Java Test Page

Creat a test.jsp file and upload this to the html directory of the web site that you want to enable JSP:

<%
String vPath = request.getRequestURI();
String rPath = getServletConfig()
  .getServletContext()
  .getRealPath(vPath);
%>

<html>
<head>
<title>
jsp test
</title>
</head>

<body>
<p>The virtual path is <%=vPath%></p>
<p>The real path is <%=rPath%></p>
</body>
</html>
Modify Tomcat

Edit this file:  /usr/tomcat/conf/server.xml and add this before </ContextManager>:

<Host name="www.domain.com">
<Alias>domain.com</Alias>
<Context path=""
         docBase="/home/www.domain.com/html"
         crossContext="false"
         debug="0"
         reloadable="true" >
</Context>
</Host>
Restart Tomcat and Apache
/etc/init.d/tomcat restart
/etc/init.d/httpd restart
Testing

Goto this URL: http://www.domain.com/test.jsp

 





   streamlining your business | broadcasting your voice  
CONTACT US: at 866-315-3263, or:
  Company:     
Name:*
Email:*
Phone:*
URL:  
Comments:  


Free $100 Current Promotions
NAME YOUR OWN PRICE DEDICATED SERVERS: you tell us what you'll pay & we set it up!
Reliable, High Quality VoIP & Fax Service: Internet telephony for homes and small businesses
Dedicated Servers Dedicated Servers
Get A Quote for HIPAA, FISMA, and GLBA standards compliant applications & dedicated servers.
Budget Servers, Gaming Servers & High Performance Servers also available!
Our Racks Colocated Servers
Budget Racks: Your Servers, Network Switches, Remote Reboot Switches, & Appliances
Security Critical Locked Racks: FISMA, HIPAA, and GLBA Compliant
Unleash the Power of ResponsiveWeb's acclaimed CommerceBolt! E Commerce in a Box
ResponsiveWeb CommerceBolt: Amazon.com grade shopping cart!
Get listed in Froogle, Pricegrabber, Bizrate, & manage your inventory, shipments, orders, & more.
Web Design Web Design
Clean, Professional, and Effective. Web Design without the child's play.
Cutting Edge Design: starting at $299, with a Free Domain Name, Free Database, & Free Month of Hosting
VoIP Home & Office VoIP Telephone Services
Unlimited USA & Canada Calls: $20 per month; Canadian & USA phone numbers available.
responsivEfax: efaxing, Toll Free: with virtual attendant and more, VoIP Office: our quote is 20% less your current carrier
Contact
Offices
24 Hilltop Road
Edison NJ 08820
 
86 Timberhill Drive
Franklin Park, NJ 08823
Datacenter
470 Vanderbilt Ave
Brooklyn NY 11238
Rapid Response
866-315-3263

More Contact Options