logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abid (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-461) ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger
Date Sun, 08 Jun 2014 06:18:02 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021116#comment-14021116
] 

Abid commented on LOG4J2-461:
-----------------------------

Tried with the latest trunk however still same classcast error when I place the jars inside
subdirectory of WL_HOME/server/lib/mbeantypes.

 
{code:title=std.out/error|borderStyle=solid}

<Jun 8, 2014 8:38:33 AM AST> <Notice> <Log Management> <BEA-170019>
<The server
log file D:\tqa0666\oracle\wls1036\user_projects\domains\TestDomain1\servers\Adm
inServer\logs\AdminServer.log is opened. All server side log events will be writ
ten to this file.>
QNBAuditProviderImpl.initialize
        activeHandlerEntries.length=1
        handlerEnabled=true
ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger

<Jun 8, 2014 8:38:34 AM AST> <Error> <Security> <BEA-090870> <The
realm "myrealm
" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException:
java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext cannot be
cast to org.apache.
logging.log4j.core.LoggerContext.
weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException:
java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext cannot be
cast to org.apache.logging.log4j.core.LoggerContext
        at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:341)
        at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:220)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1789)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:443)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:841)
        Truncated. see log file for complete stacktrace
Caused By: com.bea.common.engine.ServiceInitializationException: java.lang.ClassCastException:
org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
        at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)
        at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)
        at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)
        at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)
        at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:43)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext
cannot be cast to org.apache.logging.log4j.core.LoggerContext
        at com.qnb.itd.wls.sec.providers.QNBAuditProviderImpl.initialize(QNBAuditProviderImpl.java:108)
        at com.bea.common.security.internal.legacy.service.SecurityProviderImpl.init(SecurityProviderImpl.java:60)
        at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)
        at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)
        at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)
        Truncated. see log file for complete stacktrace
>
<Jun 8, 2014 8:38:35 AM AST> <Notice> <Security> <BEA-090082> <Security
initiali
zing using security realm myrealm.>
<Jun 8, 2014 8:38:35 AM AST> <Critical> <WebLogicServer> <BEA-000362>
<Server failed. Reason:

There are 1 nested errors:

weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services
Unavailable
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:917)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
        at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
        at weblogic.security.SecurityService.start(SecurityService.java:141)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

>
<Jun 8, 2014 8:38:35 AM AST> <Notice> <WebLogicServer> <BEA-000365>
<Server stat
e changed to FAILED>
<Jun 8, 2014 8:38:35 AM AST> <Error> <WebLogicServer> <BEA-000383>
<A critical s
ervice failed. The server will shut itself down>
<Jun 8, 2014 8:38:35 AM AST> <Notice> <WebLogicServer> <BEA-000365>
<Server stat
e changed to FORCE_SHUTTING_DOWN>

{code}

>  ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger
> ---------------------------------------------------------------------------------
>
>                 Key: LOG4J2-461
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-461
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: log4j 1.2 emulation
>    Affects Versions: 2.0-beta9, 2.0-rc1
>         Environment: Android
>            Reporter: Gaurav Kapoor
>            Priority: Blocker
>         Attachments: MANIFEST.MF
>
>
> ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger
> Code:
> Logger LOG = LogManager.getLogger(MainActivity.class);
> 			LOG.error("Test Log4j2");
> {code}
> <?xml version="1.0" encoding="UTF-8"?> 
> <Configuration> 
>   <Appenders> 
>     <Console name="STDOUT" target="SYSTEM_OUT"> 
>       <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/> 
>     </Console> 
>   </Appenders> 
>   <Loggers> 
>     <Logger name="hello" level="info"/> 
>     <Root level="trace"> 
>       <AppenderRef ref="STDOUT"/> 
>     </Root> 
>   </Loggers> 
> </Configuration>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message