Loging in to WAS console error (lang.ExceptionInInitializerError) - Websphere

This is a discussion on Loging in to WAS console error (lang.ExceptionInInitializerError) - Websphere ; Error Message: java.lang.ExceptionInInitializerError Error Code: 500 Target Servlet: action Error Stack: java.lang.Exception: java.lang.ExceptionInInitializerError at com.ibm.ws.webcontainer.servlet.ServletWrapper.loa dServlet(ServletWrapper.java:1379) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.l oadServlet(ServletWrapper.java:388) at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:391) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:478) at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744) at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1455) at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:115) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:458) ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Loging in to WAS console error (lang.ExceptionInInitializerError)

  1. Loging in to WAS console error (lang.ExceptionInInitializerError)

    Error Message: java.lang.ExceptionInInitializerError
    Error Code: 500
    Target Servlet: action
    Error Stack:
    java.lang.Exception: java.lang.ExceptionInInitializerError
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.loa dServlet(ServletWrapper.java:1379)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.l oadServlet(ServletWrapper.java:388)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:391)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:90)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744)
    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1455)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:115)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$ SSLReadCompletedCallback.complete(SSLReadServiceCo ntext.java:1818)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
    Caused by: java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:216)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1328)
    at java.beans.Beans.instantiate(Beans.java:219)
    at java.beans.Beans.instantiate(Beans.java:63)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.r un(ServletWrapper.java:1314)
    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:118)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.loa dServlet(ServletWrapper.java:1309)
    ... 19 more
    Caused by: org.apache.commons.logging.LogConfigurationExcepti on: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.Log4jFactory
    at org.apache.commons.logging.LogFactory$2.run(LogFac tory.java:609)
    at java.security.AccessController.doPrivileged(Access Controller.java:197)
    at org.apache.commons.logging.LogFactory.newFactory(L ogFactory.java:561)
    at org.apache.commons.logging.LogFactory.getFactory(L ogFactory.java:298)
    at org.apache.commons.logging.LogFactory.getLog(LogFa ctory.java:395)
    at org.apache.struts.action.ActionServlet. (ActionServlet.java:376)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
    ... 26 more
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.Log4jFactory
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:130)
    at org.apache.commons.logging.LogFactory$2.run(LogFac tory.java:607)
    ... 33 more




    Error Page Exception:
    Error Message:
    Error Code: 0
    Target Servlet: null
    Error Stack:
    java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:216)
    at com.ibm.ws.console.taglib.common.DetectLocaleTag. (DetectLocaleTag.java:64)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:163)
    at com.ibm.ws.jsp.runtime.HttpJspBase.getTagHandler(H ttpJspBase.java:144)
    at _ibmjsp._error.initTaglibLookup(_error.java:199)
    at _ibmjsp._error._jspService(_error.java:73)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJsp Base.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1075)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1016)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:118)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:771)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:679)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:546)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:478)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletW rapper.handleRequest(GenericServletWrapper.java:12 2)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensio nServletWrapper.handleRequest(AbstractJSPExtension ServletWrapper.java:226)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensio nProcessor.handleRequest(AbstractJSPExtensionProce ssor.java:285)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:321)
    at com.ibm.ws.webcontainer.webapp.WebApp.sendError(We bApp.java:2916)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:111)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744)
    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1455)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:115)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$ SSLReadCompletedCallback.complete(SSLReadServiceCo ntext.java:1818)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
    Caused by: org.apache.commons.logging.LogConfigurationExcepti on: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.Log4jFactory
    at org.apache.commons.logging.LogFactory$2.run(LogFac tory.java:609)
    at java.security.AccessController.doPrivileged(Access Controller.java:197)
    at org.apache.commons.logging.LogFactory.newFactory(L ogFactory.java:561)
    at org.apache.commons.logging.LogFactory.getFactory(L ogFactory.java:298)
    at org.apache.commons.logging.LogFactory.getLog(LogFa ctory.java:395)
    at org.apache.struts.util.MessageResources.(MessageRe sources.java:105)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
    ... 39 more
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.Log4jFactory
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:130)
    at org.apache.commons.logging.LogFactory$2.run(LogFac tory.java:607)
    ... 46 more

  2. Re: Loging in to WAS console error(lang.ExceptionInInitializerError)

    Please make sure 'log4j.jar' is available in your classpath.

    Please check whether it is referenced through a shared library at the application or application server level.

    It can also be included in the classpath of 'Manifest.MF' under META-INF directory.

    Regards,
    Jai.

  3. Re: Loging in to WAS console error(lang.ExceptionInInitializerError)

    I also met this problem in my project, but I added the log4j.jar into the classpath. Does the error mean the log4j.jar is missing ? Whether it may be caused by version difference of log4j.jar? I want to know the root cause for this

  4. Re: Loging in to WAS console error (lang.ExceptionInInitializerError)

    Hello, i'm having the same login problem please could you explain me how to fix it i'm a newbie on classpath terms and all that stuff.


    Thanks in advance!!

+ Reply to Thread