开发者

How to get caught exceptions of my application in the Glassfish 2.1 server log?

开发者 https://www.devze.com 2023-04-06 08:47 出处:网络
We have ported an EJB applicationfrom BEA Weblogic 8.1 to Glassfish 2.1. The client is accessing the server through RMI, no web client.

We have ported an EJB application from BEA Weblogic 8.1 to Glassfish 2.1. The client is accessing the server through RMI, no web client.

In Weblogic exceptions were logged automatically to server.log, even when they are catched and rethrown to the client.

In Glassfish with default configuration we can't see them in serv开发者_如何学Goer.log.

How can I get the same behavior as with Weblogic?


Glassfish 2.1 logs via java.util.logging. Logging content, by default, is collected in

[Glassfish root]/domains/[domain name]/logs/server.log

For configuring j.u.l, find the logging.properties file in the JRE that is used to run Glassfish (in the lib directory), set your topics' (loggers') levels to desired granularity.

Note: that worked for me for an application using Apache Commons Logging, running on Glassfish.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号