This content has been marked as final. 
    
Show                 5 replies
    
- 
        
- 
        2. Re: log4j configuration in ear filestrunker May 28, 2007 1:01 PM (in response to strunker)"jwcone" wrote: 
 See the Wiki:
 http://wiki.jboss.org/wiki/Wiki.jsp?page=ScopedLoggingConfig
 I found this before but the description is for web application only. My WebApp is working fine, but I want to get my ejb application to log properly. How can I do that?
- 
        3. Re: log4j configuration in ear filejwcone May 28, 2007 4:33 PM (in response to strunker)"kstrunk" wrote: 
 I found this before but the description is for web application only.
 Except for that part about "Using your own log4j.xml file (with EJB JAR files )"...
- 
        4. Re: log4j configuration in ear filestrunker May 29, 2007 1:37 PM (in response to strunker)"jwcone" wrote: "kstrunk" wrote: 
 Except for that part about "Using your own log4j.xml file (with EJB JAR files )"...
 You're right. I found it. Just needed to scroll down a bit more.
 I added the ContextRepositorySelector to my ejb.jar and altered it to use property files instead of xml files. Now I can log from within my ejb.jar. But I cannot log from my WebApp at the same time.
 If I put the log4j.jar in my WebApp under WEB-INF/lib logging from WebApp works fine, but ejb logging dosen't work. I get no exception or any other error message. If I remove log4.jar from my WebApp und put it just in the ear-file it's the other way round. I can log from ejb classes but not from the WebApp. It looks like a classloading problem, doesn't it?
- 
        5. Re: log4j configuration in ear filestrunker May 29, 2007 1:39 PM (in response to strunker)Ups, quoting went wrong a little bit in my last posting but hmm, no edit button... 
 
    