• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

9-1-1 emergency call. Please Help!!!!!!!!

 
Sunitha Sounderrajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello javaranchers,
I am a newbie to Servlets and JSP. I am SCJP2 and started learning basics of servlets. I started reading the theory and concepts from javasoft.com. I took some courage to write the traditional "HelloWorld" prg after reading some basics.
I am having problems in running my first Servlet program. I, after quite a bit of a struggle finally succeeded in compiling my first "Hello World" Servlet. But i am not able to run it.
I installed NT 4.0 in my system with option pack 4.0 which comes with IIS. I installed JRun v3.0. I also installed JSWDK-1.0.1
I set up my autoexec.bat I set the classpath to the dir in which i have the Helloworld.java. I also set the classpath for the other tools.jar and jdk1.2.2\bin.
Now i am not able to run it from Internet Explorer.
I tried giving
"http://localhost:8080/servlet/mydir/HelloWorld"
Pls help. Wish we have 9-1-1 emergency call for ignorant people like me.
Can anyone tell me what am i doing wrong. I am really stuck with this and unable to proceed.
Really appreciate any suggestion/advice on how to proceed further.
Thanks in Advance,
Sunitha. S


[This message has been edited by Sunitha Sounderrajan (edited November 09, 2000).]
 
KASI VISHWANATH
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your settings of jrun might be wrong just check up and also check up if u have put the servlet in the correct directory
------------------
I.K.VISHWANATH
 
Sunitha Sounderrajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your prompt reply.
I created a directory called "mydir" under
C:\JSWDK-1.0.1\examples\servlets directory
and wrote the HelloWorld Prg in mydir directory.
I would appreciate if you could let me know whether i am right.
Thanks,
Sunitha. S

[This message has been edited by Sunitha Sounderrajan (edited November 09, 2000).]
 
shamganth
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you stated that you are able to compile but there is a problem in running. Instead of trying ur program through u cando easily by servlet runner isn't it.you can run your program in servlet runner by stating the path where the servlet runner is in your machine and after that -d your current directory name . try it . iam also a beginner in servlets. so bare it if it is not working properly.
thank you,
shamganth.k
 
selvi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
If you using IIS and JRun3.0 then save your class file(compiled servlet file) in c:\Allaire\JRun\servers\default\default-app\web-inf\classes. Then give http://localhost:8100/servlet/servletname in the browser.

selvi
 
Sunitha Sounderrajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Selvi,
I figured it out with a lot of experimenting..
Appreciate your help.
Sunitha. S

Originally posted by selvi:
Hi ,
If you using IIS and JRun3.0 then save your class file(compiled servlet file) in c:\Allaire\JRun\servers\default\default-app\web-inf\classes. Then give http://localhost:8100/servlet/servletname in the browser.

selvi

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic