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

method POST not allowed

 
NIKO.DEM.STLOUIS
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having trouble running a servlet(.class) I wrote. If I put itin the path specified by alias in the tomcat-apache.conf file or in the active directory I get the error
METHOD NOT ALLOWED
the requested method POST not allowed for the URL /examples/Rot13.class
I have restarted both apache and tomcat several times.
Do I have to include a reference to the class file in the Web.xml file? If so where can I get instruction on how to do so?
anyhelp would be greatly appreciated,
Nik
 
Beksy Kurian
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aren't you putting the classes in the
WEB-IF/classes directory?
URL for tomcat docs http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html
Regards
Beksy
 
Sam Dalton
Author
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Silly question I know but does you servlet actually have a doPost (or service) method? This is a common problem of posting to servlets that only implement the doGet method...
S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic