Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Servers and debugging javascript
Servers and debugging javascript [message #232044] Tue, 02 June 2009 11:27 Go to next message
Tom Goyett is currently offline Tom GoyettFriend
Messages: 1
Registered: July 2009
Junior Member
Hello All,

I have a question about Eclipse when trying to use it to debug an html
page with some javascript in it. I’ve gotten to the point where I have my
page in the editor and I click on Run and then Debug and I come to a
screen that asks me which server I would like to use. I have local host
running on the machine from IIS. But I have no idea what I should choose
as a server. If the selection is to choose an existing server the choice I
have is J2EE preview at localhost. Or I can choose a server HTTP Preview
at localhost also. I have tried both of them and the give the same error
message..

Then it comes up with an error message that says port 8080 is already in
use.

Am I choosing the right server should I download something or am I doing
something else wrong.

Any help in this would be appreciated.

Thanks in advance.

Tom Goyett
drchronos@yahoo.com
Re: Servers and debugging javascript [message #232052 is a reply to message #232044] Tue, 02 June 2009 13:28 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
Tom Goyett wrote:
> Hello All,
> I have a question about Eclipse when trying to use it to debug an html
> page with some javascript in it. I?ve gotten to the point where I have
> my page in the editor and I click on Run and then Debug and I come to a
> screen that asks me which server I would like to use. I have local host
> running on the machine from IIS. But I have no idea what I should choose
> as a server. If the selection is to choose an existing server the choice
> I have is J2EE preview at localhost. Or I can choose a server HTTP
> Preview at localhost also. I have tried both of them and the give the
> same error message..
>
> Then it comes up with an error message that says port 8080 is already in
> use.
>
> Am I choosing the right server should I download something or am I doing
> something else wrong.
>
> Any help in this would be appreciated.
>
> Thanks in advance.
> Tom Goyett
> drchronos@yahoo.com
>
>

If copying the project's content to a particular location would allow it
to be served by IIS, then you can use an HTTP Server. This type of
server is assumed to be always running and publishing is all that is
needed to get the content served.

HTTP and J2EE Preview servers can be used as well, but as you have
discovered, there isn't any UI to change the port used if there is a
conflict. However, you can change it manually. Open the "servers.xml"
found in the ".metadata\.plugins\org.eclipse.wst.server.core" directory
under your workspace in a text editor or using File -> Open File in
Eclipse. Find the <Server> element for the Preview server in question
and add a "port" attribute, e.g. port="<new_port_number>". Then restart
Eclipse to pickup the change.

Cheers,
Larry
Re: Servers and debugging javascript [message #232061 is a reply to message #232044] Tue, 02 June 2009 13:43 Go to previous messageGo to next message
Chris Jaun is currently offline Chris JaunFriend
Messages: 17
Registered: July 2009
Junior Member
Hi Tom,

I just tried creating a static web project with an HTML page. When I ran
on the "HTTP Server" I got a NPE exception. When I ran on the "HTTP
Preview" server it worked for me. Was that the error you were seeing?

The 8080 port error you saw is probably because you tried to launch a
server while one was already running.

The NPE problem does seem like a but to me. Maybe someone from the server
tools team can comment on that or you might want to go ahead and open a
bug.

Thanks,
Chris
Re: Servers and debugging javascript [message #232307 is a reply to message #232061] Wed, 10 June 2009 15:40 Go to previous message
Peter Liu is currently offline Peter LiuFriend
Messages: 12
Registered: July 2009
Junior Member
If it is a bug and has been opened, please let me know the Bug number.
Thanks.
Previous Topic:WSDLValidator is internal
Next Topic:MIME mapping for WSDL file
Goto Forum:
  


Current Time: Fri Nov 28 08:56:34 GMT 2014

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

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