2013-08-28 53 views
1

我正在使用maven構建GAE/J web應用程序。NoClassDefFoundError:org.slf4j.LoggerFactory是一個受限制的類

到目前爲止我還沒有任何問題,但現在每當我嘗試運行開發服務器時,我都會得到一個NoClassDefFoundError:org.slf4j.LoggerFactory是一個受限制的類

這裏是控制檯日誌的摘錄:

... 
INFO c.g.a.d.DevAppServerRunner - WARNING: failed [email protected]: 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

回答

1

我有類似的問題,並恢復到JDK 1.7.0_21解決它們。

Archived JDK downloads

+0

非常感謝Mark,就是這樣。 – rmart

相關問題