如何让glassfish显示JSP的调试信息?

时间:2021-07-10 16:16:39

I'm switching from Tomcat to Glassfish for an app server. Glassfish is so much more complicated its a little overwhelming. Anyway now I'm getting an exception:

我正在从Tomcat切换到Glassfish以获取应用服务器。 Glassfish是如此复杂,有点压倒性。无论如何,现在我得到一个例外:

java.lang.NullPointerException at org.apache.jsp.jsps.login_jsp._jspService(login_jsp.java from :67)

org.apache.jsp.jsps.login_jsp._jspService中的java.lang.NullPointerException(来自:67的login_jsp.java)

Where tomcat shows you the line number and gives me some information on the stderr or stdout, this just shows the error in the compliled jsp file, which is pretty much useless to me. How can I get it to show more information - at least the line in the JSP throwing the exception?

tomcat向你显示行号并给我一些关于stderr或stdout的信息,这只是显示了compliled jsp文件中的错误,这对我来说几乎没用。我怎样才能让它显示更多信息 - 至少抛出异常的JSP中的那一行?

1 个解决方案

#1


Log in Administration Console and go to Configuration -> your configuration -> Logger settings ->Log levels. Set you log levels to Finest or whatever.

登录管理控制台并转到配置 - >您的配置 - >记录器设置 - >日志级别。将日志级别设置为最好或其他。

Regards

#1


Log in Administration Console and go to Configuration -> your configuration -> Logger settings ->Log levels. Set you log levels to Finest or whatever.

登录管理控制台并转到配置 - >您的配置 - >记录器设置 - >日志级别。将日志级别设置为最好或其他。

Regards