• 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

error 403

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have set up the classpath.
and have servletrunner at port 8080.
my class files r stored at d:\jsdk2.0\servlets\
and servletrunner is at d:\jsdk2.0\bin
in the browser i when i give http://localhost:8080/servlets/myservlet i get 403 forbidden error. what could be the problem?
thanks,
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Put your class files under jsdk2.0/examples.
Check whether the path and classpath are properly set or not
 
Praveen Raja
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried that also, outting my class files under d:\jsdk2.0\examples
i have set my path to d:\jsdk2.0\bin
and set classpath=.;d:\jask2.0\lib\jsdk.jar
what else could be the problem
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Error 403: No Directory Browsing Allowed
You are trying to browse a DIR with no index.html page and are not allowed to see the contents of the directory which is what would normally happen if you had permission to list the DIR and no default HTML page was present.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this
Servletrunner -d yourservletdir(d:\mystuff\servlet)
-d Servletdir
also check
Servletrunner /?
you will get more information.
 
Praveen Raja
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks ppl. the problem seemed to be that i was using http://localhost:8080/servlets/myservlet instead of http://localhost:8080/servlet/myservlet
thanks 4 ur help
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic