Hello.  Is there a recipe for getting Stripes 1.5 to log appropriately to the
Glassfish logging system?

If I follow the commons-logging user guide, it says that if I do NOT put any
particular logging properties file in my classpath--I have not--then IF
JDK1.4 logging is available (of course it is; I'm on JDK 6) it will be used.

That tells me that--in a Glassfish context--JDK1.4 logging will go through
Glassfish's logging plumbing.  I have installed a log level in the admin
console in the normal manner so that net.sourceforge.stripes is set to
FINEST.

My server log contains all sorts of messages about how log4j is not
initialized properly.  I of course don't WANT log4j to even show up.  It
also indicates that some class in Stripes (ResolverUtil) was trying to log
something through log4j:

[#|2009-03-19T15:02:09.546-0400|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=16;_ThreadName=Timer-7;_RequestID=00b74e12-a5f6-4f14-ad41-bd1127d9b6f7;|log4j:WARN
No appenders could be found for logger
(net.sourceforge.stripes.util.ResolverUtil).|#]

Curious, I dug into the .war file that maven2 produces when you ask it to
depend on stripes 1.5, and I found both log4j jars and slf4j log jars in
there as well.  This doesn't bother me in the abstract--but their being
there shouldn't override how commons-logging claims to work, viz. that if
you don't specify anything anywhere then JDK logging will be selected by
default.

Any thoughts?

Best,
Laird
-- 
View this message in context: 
http://www.nabble.com/Stripes-logging-on-Glassfish-2.1-WITHOUT-log4j--tp22607374p22607374.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to