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 
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
[7/17/03 21:53:13:575 EEST]  7d25145 SystemErr     R    at 
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
[7/17/03 21:53:13:606 EEST]  7d25145 SystemErr     R log4j:WARN No appenders could be 
found for logger (standish.charm.web.FlowFilter).
[7/17/03 21:53:13:606 EEST]  7d25145 SystemErr     R log4j:WARN Please initialize the 
log4j system properly.

Any help is appreciated

Thanks,
Tarek M. Nabil
 

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

Reply via email to