you're reading...
Apache Tomcat

Install Apache Tomcat 8 on Windows 7

How to install the Apache Tomcat (Version 8) on Windows 7 (64bit)

Install the Java SDK 7 (Or above)

Download the Java SDK 7 from Oracle Website, open the JDK Installation program and click Next->Next>Next until the Installation is completed

Download and Install the Apache Tomcat

Download the Apache Tomcat from Apache website, I selected the Windows 64bit version. Extract the Tomcat application folder to somewhere you want. In this case I saved at C:\Program Files\Java\apache-tomcat-8.0.31

Setup the environment variables

Add following variables under the System Variables

CATALINA_HOME=C:\Program Files\Java\apache-tomcat-8.0.31
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_40;
JRE_Home=C:\Program Files\Java\jre1.7.0_40;

CATALINA_HOME – address where your Apache Tomcat is.

JAVA_HOME – address where your JDK is.

JRE_Home – address where your JRE is.

Start the startup.bat under the folder C:\Program Files\Java\apache-tomcat-8.0.31\bin, and enter the url localhost:8080 in your browser

Returns an error on the web page as:

HTTP Status 500 - java.lang.IllegalStateException: No output folder
type Exception report
message java.lang.IllegalStateException: No output folder
description The server encountered an internal error that prevented it from fulfilling this request.
org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
root cause
java.lang.IllegalStateException: No output folder
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.31 logs.

If you save the Apache Tomcat under the C: drive of the Windows System, you will got this error. To fix this error, we need to make sure that the SYSTEM user has full access to the Tomcat folder, so that when Tomcat runs, it can freely create folders and files within its own directory.

Right-click on the Tomcat folder, select “Properties”, go to the “Security tab”, select the User “SYSTEM”, try to give it full control

In this case, I moved the Apache Tomcat to the different drive.


About daviewning

I am an Oracle DBA


2 thoughts on “Install Apache Tomcat 8 on Windows 7

  1. Thank you! This is exactly the situation i faced. it worked. Following are the steps i have done

    1) right click and open properties dialog of CATALINA_HOME
    2) go to security tab
    3) click Advanced button
    4) Choose Users (admin\Users)
    5) Click Disable inheritance button
    6) Then click Edit button and click on ‘Full control’ check box
    7) Apply and save the changes

    Then start the server with starup.bat command. It worked fine!


    Posted by Visa R | April 6, 2016, 5:27 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: