• 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!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Question Install and configure Tomcat

Sailorhost

New Pleskian
Hello friends -
I installed plesk - I installed tomcat8 both services are working,

I added my new host in the serves.xml file, but when I try to access the url with the jsp file, I get a response to the attempt to download the file, ie Is executing the file but tending to do the download.

what did I do wrong
 
I add to etc/tomcat8/server.xml

<Host name="java.sailorweb.com.br" appBase="/var/www/vhosts/sailorweb.com.br/java.sailorweb.com.br"/>

<Service debug="0" name="PSA">
<Connector port="9008" enableLookups="false" protocol="AJP/1.3" address="127.0.0.1"/>
<Connector port="9080" maxThreads="15" minSpareThreads="5" maxSpareThreads="75" enableLookups="true" acceptCount=$
<Engine name="PSA" defaultHost="localhost">
<Host deployXML="true" name="java.sailorweb.com.br" appBase="psa-webapps/java.sailorweb.com.br" unpackWARs="fal$
<Context crossContext="false" reloadable="false" useNaming="true" swallowOutput="false" privileged="true" dis$
<Realm className="org.apache.catalina.realm.MemoryRealm" pathname="psa-users/java.sailorweb.com.br.xml" valid$
</Host>
</Engine>
</Service>

I add to etc/tomcat8/Catalina/java.sailorweb.com.br/ROOT.xml


<?xml version='1.0' encoding='utf-8'?>
<Context path="/" docBase="/var/www/vhosts/sailorweb.com.br/java.sailorweb.com.br/" />
 
Back
Top