문제

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 server.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.

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