• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

running servlets

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am running jswdk-1.0.1 I have modified my classpath var and made other configs according to the "core Servlets & jsp" book.
I can get the servlet to compile, but I try to view it be directing my brower to http://localhost/servlet/HelloWorld and I get "the page cannot be displayed" the servlet is in the directory specified by jswdk: jswdk/webpages/web-inf/servlets
This is driving me crazy, if anyone could offer some help to get this going I would be eternally grateful.
jesse
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you stop and restart the server after you compiled and placed the file in the */WEB-INF/Servlets directory? Also there is a file in the WEB-INF directory called servlets.properties. Open that file with notepad and add this code:
HelloWorld.code=HelloWorld
HelloWorld.initparams=initarg1=foo
I hope this helps. I think you need to declare each servlet in this fashion in the servlets.properties file. I've done that for each of my servlets, as well as stop and restart the server after I compile. Hope this helps.
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic