By Sailorhost
Hello friends - I installed plesk - I installed tomcat8 both services are working,
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.
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/” />
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Sorry you’re having trouble. Plesk provides a step by step guide on setting up tomcat and getting it working here that should make the process easier and should not require much manual configuration (if any) to get it up and running. In general, when running a control panel like cPanel/WHM or Plesk I strongly recommend to never install anything directly in the OS and to work exclusively through the control panel unless the control panel’s developers and documentation specifically recommends otherwise.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.