Unable to access java application: empty page or Not Found

Created:

2016-11-16 13:12:48 UTC

Modified:

2017-04-24 11:42:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to access java application: empty page or Not Found

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Unable to access Java application, web browser shows an empty page.

Tomcat is configured properly and running on the server.

The following message is shown near application in Plesk > Subscription > domain.tld > Java Applications :

Actual Status of the application does not correspond to the status retrieved from the database

Cause

Hanged tomcat process.

Resolution

  1. Check running tomcat services:

    # ps auxxfww | grep tomcat
    root 29237 0.0 0.0 2032 536 pts/0 S+ 09:12 0:00 \\_ grep tomcat
    tomcat7 5907 0.1 10.1 2897712 1049500 ? Sl 2015 25:24 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.awt.headless=true -Xms1024m -Xmx2048m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start
    tomcat7 25380 44.7 6.4 2910408 668156 ? Sl 09:10 0:42 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.awt.headless=true -Xms1024m -Xmx2048m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start
  2. Try to stop tomcat in Plesk > Services Management > Tomcat > Stop and check the status on the server:

    server42:~# service tomcat7 status
    [ ok ] Tomcat servlet engine is not running..
  3. Check the processes again:

    # ps auxxfww | grep tomcat
    root 1002 0.0 0.0 2032 532 pts/0 S+ 09:13 0:00 \\_ grep tomcat
    tomcat7 5907 0.1 10.1 2897712 1049500 ? Sl 2015 25:24 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.awt.headless=true -Xms1024m -Xmx2048m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start

    Tomcat is stopped on the server, however the hanged process is still exist.

  4. Kill hanged process manually:

    # kill -9 5907

    Replace 5907 with PID you received in Step 3.

  5. Run tomcat under Plesk > Services Management > Tomcat > Start and check that tomcat process was created:

    # ps auxxfww | grep tomcat
    root 1416 0.0 0.0 2032 532 pts/0 S+ 09:14 0:00 \\_ grep tomcat
    tomcat7 1056 177 5.8 2891824 603444 ? Sl 09:13 0:28 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.awt.headless=true -Xms1024m -Xmx2048m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start
  6. Verify that the application has "Java Application is running" status in Plesk > Subscription > domain.tld > Java Applications

  7. Access the application.

Have more questions? Submit a request
Please sign in to leave a comment.