Log4j presentation at ApacheCon 2003

2003-07-22 Thread Ceki Gülcü
Here is a draft of my log4j presentation abstract for ApacheCon 2003.

What is new in log4j version 1.3?
=
Log4j is a Java logging framework affiliated with the Apache Software
foundation.  By some estimations one million Java developers use log4j
regularly, ranking it as one of the most popular Java projects of the ASF.
Log4j version 1.3 (to be released) will bring many new useful
enhancements.
These include:

- significant improvements in speed and memory management
- spectacular enhancements to Chainsaw
- highly extensible XML configuration files
- support for custom conversion words in PatternLayout
- a new logging dimension in the form of logging domains
- plugins, receivers, and watchdogs...
- interoperability with log4j-like logging frameworks in other languages
- strategy based rollovers
This will first quickly introduce log4j and proceed to discuss each of
the aforementioned improvements in some detail.
Comments/Suggestions?

--
Ceki  For log4j documentation consider The complete log4j manual
  ISBN: 2970036908  http://www.qos.ch/shop/products/clm_t.jsp 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problems using Log4j on WebSphere 5.0 on Win2K

2003-07-22 Thread Tarek M. Nabil
Hi,

Sorry for the nagging, but does any one have a clue of what's happening here?

-Original Message- 
From: Tarek M. Nabil 
Sent: Sunday, July 20, 2003 1:50 PM 
To: 'Log4J Users List' 
Subject: RE: Problems with WebSphere 5.0 on Win2K 

Thomas, 

Thank you very much for your reply. 

1- The log4j jar is in the WEB-INF/lib directory of the war that I added to the ear 
using the application assembly tool of WebSphere.

2- No, it's not. I didn't know I had to do that! Do you think that's what causing the 
problem? Struts.jar works fine, although it's in the same place and not mentioned in 
in manifest files.

3- The log4j.properties is located in the WEB-INF/classes directory of the war. 

Thanks again, 
Tarek Nabil 

-Original Message- 
From: Thomas Lionel SMETS [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 19, 2003 1:56 AM 
To: Log4J Users List 
Subject: Re: Problems with WebSphere 5.0 on Win2K 



I think the questions you have to reply are : 
1°. Is the log4J.jar part of your war / ear / ... ? 
I would thnk not  the ClassLoader is forbidden by the Security 
manager to read a file outside his archive. 
2°. Otherwise is the log4j.jar well published in the MANIFEST file ? 
3°. Were is you log4j.properties loacated ... on the FS ... ? 
In the Classpath, in the war/ear ? 

Cheers, 

\T, 





Tarek M. Nabil wrote: 

Hi everyone, 
 
I developed an application Tomcat 4 and now I'm deploying it on 
WebSphere 5.0 on Win2K. 
 
Among the several problems I'm facing is getting log4j to work. I don't 
know what's going on, it seems that the security in WebSphere comes 
preconfigured in a way that doesn't permit log4j to work. 
 
The log file is never created, and I get a million and one of those 
errors 
 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R log4j:WARN Caught Exception 
while in Loader.getResource. This may be innocuous.

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R 
java.lang.reflect.InvocationTargetException: java.security.AccessControlException: 
access denied (java.lang.RuntimePermission getClassLoader)

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled 
Code))

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.security.AccessController.checkPermission(AccessController.java(Compiled Code))

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled
 Code))

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.lang.Thread.getContextClassLoader(Thread.java(Compiled Code))

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.lang.reflect.Method.invoke(Native Method) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
org.apache.log4j.helpers.Loader.getTCL(Loader.java:136) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
org.apache.log4j.helpers.Loader.getResource(Loader.java:74) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
org.apache.log4j.LogManager.clinit(LogManager.java:96) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
org.apache.log4j.Logger.getLogger(Logger.java:94) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
standish.charm.web.FlowFilter.init(Unknown Source) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.lang.Class.newInstance0(Native Method) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.lang.Class.newInstance(Class.java(Compiled Code)) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.beans.Beans.instantiate(Beans.java:233) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
java.beans.Beans.instantiate(Beans.java:77) 
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:294)

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:160)

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:209)

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
 Code))

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
 Code))

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)

[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 

RE: Log4j presentation at ApacheCon 2003

2003-07-22 Thread Paul Smith
Hi Ceki

 Here is a draft of my log4j presentation abstract for ApacheCon 2003.

[snip]

 This will first quickly introduce log4j and proceed to discuss each of
 the aforementioned improvements in some detail.

Looks good.come see everyone. Will they web cast your talk?  I don't want to
miss out being down here in Oz.

cheers,

Paul Smith

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems using Log4j on WebSphere 5.0 on Win2K

2003-07-22 Thread Thomas Marsh
Tarek M. Nabil wrote:
 
 Hi,
 
 Sorry for the nagging, but does any one have a clue of what's happening here?
 
 -Original Message-
 From: Tarek M. Nabil
 Sent: Sunday, July 20, 2003 1:50 PM
 To: 'Log4J Users List'
 Subject: RE: Problems with WebSphere 5.0 on Win2K
 
 Thomas,
 
 Thank you very much for your reply.
 
 1- The log4j jar is in the WEB-INF/lib directory of the war that I added to the ear 
 using the application assembly tool of WebSphere.
 
 2- No, it's not. I didn't know I had to do that! Do you think that's what causing 
 the problem? Struts.jar works fine, although it's in the same place and not 
 mentioned in in manifest files.
 
 3- The log4j.properties is located in the WEB-INF/classes directory of the war.
 
 Thanks again,
 Tarek Nabil
 
 -Original Message-
 From: Thomas Lionel SMETS [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 19, 2003 1:56 AM
 To: Log4J Users List
 Subject: Re: Problems with WebSphere 5.0 on Win2K
 
 I think the questions you have to reply are :
 1°. Is the log4J.jar part of your war / ear / ... ?
 I would thnk not  the ClassLoader is forbidden by the Security
 manager to read a file outside his archive.
 2°. Otherwise is the log4j.jar well published in the MANIFEST file ?
 3°. Were is you log4j.properties loacated ... on the FS ... ?
 In the Classpath, in the war/ear ?
 
 Cheers,
 
 \T,
 
 Tarek M. Nabil wrote:
 
 Hi everyone,
 
 I developed an application Tomcat 4 and now I'm deploying it on
 WebSphere 5.0 on Win2K.
 
 Among the several problems I'm facing is getting log4j to work. I don't
 know what's going on, it seems that the security in WebSphere comes
 preconfigured in a way that doesn't permit log4j to work.
 
 The log file is never created, and I get a million and one of those
 errors
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R log4j:WARN Caught Exception 
 while in Loader.getResource. This may be innocuous.
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R 
 java.lang.reflect.InvocationTargetException: java.security.AccessControlException: 
 access denied (java.lang.RuntimePermission getClassLoader)
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled
  Code))
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.security.AccessController.checkPermission(AccessController.java(Compiled Code))
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled
  Code))
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.lang.Thread.getContextClassLoader(Thread.java(Compiled Code))
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.lang.reflect.Method.invoke(Native Method)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 org.apache.log4j.helpers.Loader.getTCL(Loader.java:136)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 org.apache.log4j.helpers.Loader.getResource(Loader.java:74)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 org.apache.log4j.LogManager.clinit(LogManager.java:96)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 org.apache.log4j.Logger.getLogger(Logger.java:94)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 standish.charm.web.FlowFilter.init(Unknown Source)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.lang.Class.newInstance0(Native Method)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.lang.Class.newInstance(Class.java(Compiled Code))
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.beans.Beans.instantiate(Beans.java:233)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 java.beans.Beans.instantiate(Beans.java:77)
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:294)
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:160)
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:209)
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
  Code))
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
  Code))
 
 [7/17/03 21:53:13:575 EEST]  7d25145 SystemErr R   at 
 com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)