java.lang.ClassCastException

org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19026

  • via hivmr.com by Unknown author, 1 year ago
    org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout
  • via Oracle Community by 501244, 1 year ago
    org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout
  • via liferay.com by Unknown author, 1 year ago
    org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout
  • Stack trace

    • java.lang.ClassCastException: org.apache.log4j.PatternLayout cannot be cast to org.apache.log4j.Layout at org.apache.log4j.xml.DOMConfigurator.parseLayout(DOMConfigurator.java:446) at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:186) at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140) at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153) at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415) at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335) at com.collaxa.ServerLoggerManager$DOMConfigurator.parseCategory(ServerLoggerManager.java:464) at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:781) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:584) at com.collaxa.ServerLoggerManager.init(ServerLoggerManager.java:69) at oracle.bpel.services.common.ServicesLogger.initLoging(ServicesLogger.java:602) at oracle.bpel.services.common.ServicesLogger.getLogger(ServicesLogger.java:183) at oracle.bpel.services.common.ServicesLogger.canLog(ServicesLogger.java:373) at oracle.bpel.services.workflow.util.LogUtil.isLoggingEnabled(LogUtil.java:56) at oracle.bpel.services.workflow.util.LogUtil.isDebugLoggingEnabled(LogUtil.java:67) at oracle.bpel.services.workflow.util.LogUtil.verifyAndLogDebugMessage(LogUtil.java:138) at oracle.bpel.services.workflow.query.impl.TaskQueryService.authenticate(TaskQueryService.java:157) at com.abc.workflow.task.service.ABCTaskService.getWorkFlowContext(ABCTaskService.java:2011) at com.abc.workflow.task.service.ABCTaskService.customTaskAction(ABCTaskService.java:1647) at com.abc.workflow.task.facade.runtime.ABCTaskServiceSOAPPortBinding_Tie.invoke_customTaskAction(ABCTaskServiceSOAPPortBinding_Tie.java:910) at com.abc.workflow.task.facade.runtime.ABCTaskServiceSOAPPortBinding_Tie.processingHook(ABCTaskServiceSOAPPortBinding_Tie.java:1474) at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:297) at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:430) at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:379) at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:294) at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114) at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:151) at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:200) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:619)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.