Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error 403

 
Praveen Raja
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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,
 
surya sadhu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • 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.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic