What version of Tomcat are you using?  From at least Tomcat 3.2.1 that
MissingResourceException is caught and handled.  If there isn't a message
string associated with the result code we send back the status code without
the string.  Also, in Tomcat 3.2.2 (now in beta) a message string has been
added for the 207 status code.

> -----Original Message-----
> From: Murthy Gorty [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 9:35 PM
> To: [EMAIL PROTECTED]
> Subject: status code 207
>
>
> Hi,
>
> I need to send a status code of 207 as part of my WebDav-servlet response.
> But, Tomcat gives me a MissingResourceException because this
> status code is
> not defined in org.apache.core.LocalStrings.properties.
> How do I work around that? What is the standard way of adding
> custom status
> codes? Is there a way I can tell Tomcat to use my ResourceBundle that has
> this status code?
>
> snap-shot of the call-stack:
> java.util.MissingResourceException: Can't find resource for bundle
> java.util.PropertyResourceBundle, key sc.207
>     at java.util.ResourceBundle.getObject(ResourceBundle.java:322)
>     at java.util.ResourceBundle.getString(ResourceBundle.java:298)
>     at
> org.apache.tomcat.util.StringManager.getString(StringManager.java:136)
>     at
> org.apache.tomcat.core.ResponseImpl.getMessage(ResponseImpl.java:575)
>     at
> org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(Http
> ResponseAd
> apter.java:108)
>     at
> org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(Buf
> feredServl
> etOutputStream.java:126)
>     at
> org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(Buf
> feredServl
> etOutputStream.java:236)
>     at
> org.apache.tomcat.core.BufferedServletOutputStream.flush(BufferedS
> ervletOutp
> utStream.java:230)
>
> Please mailto:[EMAIL PROTECTED] as I dont have subscription
> to this list.
> Any help is greatly appreciated.
>
> thanks a lot,
> Murthy
>
>

Reply via email to