https://issues.apache.org/bugzilla/show_bug.cgi?id=56785

--- Comment #7 from Christopher Schultz <ch...@christopherschultz.net> ---
(In reply to Konstantin Kolinko from comment #5)
> (In reply to Christopher Schultz from comment #2)
> (In reply to Juergen Sussner from comment #0)
> 
> 1) -Duser.dir=/tmp is a wrong way to set that property. The correct way is
> to perform "cd /tmp" when launching Tomcat.
> 
> 2) I guess that the issue would happen when some directory in
> $CATALINA_BASE/webapps/testapp/WEB-INF/classes  is not readable. The
> "user.dir" property value is irrelevant.
> 
> Why would you have an unreadable directory in such a place among your
> classes? Is there a valid reason for that?
> 
> What if skipped directory contains something important, e.g. a @WebFilter?
> I think it is OK to fail fatally and refuse to start such a misconfigured
> application.

A fatal exception is okay, but right now it's a NPE. I was going to change it
to an IOException with a nice error message. Same behavior: just a nicer error
message (and it will actually tell you the problem).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to