Re: log4j configuration and Applets
Richard Maher wrote:
When you say "Works for me" is it just that the logger functionality works
regardless of whatever bollocks overhead was incurred at startup?
Sorry if I can't help being inflammatory but can you please confirm that you
(anyone?) are running log4j-1_2_15.jar and that your Apache (whatever) error
logger settings are such that HTTP ("GET" for the beaninfo stuff and "HEAD"
for the log4j stuff) failures are recorded and that there is nothing in the
error log for this stuff?
I've tried Windows IE6 and FF2.
I'm just trying to establish if I am incurring unnecessary overhead due to
something stupid that I am doing or if everyone else thinks crap like this
is acceptable.
You mean whether I get:
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/PatternLayoutBeanInfo.class HTTP/1.1" 404 340
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/PatternLayoutBeanInfo.class HTTP/1.1" 404 340
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/LayoutBeanInfo.class HTTP/1.1" 404 333
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/LayoutBeanInfo.class HTTP/1.1" 404 333
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/java/lang/ObjectBeanInfo.class HTTP/1.1" 404 326
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/ConsoleAppenderBeanInfo.class HTTP/1.1" 404 342
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/ConsoleAppenderBeanInfo.class HTTP/1.1" 404 342
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/WriterAppenderBeanInfo.class HTTP/1.1" 404 341
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/WriterAppenderBeanInfo.class HTTP/1.1" 404 341
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/AppenderSkeletonBeanInfo.class HTTP/1.1" 404 343
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/org/apache/log4j/AppenderSkeletonBeanInfo.class HTTP/1.1" 404 343
127.0.0.1 - - [08/Jun/2009:20:15:27 -0400] "GET
/test/GuiAppenderBeanInfo.class HTTP/1.1" 503 421
127.0.0.1 - - [08/Jun/2009:20:15:28 -0400] "GET
/test/GuiAppenderBeanInfo.class HTTP/1.1" 503 421
?
Yes - I do get those.
I don't think you can avoid that.
If you sign the applet, then you can call:
Introspector.setBeanInfoSearchPath(new String[0]);
to avoid it.
Arne