我使用的Maven构建一个GAE / J的Web应用程序。
到现在为止我还没有遇到任何问题,但现在每当我试图运行开发服务器,我收到了NoClassDefFoundError的:org.slf4j.LoggerFactory是受限制的类 。
这里是控制台日志的摘录:
...
INFO c.g.a.d.DevAppServerRunner - WARNING: failed JettyContainerService$ApiProxyHandler@4e4ad8a3: java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory is a restricted class. Please see the Google App Engine developer's guide for more details.
INFO c.g.a.d.DevAppServerRunner - ago 28, 2013 1:36:53 PM com.google.apphosting.utils.jetty.JettyLogger warn
INFO c.g.a.d.DevAppServerRunner - WARNING: Error starting handlers
INFO c.g.a.d.DevAppServerRunner - java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory is a restricted class. Please see the Google App Engine developer's guide for more details.
INFO c.g.a.d.DevAppServerRunner - at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
INFO c.g.a.d.DevAppServerRunner - at com.starchu.guice.jsf.core.GuiceJSFConfigurer.<clinit>(GuiceJSFConfigurer.java)
INFO c.g.a.d.DevAppServerRunner - at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
INFO c.g.a.d.DevAppServerRunner - at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
INFO c.g.a.d.DevAppServerRunner - at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
...
我试图做一个maven干净,并再次建立的一切,但我没有运气。
为什么这个类“限制”? 我怎样才能找出原因?
我使用JDK 1.7.0_25,行家3.1.0,GAE SDK 1.8.3,龙目岛0.12.0,SLF4J-jdk14-1.7.5