I must have read 100 people like me, who cant work out how to override log4j's
configuration in my Test Clients execution context.
$JBOSS_HOME/log/boot.log exists and JBoss logs its output there as well as
STDOUT, this is what I want. But my Client applications I develop under
eclipse and lomboz have this annoying stack trace (from the client side
attempting to use log4j too).
I can not even find where the initial configuraton that sets it to boot.log
comes from, I would guess its a property file inside the client side jars
($JBOSS_HOME/client/lib) so not easy to find get at and change.
I suspect the reason why its an absolute path is because some property
$(jboss.something.dir) variable is not defined or setup from the client site.
Any new ideas, references or pointers would be appreciated.
Thanks
The strack track:
log4j:ERROR Failed to create directory structure: /log
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /log/boot.log (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
.....SNIP.....
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875150#3875150
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875150
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user