You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ch...@subtlety.com on 2004/10/23 00:44:07 UTC
Where do UnavailableExceptions get reported?
Hi all --
I just installed Tomcat, and created a servlet, and installed it. It worked.
I then added an init() method, which also worked. Finally, I changed my init
method to throw an "UnavailableException" if a configuration variable wasn't
specified.
Now, obviously, I get an "The requested resource (Servlet hemlock is not
available) is not available" error. But the message I specified in the
exception I threw does not show up -- not in the logs, not when I reload the
servlet in the manager, not on the page when I try to run the servlet. I
searched all the available files in the Apache install directory, and it's not
in any of them. Where does it go? If it disappears, what good is having
UnavailableExceptions being thrown?
-- Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Securing directory: httpd vs tomcat configuration
Posted by QM <qm...@brandxdev.net>.
On Mon, Oct 25, 2004 at 10:11:43AM +0100, Mark Benussi wrote:
: Hi I need to secure two directories with a user name and password prompt.
: Just one is fine at the moment. I know I can do this using httpd but I was
: wondering if there was a better solution for Tomcat (5), i.e. by
: configuring something in the server config or web.xml. If anyone has a
: solution I would be really appreciative.
1/ Search the archives (or check a book on J2EE/servlets, or read the
servlet spec...). This question comes up frequently. Here's a hint:
"<auth-constraint>"
2/ Please post a *new* message when writing to the list. Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Securing directory: httpd vs tomcat configuration
Posted by Mark Benussi <ma...@hotmail.com>.
Hi I need to secure two directories with a user name and password prompt.
Just one is fine at the moment. I know I can do this using httpd but I was
wondering if there was a better solution for Tomcat (5), i.e. by configuring
something in the server config or web.xml. If anyone has a solution I would
be really appreciative.
Thanks.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Where do UnavailableExceptions get reported?
Posted by Chris Bergstresser <ch...@subtlety.com>.
QM wrote:
> On Fri, Oct 22, 2004 at 06:44:07PM -0400, chris@subtlety.com wrote:
>> ...the message I specified in the exception I
>> threw does not show up -- not in the logs, not when I reload the
>> servlet in the manager, not on the page when I try to run the
>> servlet. I searched all the available files in the Apache install
>> directory, and it's not in any of them.
>
> What about the logfiles in the Tomcat directory, instead of
> the Apache directory? Look for files along the lines of
>
> catalina.out
> tomcat-*.log
I don't have a separate Apache and Tomcat directory, as far as I can
tell. I searched through all the files in the Tomcat log directory
(including the .out and .err output logs, and the tomcat logs), and it's not
showing in any of those. I have found the log announcing my servlet being
marked available and unavailable, but there's no information on the
exception triggering it. What's going on?
-- Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Where do UnavailableExceptions get reported?
Posted by QM <qm...@brandxdev.net>.
On Fri, Oct 22, 2004 at 06:44:07PM -0400, chris@subtlety.com wrote:
: Finally, I changed my init
: method to throw an "UnavailableException" if a configuration variable wasn't
: specified.
: Now, obviously, I get an "The requested resource (Servlet hemlock is not
: available) is not available" error. But the message I specified in the
: exception I threw does not show up -- not in the logs, not when I reload the
: servlet in the manager, not on the page when I try to run the servlet. I
: searched all the available files in the Apache install directory, and it's not
: in any of them.
What about the logfiles in the Tomcat directory, instead of the Apache
directory? Look for files along the lines of
catalina.out
tomcat-*.log
etc.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org