本地eclipse中运行可以,但部署到服务器tomcat有问题

牛网 发布于 2015/07/07 09:08
阅读 2K+
收藏 0

@JFinal 你好,想跟你请教个问题:

加载中
0
JFinal
JFinal
C3p0Plugin 换成 DruidPlugin,并确保配置正确,tomcat下的配置详见这篇博文:http://my.oschina.net/jfinal/blog/353062
0
牛网

引用来自“JFinal”的评论

C3p0Plugin 换成 DruidPlugin,并确保配置正确,tomcat下的配置详见这篇博文:http://my.oschina.net/jfinal/blog/353062

换了又出现这问题,我是阿里云服务器

严重: Exception starting filter kuiyun
java.lang.NoClassDefFoundError: com/alibaba/druid/pool/DruidDataSource
at com.jfinal.plugin.druid.DruidPlugin.start(DruidPlugin.java:127)
at com.jfinal.core.Config.startPlugins(Config.java:87)
at com.jfinal.core.Config.configJFinal(Config.java:48)
at com.jfinal.core.JFinal.init(JFinal.java:65)
at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.pool.DruidDataSource
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
... 21 more


JFinal
JFinal
缺少 druid 的 jar 包
0
牛网
怎么启动回去调用alibaba的东西
gulixing
gulixing
因为druid连接池就是阿里巴巴的开源产品。
0
j&a
j&a
连接池的一个包
0
gulixing
gulixing
缺少druid的jar包依赖。
返回顶部
顶部