Gilbert has posted 6 posts at DZone. View Full User Profile

Running HTTPPreview on Port 8000

12.22.2010
| 4302 views |
  • submit to reddit

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.

0
Your rating: None
Published at DZone with permission of its author, Gilbert Herschberger.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)