Over a million developers have joined DZone.

Running HTTPPreview on Port 8000

· Java Zone

Learn more about Kotlin, a new programming language designed to solve problems that software developers face every day brought to you in partnership with JetBrains.

As you may know, Tomcat listens to port 8080 by default. And so does HTTPPreview and J2EEPreview. So how do you run HTTPPreview and Tomcat at the same time? While it is more obvious how to change the port for Tomcat in server.xml, it is easier to change the port for HTTPPreview--but not so obvious.

The following procedure is included in a new training video at 2 minutes, 30 seconds.

1. In the Servers view, right-click on the HTTPPreview at localhost document and select the Properties option.

2. Press the Switch Location button to move the configuration for HTTPPreview to your workspace. Result: The Servers "project" is displayed.

Expand the Servers folder.

Open the HTTPPreview at localhost file with a text editor.

Add the port="8000" attribute.

The Java Zone is brought to you in partnership with JetBrains.  Discover how powerful static code analysis and ergonomic design make development not only productive but also an enjoyable experience.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}