문제

I am working with code deployed on Websphere Application Server 7 that throws a ServletException as follows:

if (BaseConvertors.isEmpty(email)) {
    throw new ServletException("Invalid url access - not authenticated.");
}

email is a String.

When I debug the servlet in Eclipse, I see the stack trace printed out in the console. But there is no indication of the exception in the SystemOut.log file. This code is inside the doGet method which throws the exception itself.

protected void doGet(HttpServletRequest request,
        HttpServletResponse response) throws ServletException, IOException {}

How do I get the exception to be logged in SystemOut.log file?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top