Tag: Tomcat

3 Posts Found
 

Change Grails Internal Tomcat Port

Posted: 4/30/2017 11:12 AM

By default, the grails run-app command, as well as running a Grails WAR from the terminal or as a Windows service, creates an instance of Tomcat on port 8080. To change this, edit the /grails-app/conf/application.yml file and create a new server section with the port number that you want:

---
server:
    port: 9001
 

Configure Tomcat Windows Service JVM Launch Options

Posted: 4/16/2017 12:32 PM

Launch regedit and navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\{TomcatInstance}\Parameters\Java\Options where {TomcatInstance} is the name of the Tomcat instance you want to configure.

Separate each JVM option on a different line:

-Dcatalina.base=C:\java\apache-tomcat-7.0.47
-Dcatalina.home=C:\java\apache-tomcat-7.0.47
-Djava.endorsed.dirs=C:\java\apache-tomcat-7.0.47\endorsed
-Djava.io.tmpdir=C:\java\apache-tomcat-7.0.47\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 

Get Rid Of IIS "Friendly" 500 Error Pages

Posted: 3/25/2016 8:25 PM

When ColdFusion or Tomcat throws a 500 server error, it returns a response code to IIS of 500. By default, IIS intercepts this status code and presents a "friendly" IIS error page instead of returning the actual generated error page. But in development this isn't very helpful since it doesn't show the underlying error message.

IIS Friendly 500 Error

You can override this behavior and display the CF-generated error instead with these steps:

  • Open IIS Manager and either select your server root or the individual web site.
  • In the Features view, scroll down to the Management section and open Configuration Editor.

IIS Manager

  • In the Sections dropdown, select and expand system.webServer, then select httpErrors.

system.webServer/httpErrors

  • The existingResponse value will be set to Auto. Click the dropdown and select PassThrough instead.
  • On the right side menu, click the Apply button to save the changes

existingResponse

You'll now see the appropriate ColdFusion error message.

CF Error