How to redirect URL in Tomcat 4 server,xml?

2004-08-19 Thread Jürgen Schwarz
Hi,
I want to redirect requests to another URL (different server) using the 
server.xml configuration file.
Something like the Redirect directive in Apache Server except that I have 
only Apache Tomcat and not Apache Server.

Is this possible to do in the server.xml file?
Bye,
   Juergen

GEFASOFT AG
Dessauerstraße 15, 80992 München
Phone +49(89)125565-155, Fax +49(89)125565-180
mailto:[EMAIL PROTECTED]
http://www.gefasoft.de
20 Jahre GEFASOFT
Kontinuität  Innovation
...mitfeiern ­ mitgewinnen
bei der Tour de GEFASOFT!
www.gefasoft.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Jürgen Schwarz
Hi,

I use a Java client to send the PUT request:

-- cut here --
connection.setDoOutput(true);
connection.setRequestMethod(PUT);
connection.setUseCaches(false);
connection.setRequestProperty(Content-Type,text/xml);
os=connection.getOutputStream()
os.write(myXmlData);
os.flush();
os.close();
-- cut here --


It works perfectly when setting the requestMethod to POST but not with
PUT.
I'm now playing around with the web.xml of my application, maybe I have
to configure something there to enable PUT.




 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 24. September 2003 15:19
 An: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Betreff: RE: How to configure Tomcat to acceppt PUT requests 
 for servlets?
 
 
 Howdy,
 Please ignore my earlier response, WebDAV has nothing to do with it.
 
 I just verified PUT requests work fine in tomcat 4.1.27.  I'm 
 attaching a WAR with a servlet and a test class to show this 
 is true.  I'm also concurring with Mark Thomas in verifying 
 bug 12938 
 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12938) is working.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 1:32 AM
 To: 'Tomcat Users List'
 Subject: AW: How to configure Tomcat to acceppt PUT requests 
 for servlets?
 
 Yes, sorry, I meant PUT, but I have already a doPut() method in my
 servlet but it is never called because my calling client receives an
 error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT.
 I use the 'standard' Tomcat server.xml configuration plus 
 entries for my
 servlet but I have not configured any security constraints for my
 servlet.
 
 I have no idea what could be wrong...
 
 
 
  -Ursprüngliche Nachricht-
  Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Gesendet: Dienstag, 23. September 2003 15:56
  An: Tomcat Users List
  Betreff: RE: How to configure Tomcat to acceppt PUT requests
  for servlets?
 
 
 
  Howdy,
  Assuming you meant PUT in the message just like in your
  subject: simply add a doPut method to your servlet.  Tomcat
  won't reject this unless you have a security constraint only
  allowing certain methods and rejecting PUT.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 23, 2003 10:52 AM
  To: [EMAIL PROTECTED]
  Subject: How to configure Tomcat to acceppt PUT requests for
  servlets?
  
  Hi,
  
  how do I configure Tomcat 4.x to accept POST requests for my
  servlet? I
  always receive HTTP error 405 Method not allowed. POST
  works without
  problems.
  
  Regards,
  Juergen
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
  This e-mail, including any attachments, is a confidential
  business communication, and may contain information that is
  confidential, proprietary and/or privileged.  This e-mail is
  intended only for the individual(s) to whom it is addressed,
  and may not be saved, copied, printed, disclosed or used by
  anyone else.  If you are not the(an) intended recipient,
  please immediately delete this e-mail from your computer
  system and notify the sender.  Thank you.
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Hi,

how do I configure Tomcat 4.x to accept POST requests for my servlet? I
always receive HTTP error 405 Method not allowed. POST works without
problems.

Regards,
Juergen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Yes, sorry, I meant PUT, but I have already a doPut() method in my
servlet but it is never called because my calling client receives an
error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT.
I use the 'standard' Tomcat server.xml configuration plus entries for my
servlet but I have not configured any security constraints for my
servlet.

I have no idea what could be wrong...



 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 23. September 2003 15:56
 An: Tomcat Users List
 Betreff: RE: How to configure Tomcat to acceppt PUT requests 
 for servlets?
 
 
 
 Howdy,
 Assuming you meant PUT in the message just like in your 
 subject: simply add a doPut method to your servlet.  Tomcat 
 won't reject this unless you have a security constraint only 
 allowing certain methods and rejecting PUT.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 10:52 AM
 To: [EMAIL PROTECTED]
 Subject: How to configure Tomcat to acceppt PUT requests for 
 servlets?
 
 Hi,
 
 how do I configure Tomcat 4.x to accept POST requests for my 
 servlet? I
 always receive HTTP error 405 Method not allowed. POST 
 works without
 problems.
 
 Regards,
 Juergen
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]