• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can not find server or DNS error

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic