was7抛出servletException未记录在SystemOut.log文件中

时间:2011-12-07 18:32:44

标签: eclipse websphere-7 servletexception

我正在使用部署在Websphere Application Server 7上的代码,该代码抛出ServletException,如下所示:

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

emailString

当我在Eclipse中调试servlet时,我看到控制台中打印出了堆栈跟踪。但SystemOut.log文件中没有异常的迹象。此代码位于doGet方法内部,该方法会抛出异常本身。

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

如何在SystemOut.log文件中记录异常?

1 个答案:

答案 0 :(得分:0)

错误会记录到SystemError.log ... duh!

相关问题