Hi, I've added log4j.jar on my remote glassfish host. I added this jar file
on /glassfish/glassfish/lib, /glassfish/glassfish/domains/domain1/lib and
/opt/glassfish/glassfish/modules. also I have added log4j.properties on
/glassfish/glassfish/domains/domain1/config log4j.rootLogger=DEBUG
log4j.logger.myapp=DEBUG
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.MaxFileSize=100KB log4j.appender.FILE.MaxBackupIndex=1
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d{DATE} %-5p %c{1} : %m%n I
added also in Glassfish administartion console server-config -> JVM options
-Dlog4j.configuration=file:///${com.sun.aas.instanceRoot}/config/log4j.properties
and then restarting glassfish Refreshing server on netbeans IDE and when I
import org.apache.log4j.Logger on my ejb module still library is not
recognized. on glassfish server log I get error WARN Please initialize the
log4j system properly. Could you please help in this case? Thanks, h.
--
[Message sent by forum member 'haleh']
View Post: http://forums.java.net/node/890707