• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Java Web Application not initializing in Tomcat

ashiers

New Pleskian
Hi,

I have a VPS (Virtual Private Server) at GoDaddy.com. I'm running Plesk with the latest version of Tomcat 7. Tomcat installed just fine and I was able to upload my war file via Plesk, however, two important files within the application: context.xml and web.xml don't seem to be read in and initializing anything. I'm using log4j for logging errors and during the initialization, log4j creates a log file. Since web.xml is not being read in by Tomcat, then log4j isn't being initialized and I don't get the log file. So, I don't get to see any error messages, though there must be some going on. Also, context.xml is responsible for setting up a connection pool with MySQL. I don't think context.xml is being read in either since I have many pages where I'm running queries to the database and I'm getting nothing displayed.

I was thinking that maybe I need to reload the application to force Tomcat to read in the xml files. That didn't work. Then I thought, reload Tomcat itself. That didn't work.

Is there a separate document someplace for Plesk 11.5 that focuses just on Java web Applications with Tomcat and how to troubleshoot these kinds of issues? I've invested a great deal of time, effort, and money into this project and would have thought that after 11 versions of Plesk, Parallels would have had this all figured out by now. So how do I know when the xml files are being read in properly? Any assistance would be appreciated.

Alan
 
Back
Top