Using SunOneStuio with iWS6.0

Hi

I have installed Sun One Studio 3.0 with iws6.0.

I am trying to run the CDShop tutorial.

I can compile the file ProductList.jsp successfully

but when I run it i am getting following errors

Connection failure

The browser could not connect to URL http://localhost:89/ProductList.jsp.

the url in the browser is :

dnt0017:8082/servlet/org.netbeans.modules.web.core.ConnectionFailureServlet?url =http%3A%2F%2Flocalhost%3A89%2FProductList.jsp

can anybody throw some light on what is happening ?

Tanks

Swap

[585 byte] By [706462] at [2007-11-25 8:23:57]
# 1
You might want to try changing the URL in the browser to: http://127.0.0.1:89/ProductList.jspYour machine may not recognize "localhost" as being its own name in DNS.-M
Moazam Raja at 2007-7-1 14:46:24 > top of Java-index,Development Tools,Java Tools...
# 2

Hi M,

Thanks a lot for replying.

I tried http://127.0.0.1:89/ProductList.jsp

but with no luck :-(

My questions are :

(1) From where SunOneStudio is taking "localhost" ?

(2) From where is the SunOneStudio taking the URL that it shown in the browser ( The URL that I have mentioned in my previous posting.)

(3) Is there a setting somewhere where we can specify ?

The only way it is working is by giving explicitly the ip address of my machine. But every time I execute from the studio, it opens a page with error and I am changing the URL.

Does this have some solution ?

Thanks

Swap

706462 at 2007-7-1 14:46:24 > top of Java-index,Development Tools,Java Tools...
# 3
what operating system are you using? You might have to do some set up to get your machine to recognize localhost or 127.0.0.1. I remember sometime ago, I had to set this up on my windows machine.-tom
709090 at 2007-7-1 14:46:24 > top of Java-index,Development Tools,Java Tools...
# 4

Hi Tom,

Thanks a lot for replying.

I am using windows 2000.

What I have ensured on my m/c is that, in the

"C:\WINNT\system32\drivers\etc\Hosts" file has an entry

127.0.0.1 localhost. But the machine is not

recognizing that.

Which setting do I need to do ?

Thanks

Swap

706462 at 2007-7-1 14:46:24 > top of Java-index,Development Tools,Java Tools...
# 5

Are you able to ping localhost?

or ping 127.0.0.1?

If so then, you have it set up correctly. if not, there's

probably something more that needs to be set up

in windows 2000.

I don't have all the answers on this one. but you

can at least isolate whether the OS is set up

correctly or if it's iWS6.0.

-tom

709090 at 2007-7-1 14:46:24 > top of Java-index,Development Tools,Java Tools...
# 6
I checked the computer name in the My Computer profileI added a line in the hosts file making that name and localhost equal.
John_Darby at 2007-7-1 14:46:24 > top of Java-index,Development Tools,Java Tools...