I had a Java application deployed (setup by someone else) and I’ve been going through the process of improving it myself (read. breaking it). I need some help please
I appear to have HTTPS working ok and have now got Tomcat working, except it only shows a blank page when you go to the URL. When you inspect the page it shows a raft of 404 errors where it doesn’t seem to be able to find the .jps files. This makes me think a path is incorrectly set somewhere or a permissions issue?
TBH the whole file structure in this directory is confusing to me, there seems to be multiple versions of the same files all over the place.
File structure:
Root. 1. bin
The tomcat log seems to be clear and running ok.
Help would be greatly appreciated and can post additional info if required.
thanks
Colonel Yeehaw
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!
Hello,
without more information on such issues, I would assume the problem lies in the configuration files. Having said that here are some tips what to troubleshoot when in such situations
webapps folder in Tomcat. Typically, the application should be in the form of a .war file or an extracted folder. In your case, the application should be inside webapps/SITE or webapps/ROOT.ROOT folder, you need to access it using the context path (e.g., https://yourdomain.com/SITE). If your application is under the ROOT folder, it should be accessible directly from the base URL (e.g., https://yourdomain.com/)logs folder (e.g., catalina.out, localhost.*.log) for any errors or warnings related to your application. These logs can provide useful information about issues with the deployment, configuration, or the application itself.webapps/SITE/WEB-INF/logs folder or any other folder where your application stores logs. These logs can provide more information about issues within the application./path/to/tomcat/webapps with the actual path to your webapps folder):- sudo chown -R tomcat:tomcat /path/to/tomcat/webapps
- sudo chmod -R 755 /path/to/tomcat/webapps
server.xml file in the conf folder is correctly configured. Ensure that there is a <Host> element with the correct appBase pointing to the webapps folder. For example:- <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
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.