Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
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 Source code of 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


©2008 junlu.com - Jax Systems, LLC, U.S.A.