943,729 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 7122
  • Java RSS
Jul 29th, 2004
0

Java Applet and IIS

Expand Post »
Hi,

I have created an applet code. The code is normally working fine without IIS.
I have IIS 5.0 installed on my Windows 2000 Server. My web site home directory is "C:\Inetpub\wwwroot". I already coppied the files to the correct folder. In the address box of Internet Explorer, I typed "http://localhost/myfile.html". myfile.html is to run my applet. But when I go to the page I got the error message saying that "Connection refused: connect".

But, if I copy the code to my Windows XP pro machine with IIS 5.1 installed, it works fine.

Can anyone give me some idea or any dvise?
Your advise will be much appreciated.

Thanks,

Roda
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
roda is offline Offline
11 posts
since Jul 2004
Aug 11th, 2004
0

Re: Java Applet and IIS

I found and fixed the problem. The problem was with my applet code that I was using URL constructor without assigning port 8080. It is working fine now. I just edit my code as below.

Original code:
Java Syntax (Toggle Plain Text)
  1. URL logfileURL1 = new URL(documentBase.getProtocol(), documentBase.getHost(), path + "/Total.log");

Corrected code:
Java Syntax (Toggle Plain Text)
  1. URL logfileURL1 = new URL(documentBase.getProtocol(), documentBase.getHost(), 8080, path + "/Total.log");

Thanks

=============
Roda
Reputation Points: 10
Solved Threads: 0
Newbie Poster
roda is offline Offline
11 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: java
Next Thread in Java Forum Timeline: Help for my project





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC