google-code-export / b3log-solo

Automatically exported from code.google.com/p/b3log-solo
0 stars 1 forks source link

java.lang.NoClassDefFoundError: com/jolbox/bonecp/BoneCPConfig #398

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
源代码编译运行报错,运行gae的应用报以下错误
2012-5-4 23:40:06 org.b3log.latke.repository.AbstractRepository <init>
信息: Constructed repository[name=preference]
2012-5-4 23:40:06 com.google.apphosting.utils.jetty.JettyLogger warn
警告: failed 
com.google.appengine.tools.development.DevAppEngineWebAppContext@b05236{/,D:\run
ingProgram\b3log\trunk\b3log-solo\war\gae\target\b
og-solo-gae}: java.lang.NoClassDefFoundError: com/jolbox/bonecp/BoneCPConfig
2012-5-4 23:40:06 com.google.apphosting.utils.jetty.JettyLogger warn
警告: failed JettyContainerService$ApiProxyHandler@e80740: 
java.lang.NoClassDefFoundError: com/jolbox/bonecp/BoneCPConfig
2012-5-4 23:40:06 com.google.apphosting.utils.jetty.JettyLogger warn
警告: Error starting handlers
java.lang.NoClassDefFoundError: com/jolbox/bonecp/BoneCPConfig
        at org.b3log.latke.repository.jdbc.JdbcTransaction.<init>(JdbcTransaction.java:53)
        at org.b3log.latke.repository.jdbc.JdbcRepository.beginTransaction(JdbcRepository.java:855)
        at org.b3log.latke.repository.AbstractRepository.beginTransaction(AbstractRepository.java:183)
        at org.b3log.solo.SoloServletListener.contextInitialized(SoloServletListener.java:108)
        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:191)
        at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:239)
        at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:146)
        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)
Caused by: java.lang.ClassNotFoundException: com.jolbox.bonecp.BoneCPConfig
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 22 more
2012-5-4 23:40:06 com.google.apphosting.utils.jetty.JettyLogger debug
良好: started org.mortbay.jetty.nio.SelectChannelConnector$1@18c5e67

Original issue reported on code.google.com by zenglo...@gmail.com on 4 May 2012 at 11:41

GoogleCodeExporter commented 9 years ago
注,代码为svn检出最新程序

Original comment by zenglo...@gmail.com on 4 May 2012 at 11:42

GoogleCodeExporter commented 9 years ago
请修改配置文件 latke.properties,注释掉 runtimeEnv=LOCAL,启用 
runtimeEnv=GAE。

其他配置项可以不用修改。

Original comment by dl88250 on 5 May 2012 at 2:18