Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » HTTP Server doesn't seem to be actually running
HTTP Server doesn't seem to be actually running [message #1515410] Thu, 18 December 2014 04:01 Go to next message
Colin Maroney is currently offline Colin MaroneyFriend
Messages: 2
Registered: December 2014
Junior Member
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.
Re: HTTP Server doesn't seem to be actually running [message #1516047 is a reply to message #1515410] Thu, 18 December 2014 16:11 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
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 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
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
Re: HTTP Server doesn't seem to be actually running [message #1516233 is a reply to message #1516053] Thu, 18 December 2014 19:02 Go to previous message
Colin Maroney is currently offline Colin MaroneyFriend
Messages: 2
Registered: December 2014
Junior Member
ok, good to know. Thanks for the response.
Previous Topic:How to turn off JSP Indexing, takes too long
Next Topic:fetching database using web service
Goto Forum:
  


Current Time: Fri Apr 19 12:08:27 GMT 2024

Powered by FUDForum. Page generated in 0.02981 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top