NutzCN Logo
问答 jedis 异常问题,请大神看看
发布于 2405天前 作者 qq_7bff7329 1673 次浏览 复制 上一个帖子 下一个帖子
标签:

环境
jdk 1.7
tomcat 8.0.50
jedis-2.8.0.jar

MainModule.java

@Modules(scanPackage=true)
@IocBy(type = ComboIocProvider.class, args = {"*js", "ioc/","*anno","cn","*quartz","*jedis"})
@SetupBy(HelloMvcSetup.class)
public class MainModule {}
错误异常:

2018-05-23 18:40:14,640 [localhost-startStop-1] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
java.lang.RuntimeException: java.lang.ClassNotFoundException: jedis
	at org.nutz.lang.Lang.wrapThrow(Lang.java:185)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:23)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:384)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4708)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5348)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1126)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1868)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)
10 回复

nutz集成jedis的插件加一下

nutz-plugins-jedis-1.r.60-20170106.055154-10.jar 已经加了,不行

版本太低了

@wendal 什么版本太低了?

nutz及jedis插件版本低

nutz 版本
nutz-1.r.65.jar

nutz 及jedis 插件快照上只有最新的1.r.60 版本
http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-jedis/

@wendal

nutz 版本
nutz-1.r.65.jar
nutz 及jedis 插件快照上只有最新的1.r.60 版本
http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-jedis/

@wendal
nutz-plugins-jedis-1.r.60-20170106.055154-10.jar
nutz-integration-jedis-1.r.65-20171116.025119-1.jar

这两什么区别? 是同时引入?还是只引入 nutz-integration-jedis ?

nutz-plugins-jedis 是多余的, 当时写错名字而已啦

添加回复
请先登陆
回到顶部