|
Re: HTTP Server doesn't seem to be actually running [message #1516047 is a reply to message #1515410] |
Thu, 18 December 2014 16:11 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
On 12/18/2014 8:39 AM, Colin Maroney wrote:
> I am using Eclipse Luna on OS X Yosemite, and i have a static web
> project. I created a basic HTTP server on port 80, enabled publishing,
> set up the runtime environment to point to a folder where i can deploy
> to, and when I try to hit the server and see the app, it just says it
> cannot connect to localhost. If i use lsof there doesn't seem to be
> anything listening on port 80, i can't telnet to port 80 either. I
> changed the port to 8088 and 8080, and neither one works any better. I
> have a glassfish server also configured for a different project and it
> runs on localhost:8080 and works fine (i am not running both at the same
> time). The HTTP server says it is started and synchronized, and i can
> publish to it (apparently) but i cannot connect to it.
I believe the Basic HTTP Server is just a publishing mechanism and
doesn't involve the starting and stopping an actual server. It assumes
you have a server like Apache HTTP set up externally that will serve up
the content found in the folder you publish to.
Choose Basic HTTP Preview as your server if you want an actual server.
I believe it uses the version of Jetty that is built into Eclipse as the
server.
Cheers,
Larry
|
|
|
Re: HTTP Server doesn't seem to be actually running [message #1516053 is a reply to message #1516047] |
Thu, 18 December 2014 16:18 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
On 12/18/2014 11:11 AM, Larry Isaacs wrote:
> On 12/18/2014 8:39 AM, Colin Maroney wrote:
>> I am using Eclipse Luna on OS X Yosemite, and i have a static web
>> project. I created a basic HTTP server on port 80, enabled publishing,
>> set up the runtime environment to point to a folder where i can deploy
>> to, and when I try to hit the server and see the app, it just says it
>> cannot connect to localhost. If i use lsof there doesn't seem to be
>> anything listening on port 80, i can't telnet to port 80 either. I
>> changed the port to 8088 and 8080, and neither one works any better. I
>> have a glassfish server also configured for a different project and it
>> runs on localhost:8080 and works fine (i am not running both at the same
>> time). The HTTP server says it is started and synchronized, and i can
>> publish to it (apparently) but i cannot connect to it.
>
> I believe the Basic HTTP Server is just a publishing mechanism and
> doesn't involve the starting and stopping an actual server. It assumes
> you have a server like Apache HTTP set up externally that will serve up
> the content found in the folder you publish to.
>
> Choose Basic HTTP Preview as your server if you want an actual server. I
> believe it uses the version of Jetty that is built into Eclipse as the
> server.
>
> Cheers,
> Larry
Forgot to mention that while BASIC HTTP Preview gives you an actual
server, you get minimal ability to configure this server. For example,
it is hard coded to use port 8080. You would have to change the port on
the glassfish server to something else if you wanted to run it at the
same time as the HTTP Preview server.
Larry
|
|
|
|
Powered by
FUDForum. Page generated in 0.02981 seconds