Are the EAR's both running in the same JVM? Do you have append="true" in the config for the file appenders? I would think it would work you have all this set up correctly.
Jake Quoting [EMAIL PROTECTED]: > Hello, > > I'm currently using Weblogic 8.1. > On this server, I've deployed two EARs, each of them having packages > beginning > with prefix empo.* > > For instance, in EAR #1, I'll have a class called empo.app1.admin.ParseFile > and in EAR #2, I'll have a class empo.app2.admin.ParseXML > > Each EAR has it's own log4j jar file embedded. (I didn't design the way the > applications are organized) > > The log4j.properties file is defined at the domain root (so in the BEA > server) > and the logs are rather general : > log4j.category.empo=DEBUG, APPLI > log4j.additivity.empo=false > > log4j.appender.APPLI=org.apache.log4j.DailyRollingFileAppender > log4j.appender.APPLI.File=C:/logs/EMPO_APPLI.log > log4j.appender.APPLI.datePattern='.'yyyy-MM-dd'.log' > log4j.appender.APPLI.append=true > log4j.appender.APPLI.layout=org.apache.log4j.PatternLayout > log4j.appender.APPLI.layout.ConversionPattern=<%d> <%-5p> <%C:%L> - %m%n > > When tested individualy, each application works very fine and is correctly > logged. > > But when I access to both applications, the file is created with the first > application and when I access to the second one, it overwrites the file (so > the > logs of appli1 is lost). The result is impredicatable. > > My idea is that the LOG4J class from app1 locks the file, then the LOG4J from > app2 tries to access it. > > Anyone has an idea so that the classes in both EARs can share the same log > file > ? > > Thanks a lot > > maxence- > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
