aspose file tools*
The moose likes Servlets and the fly likes Can not find server or DNS error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can not find server or DNS error" Watch "Can not find server or DNS error" New topic
Author

Can not find server or DNS error

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am getting the following error:
Can not find server or DNS error
1> I have set the following CLASSPATH:
SET CLASSPATH=c:\jdk1.2.2;;c:\jswdk-1.0.1\lib\servlet.jar;c:\jswdk-1.0.1\examples\web-inf\servlets;c:\jdk1.2.2\lib\tools.jar
2> I wrote the simple HelloWorld program and saved it in c:\jswdk-1.0.1\examples\web-inf\servlets directory. I was able to compile the program successfully.
3> I started server from c:jswdk1.0.1 and got the following message in the DOS window:

Microsoft(R) Windows 98
(C)Copyright Microsoft Corp 1981-1999.
C:\jswdk-1.0.1>startserver.bat
Using classpath: .\classes;.\webserver.jar;.\lib\jakarta.jar;.\lib\servlet.jar;.
\lib\jsp.jar;.\lib\jspengine.jar;.\examples\WEB-INF\jsp\beans;.\webpages\WEB-INF
\servlets;.\webpages\WEB-INF\jsp\beans;.\lib\xml.jar;.\lib\moo.jar;\lib\tools.ja
r;C:\EXAMPLES;C:\JDK1.2.1;C:\JSWDK-1.0.1\LIB\SERVLET.JAR;C:\JSWDK-1.0.1\EXAMPLES
\WEB-INF\SERVLETS;;C:\JDK1.2.1\LIB\TOOLS.JAR
C:\jswdk-1.0.1>
4> I then tried to invoke servlet by entering the following URL in Internet Explorer
http://localhost:8080\examples\servlets\HelloWorld
I am getting the following error:
Can not find server or DNS error

Any ideas to get out of this problem??
Regards,
Milind

[This message has been edited by Milind (edited May 14, 2000).]
Georg Haugland
Greenhorn

Joined: May 15, 2000
Posts: 2
http://localhost:8080\examples\servlets\HelloWorld
this is the line you included in your question posting.
This is what you need to type instead into the browser
http://localhost:8080/examples/servlets/HelloWorld
You had the slashes the wrong way. I am assuming you are using Netscape. i think that IE would correct it for you.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi George,
I am using IE5. I am not very sure but JDK1.2.1 was earlier installed on my machine.I installed JDK1.2.2 today and all my problems seem to have gone. I don't know whether JDK1.2.1 is compatible with JSWDK1.0.1 but installing JDK1.2.2 seem to have done the trick.
Thanks for ur inputs.
Regds,
Milind

 
 
subject: Can not find server or DNS error