1
回答
我想换成c3p0的连接,在哪里改,druid怎么老报找不到类和无法初始化。。。
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

@龙影 我在JFWebConfig改了没效果~~~

2013-09-09 11:18:39.457:WARN::failed jfinal: java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.druid.proxy.DruidDriver
2013-09-09 11:18:39.457:WARN::failed org.mortbay.jetty.webapp.WebAppContext@1d9e2c7{/,D:/product_project/JFOA/WebContent}: java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.druid.proxy.DruidDriver
2013-09-09 11:18:39.457:WARN::Error starting handlers
java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.druid.proxy.DruidDriver
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at java.sql.DriverManager.getCallerClass(Unknown Source)
 at java.sql.DriverManager.getDrivers(Unknown Source)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:497)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.getConnection(UnpooledDataSource.java:64)
 at org.apache.ibatis.datasource.pooled.PooledDataSource.popConnection(PooledDataSource.java:349)
 at org.apache.ibatis.datasource.pooled.PooledDataSource.getConnection(PooledDataSource.java:55)
 at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSessionFromDataSource(DefaultSqlSessionFactory.java:73)
 at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSession(DefaultSqlSessionFactory.java:32)
 at org.activiti.engine.impl.db.DbSqlSession.<init>(DbSqlSession.java:86)
 at org.activiti.engine.impl.db.DbSqlSessionFactory.openSession(DbSqlSessionFactory.java:80)
 at org.activiti.engine.impl.interceptor.CommandContext.getSession(CommandContext.java:179)
 at org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext.getDbSqlSession(StandaloneMybatisTransactionContext.java:77)
 at org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext.commit(StandaloneMybatisTransactionContext.java:58)
 at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:114)
 at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:49)
 at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
 at org.activiti.engine.impl.ProcessEngineImpl.<init>(ProcessEngineImpl.java:77)
 at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:283)
 at net.loyin.activiti.ActivitiServer.<clinit>(ActivitiServer.java:28)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at net.loyin.jFinal.plugin.ClassSearcher.findClasses(ClassSearcher.java:86)
 at net.loyin.jFinal.plugin.MyRoutesUtil.add(MyRoutesUtil.java:18)
 at net.loyin.config.JFWebConfig.configRoute(JFWebConfig.java:48)
 at com.jfinal.core.Config.configJFinal(Config.java:47)
 at com.jfinal.core.JFinal.init(JFinal.java:65)
 at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:48)
 at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
 at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
 at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
 at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
 at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
 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.jfinal.server.JettyServer.doStart(JettyServer.java:153)
 at com.jfinal.server.JettyServer.start(JettyServer.java:82)
 at com.jfinal.core.JFinal.start(JFinal.java:160)
 at Server.main(Server.java:20)
2013-09-09 11:18:39.504:INFO::Started SelectChannelConnector@0.0.0.0:8088

 

举报
porcupinefinal
发帖于4年前 1回/802阅
顶部