Over a million developers have joined DZone.

Running HTTPPreview on Port 8000

· Java Zone

Easily build powerful user management, authentication, and authorization into your web and mobile applications. Download this Forrester report on the new landscape of Customer Identity and Access Management, brought to you in partnership with Stormpath.

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 by Stormpath—offering a complete, pre-built User Management API for building web and mobile applications, and APIs. Download our new whitepaper: "Build Versus Buy: Customer Identity Management for Web and Mobile Applications".

Topics:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}