logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1711) GAE sun.reflect.Reflection is a restricted class when spring web app start
Date Thu, 17 Nov 2016 17:19:58 GMT

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

Gary Gregory commented on LOG4J2-1711:
--------------------------------------

>From what I see it should be like this:

{code}
Configuration:
  status: INFO
{code}

> GAE sun.reflect.Reflection is a restricted class when spring web app start
> --------------------------------------------------------------------------
>
>                 Key: LOG4J2-1711
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1711
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.7
>            Reporter: mik
>            Priority: Critical
>
>  log4j-api : 2.7 
>  log4j-core : 2.7 
>  log4j-slf4j-impl : 2.7  
>  log4j-web : 2.7
>  jcl-over-slf4j : 1.7.21 
>  slf4j-api : 1.7.21
> {code:java}
>  to this. java.lang.NoClassDefFoundError: sun.reflect.Reflection is a restricted class.
Please see the Google App Engine developer's guide for more details.
> 	at com.google.appengine.runtime.Request.process-b2ab119ecd250b28(Request.java)
> 	at sun.reflect.Reflection.<clinit>(Reflection.java)
> 	at java.lang.reflect.Method.invoke(Method.java:42)
> 	at org.apache.logging.log4j.util.ReflectionUtil.<clinit>(ReflectionUtil.java:67)
> 	at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:42)
> 	at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
> 	at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
> 	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
> 	at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
> 	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:290)
> 	at org.springframework.web.servlet.DispatcherServlet.<clinit>(DispatcherServlet.java:269)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> 	at java.lang.Class.newInstance(Class.java:379)
> 	at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> 	at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:428)
> 	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)
> 	at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)
> 	at com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)
> 	at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)
> 	at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)
> 	at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
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