I've found not so pretty solution how to force classloader to pick my own
log4j.properties. I put implemenatation of Log4JLogger in my package e.c.
com.myapp.Log4JLogger and added to commons-logging.properties line:
org.apache.commons.logging.Log=com.myapp.Log4JLogger
Maybe someone could help m
Hi, PeterJ. If you define your appeners in JBoss log4j configuration file, how
do you separate logs among your apps. Do you specify
...
so classes in package com.myapp1.* log with Appender1 and classes in
com.myapp2.* log with Appender2? I can not do so, as my diffre
In my case removing commons logging jar file from WEB-INF/lib directory doesn't
solve the problem. Do you specify your appenders in JBoss log4j xml
configuration file?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929796#3929796
Reply to the post :
http://
I've read this wiki and i've done all accordingly to scoped logging to use my
log4j.properties. Results i've got as in reply above. My question is how to log
with commons-logging. When i log directly with log4j logger like:
Logger log=Logger.getLogger(TestServlet.class);
log.debug("testing");
it
Some my observations. It seems to me as i saw when debugging webapp, that my
log4j.properties are not picked up and logger
Log log=LogFactory.getLog(TestServlet.class);
i retrieve gets appenders from JBoss, so it puts all log messages to server.log
and console, but not to my myapp.html log file.
Hi everybody, i'm using JBoss 4.0.2 and my problem is i want to use in my web
app log4j over implementation of commons-logging Log4JLogger. So i created
log4j.properties file in WEB-INF/classes:
# Debug log4j
log4j.debug=true
log4j.rootLogger=debug, myapp
log4j.appender.myapp=org.apache.log4
Hi, thanks for your attention, it was mistype (sorry, i also mistyped your
nickname), code goes as an example of my situation.
jboss-web.xml goes like this:
...
Role1
Principal1
action
Principal1
...
For the rest i think all correct. So i have not resolved the problem with
run-as f
Hi, thanks for your reply j2ee_junkee. But the situation is not clear for me.
OK, first i login - this establishes my principal and credential with
ClientLoginModule. During deployment everything seems to be good. Application
initializes, at the same time using secured EJBs (for security domain
I'm new with jaas+jboss.
So the problem is: can i invoke method on ejb without using
LoginContext.login(); I have something like that in my
jboss-web.xml:
...
Role1
Principal1
action
Principal