简体   繁体   English

google web 应用程序引擎项目开发人员中的 Logging.LogFactory 错误

[英]Logging.LogFactory error in google web application engine project developmenter

I am using the google web application engine and develop a project.我正在使用谷歌 web 应用引擎并开发一个项目。 I meet with a problem of runtime error like that:我遇到了这样的运行时错误问题:

Apr 28, 2011 10:28:36 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Error starting handlers
java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory is a restricted class. Please see the Google  App Engine developer's guide for more details.
    at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
    at org.springframework.web.context.ContextLoader.<clinit>(ContextLoader.java:146)
    at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    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 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:185)
    at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:147)
    at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:219)
    at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:164)
    at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
    at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:113)
    at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Apr 28, 2011 10:28:36 AM com.google.apphosting.utils.jetty.JettyLogger debug

How can I get the solution for this?我怎样才能得到这个解决方案?

Here is my logging.properties...这是我的 logging.properties ......

A default java.util.logging configuration.默认 java.util.logging 配置。

(All App Engine logging is through java.util.logging by default). (默认情况下,所有 App Engine 日志记录都是通过 java.util.logging 进行的)。

# #

To use this configuration, copy it into your application's WEB-INF要使用此配置,请将其复制到应用程序的 WEB-INF

folder and add the following to your appengine-web.xml:文件夹并将以下内容添加到您的 appengine-web.xml:

# #

Set the default logging level for all loggers to WARNING将所有记录器的默认记录级别设置为警告

.level = ALL handlers = java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter .level = ALL handlers = java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

Set the default logging level for ORM, specifically, to WARNING将 ORM 的默认日志记录级别设置为 WARNING

DataNucleus.JDO.level=WARNING DataNucleus.Persistence.level=WARNING DataNucleus.Cache.level=WARNING DataNucleus.MetaData.level=WARNING DataNucleus.General.level=WARNING DataNucleus.Utility.level=WARNING DataNucleus.Transaction.level=WARNING DataNucleus.Datastore.level=WARNING DataNucleus.ClassLoading.level=WARNING DataNucleus.Plugin.level=WARNING DataNucleus.ValueGeneration.level=WARNING DataNucleus.Enhancer.level=WARNING DataNucleus.SchemaTool.level=WARNING java.sql.level=INFO DataNucleus.JDO.level=警告DataNucleus.Persistence.level=警告DataNucleus.Cache.level=警告DataNucleus.MetaData.level=警告DataNucleus.General.level=警告DataNucleus.Utility.level=警告DataNucleus.Transaction.level=警告DataNucleus .Datastore.level=WARNING DataNucleus.ClassLoading.level=WARNING DataNucleus.Plugin.level=WARNING DataNucleus.ValueGeneration.level=WARNING DataNucleus.Enhancer.level=WARNING DataNucleus.SchemaTool.level=WARNING java.sql.level=INFO

It is possible you're missing commons-logging-xxx.jar in your build path您可能在构建路径中缺少 commons-logging-xxx.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 记录Google App Engine应用程序 - Logging Google App Engine application LogFactory和错误记录到数据库/文本文件 - LogFactory and Error Logging to Database/Text File 在Lotus Notes中使用Web服务会显示错误消息,没有为org.apache.commons.logging.logfactory定义实现 - Consuming Web Services in Lotus Notes shows error message no implementation defined for org.apache.commons.logging.logfactory 错误:NoClassDefFoundError:org / apache / commons / logging / LogFactory - Error: NoClassDefFoundError: org/apache/commons/logging/LogFactory Spring Maven项目commons-logging LogFactory NoClassDefFoundError - Spring Maven project commons-logging LogFactory NoClassDefFoundError 将Eclipse Web Project部署到Google App Engine时出错 - Error deploying Eclipse Web Project to Google App Engine 错误-java.lang.NoClassDefFoundError:org / apache / commons / logging / LogFactory - Error -java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 将Java Web Project部署到Google App Engine - Deploying Java Web Project to Google App Engine 通过Mac中的Eclipse在Google App Engine中创建新的Web应用程序项目 - Creating a New Web Application project in Google app engine through Eclipse in Mac 在Java中实施应用程序时,在Google App引擎的应用程序中记录事件 - Logging Events in Application in Google App engine when implementing application in Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM