  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Problem with HTTP-PUT in Tomcat 5.0.16 | Problem with HTTP-PUT in Tomcat 5.0.16 2004-01-23 - By Sch�pf Mirco
Back Hi Everyone,
I run a Tomcat 5.0.16 with a j2sdk1.4.2_03. I get HTTP ERROR 400 when I try to send a HTTP-PUT Request to a Servlet. The Servlet extends the HttpServlet class and overrides the doPut-method (everything as it is supposed to be, I guess). It never executes the code in this doPut method though. I have also changed the the $TOMCAT_HOME/conf/web.xml and added an init parameter (readonly) to the default servlet: This, according to the documentation, is the switch to enable HTTP-PUT on the server.
<servlet> <servlet-name>default</servlet-name> <servlet-class> org.apache.catalina.servlets.DefaultServlet  </servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>readonly</param-name> <param-value>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
Switing to Tomcat 4.1.29 did not really solve the problem. This version of Tomcat did process PUT-Requests but only after I have sent a HTTP-GET Request before sending the PUT.
What else do I have to do to process PUT-Requests on Tomcat 5.0.16? I have "googled" alot on this subject and read (most) of the tomcat documentation. Have I overlooked something?
I would appreciate any help on this topic.
Mit freundlichen Gr��en / Best regards
Mirco Sch�pf Manager Application Development Connectivity Group __ ____ ____ ____ ____ ____ ____ ____ ______ Make your documents live - DocuWare __ ____ ____ ____ ____ ____ ____ ____ ______
DocuWare AG Technical Services Therese-Giehse-Platz 2 D-82110 Germering Germany Tel.: +49 (0)89 894433-0 Fax: +49 (0)89 8419966
|
|
 |