Over a million developers have joined DZone.

Running HTTPPreview on Port 8000

· Java Zone

Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code! Brought to you in partnership with ZeroTurnaround.

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 ZeroTurnaround. Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code!

Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}