Fail to born or cast to 'org.nutz.dao.Dao',另外一个项目链接数据库是正常的,也加入了参考文档中的
org.nutz
nutz
在application.properties文件相关配置:
nutz.application.name=zsxx
server.port=8080
server.host=127.0.0.1
#oracle
jdbc.name=ws
jdbc.url=jdbc:oracle:thin:@//192.168.255.128/ORCL
jdbc.username=ws
jdbc.password=123456
jdbc.validationQuery=select 1 from dual
jdbc.maxActive=100
jdbc.testWhileIdle=true
jdbc.filters=mergeStat
jdbc.connectionProperties=druid.stat.slowSqlMillis=2000
jdbc.defaultAutoCommit=true
beetl.RESOURCE_LOADER=org.beetl.core.resource.WebAppResourceLoader
beetl.ENGINE=org.beetl.core.engine.DefaultTemplateEngine
beetl.RESOURCE.root= /WEB-INF/views
beetl.RESOURCE.functionSuffix = html
beetl.RESOURCE.autoCheck= true
beetl.DELIMITER_STATEMENT_START=<%
beetl.DELIMITER_STATEMENT_END=%>
FT.escape=cn.wizzer.framework.view.beetl.HtmlEscapeFormat
#==============================================================
#Configure Main Scheduler Properties
#==============================================================
org.quartz.scheduler.instanceName = defaultScheduler
org.quartz.scheduler.instanceId = AUTO
#==============================================================
#Configure JobStore
#==============================================================
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.dataSource=myDS
org.quartz.jobStore.tablePrefix = SYS_QRTZ_
org.quartz.jobStore.isClustered = true
org.quartz.jobStore.clusterCheckinInterval = 20000
org.quartz.jobStore.maxMisfiresToHandleAtATime = 120
org.quartz.jobStore.misfireThreshold = 120000
org.quartz.jobStore.txIsolationLevelSerializable = false
#==============================================================
#Configure ThreadPool
#==============================================================
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 5
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread = true
#==============================================================
#Skip Check Update
#update:true
#not update:false
#==============================================================
org.quartz.scheduler.skipUpdateCheck = true
#============================================================================
# Configure Plugins
#============================================================================
org.quartz.plugin.triggHistory.class = org.quartz.plugins.history.LoggingJobHistoryPlugin
org.quartz.plugin.shutdownhook.class = org.quartz.plugins.management.ShutdownHookPlugin
org.quartz.plugin.shutdownhook.cleanShutdown = true
#============================================================================
# NutDao dataSource
#============================================================================
org.quartz.dataSource.myDS.connectionProvider.class = org.nutz.integration.quartz.NutConnectionProvider
[main]
# cacheManager
#-------------Redis作为shiro二级缓存时注释掉这里---------
cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
cacheManager.cacheManagerConfigFile = classpath:ehcache.xml
#-------------Redis作为shiro二级缓存时注释掉这里---------
#-------------Redis作为shiro二级缓存时启用这里---------
#jedisAgent = org.nutz.integration.jedis.JedisAgent
#cacheManager_ehcache = org.apache.shiro.cache.ehcache.EhCacheManager
#cacheManager_ehcache.cacheManagerConfigFile=classpath:ehcache.xml
#cacheManager_redis = org.nutz.plugins.cache.impl.redis.RedisCacheManager
#cacheManager_redis.mode=kv
#cacheManager_redis.debug=true
#cacheManager = org.nutz.plugins.cache.impl.lcache.LCacheManager
#cacheManager.jedisAgent = $jedisAgent
#cacheManager.level1 = $cacheManager_ehcache
#cacheManager.level2 = $cacheManager_redis
#-------------Redis作为shiro二级缓存时启用这里---------
# Session
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
sessionManager.sessionValidationSchedulerEnabled = true
# Session Cache
#sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
#sessionDAO.cacheManager = $cacheManager
#sessionDAO.activeSessionsCacheName = shiro-activeSessionCache
#sessionManager.sessionDAO = $sessionDAO
securityManager.sessionManager = $sessionManager
# Cookie
sessionIdCookie = org.apache.shiro.web.servlet.SimpleCookie
sessionIdCookie.name = sid
#sessionIdCookie.domain=wizzer.cn
#sessionIdCookie.path=
sessionIdCookie.maxAge = 946080000
sessionIdCookie.httpOnly = true
sessionManager.sessionIdCookie = $sessionIdCookie
sessionManager.sessionIdCookieEnabled = true
sessionManager.globalSessionTimeout = 7200000
#bak...
#sessionManager=org.apache.shiro.web.session.mgt.DefaultWebSessionManager
#sessionListener1 = cn.wizzer.common.shiro.listener.MySessionListener
#sessionManager.sessionListeners = $sessionListener1
#sessionManager.globalSessionTimeout=50000
#securityManager.sessionManager=$sessionManager
rememberMeCookie = org.apache.shiro.web.servlet.SimpleCookie
rememberMeCookie.name = remember
rememberMeCookie.maxAge = 604800
rememberMeCookie.httpOnly = true
rememberMeManager = cn.wizzer.framework.shiro.remember.LightCookieRememberMeManager
rememberMeManager.cookie = $rememberMeCookie
sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
sha256Matcher.storedCredentialsHexEncoded = false
sha256Matcher.hashIterations = 1024
sha256Matcher.hashSalted = true
shiroDbRealm = cn.wizzer.app.web.commons.shiro.realm.PlatformAuthorizingRealm
shiroDbRealm.credentialsMatcher = $sha256Matcher
securityManager.realms = $shiroDbRealm
authcStrategy = cn.wizzer.framework.shiro.pam.AnySuccessfulStrategy
securityManager.authenticator.authenticationStrategy = $authcStrategy
securityManager.cacheManager = $cacheManager
securityManager.rememberMeManager = $rememberMeManager
authc = cn.wizzer.app.web.commons.shiro.filter.PlatformAuthenticationFilter
authc.captchaParam=platformCaptcha
authc.loginUrl = /platform/login
logout.redirectUrl = /platform/login
[urls]
/platform/doLogin = anon
/assets/** = anon
/** = anon
/platform/** = authc
/api/** = authc
报错如下:
16:44:06.517 [main] DEBUG org.nutz.mvc.impl.NutActionChainMaker - Eval FAIL!! : public java.lang.Object cn.wizzer.app.web.modules.controllers.platform.zswres.ZswresVectorbasicinfoController.addDo(cn.wizzer.app.zswres.modules.models.Zswres_vectorbasicinfo,org.nutz.mvc.upload.TempFile,org.nutz.mvc.upload.TempFile,org.nutz.mvc.upload.TempFile,javax.servlet.http.HttpServletRequest,org.nutz.dao.Dao)
org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.dao.Dao'
by args: []
because: No suitable Constructor or Factory Method!!
at org.nutz.lang.Mirror.getBorning(Mirror.java:983)
at org.nutz.mvc.adaptor.injector.ObjectPairInjector.<init>(ObjectPairInjector.java:39)
at org.nutz.mvc.adaptor.PairAdaptor.evalInjectorBy(PairAdaptor.java:57)
at org.nutz.mvc.upload.UploadAdaptor.evalInjectorBy(UploadAdaptor.java:165)
at org.nutz.mvc.adaptor.AbstractAdaptor.evalInjector(AbstractAdaptor.java:221)
at org.nutz.mvc.adaptor.AbstractAdaptor.init(AbstractAdaptor.java:160)
at org.nutz.mvc.adaptor.AbstractAdaptor.init(AbstractAdaptor.java:81)
at org.nutz.mvc.upload.UploadAdaptor.init(UploadAdaptor.java:215)
at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:46)
at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:22)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:28)
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.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:136)
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:369)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:160)
at org.nutz.boot.AppContext.startServers(AppContext.java:310)
at org.nutz.boot.NbApp.execute(NbApp.java:210)
at org.nutz.boot.NbApp.run(NbApp.java:182)
at cn.wizzer.app.web.commons.core.MainLauncher.main(MainLauncher.java:35)
16:44:06.518 [main] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.dao.Dao'
by args: []
because: No suitable Constructor or Factory Method!!
at org.nutz.lang.Mirror.getBorning(Mirror.java:983)
at org.nutz.mvc.adaptor.injector.ObjectPairInjector.<init>(ObjectPairInjector.java:39)
at org.nutz.mvc.adaptor.PairAdaptor.evalInjectorBy(PairAdaptor.java:57)
at org.nutz.mvc.upload.UploadAdaptor.evalInjectorBy(UploadAdaptor.java:165)
at org.nutz.mvc.adaptor.AbstractAdaptor.evalInjector(AbstractAdaptor.java:221)
at org.nutz.mvc.adaptor.AbstractAdaptor.init(AbstractAdaptor.java:160)
at org.nutz.mvc.adaptor.AbstractAdaptor.init(AbstractAdaptor.java:81)
at org.nutz.mvc.upload.UploadAdaptor.init(UploadAdaptor.java:215)
at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:46)
at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:22)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:28)
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.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:136)
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:369)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:160)
at org.nutz.boot.AppContext.startServers(AppContext.java:310)
at org.nutz.boot.NbApp.execute(NbApp.java:210)
at org.nutz.boot.NbApp.run(NbApp.java:182)
at cn.wizzer.app.web.commons.core.MainLauncher.main(MainLauncher.java:35)
16:44:06.518 [main] ERROR org.nutz.mvc.impl.NutLoading - try to depose ioc
16:44:06.521 [main] INFO org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@1048128739 is closing. startup date [19-08-13 16:44:00.633]
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'tmpFilePool' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'nutFilter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroFilter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'whaleFilter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroRememberMeManager' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'platformAuthorizingRealm' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroCacheManager' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroWebSessionManager' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroWebSecurityManager' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroEnvironmentLoaderListener' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'loglevelProperty' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'logbackStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'nbServletContextListener' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'jettyStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'ftpStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'quartzStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroEnvStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'shiroFilterStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'tomcatStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'druidWebStatServletStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'druidWebStatFilterStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'dataSourceStarter' ...
16:44:06.521 [main] DEBUG org.nutz.boot.starter.jdbc.DataSourceStarter - shutdown slave datasource count=0
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'nutDaoStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'whaleFilterStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'nutFilterStarter' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object '$aop_wkcache' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object '$aop_syslog' ...
16:44:06.521 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object '$aop_async' ...
16:44:06.522 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'dynamicInterceptor' ...
16:44:06.522 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object '$aop_1_plugin' ...
16:44:06.522 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'scheduler' ...
16:44:06.522 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'counterService' ...
16:44:06.522 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'nbApp' ...
16:44:06.522 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'conf' ...
16:44:06.522 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'appContext' ...
16:44:06.522 [main] INFO org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@1048128739 is deposed. startup date [19-08-13 16:44:00.633]
16:44:06.524 [main] DEBUG org.eclipse.jetty.servlet.ServletHandler - EXCEPTION
org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.dao.Dao'
by args: []
because: No suitable Constructor or Factory Method!!
at org.nutz.mvc.LoadingException$FC$ea86c19f63d257f4e49c243bba1db3c3.invoke(LoadingException.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:1025)
at org.nutz.lang.Lang.wrapThrow(Lang.java:207)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
at org.nutz.boot.starter.nutz.mvc.NbMvcLoading.load(NbMvcLoading.java:28)
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.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:136)
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:369)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:160)
at org.nutz.boot.AppContext.startServers(AppContext.java:310)
at org.nutz.boot.NbApp.execute(NbApp.java:210)
at org.nutz.boot.NbApp.run(NbApp.java:182)
at cn.wizzer.app.web.commons.core.MainLauncher.main(MainLauncher.java:35)
Caused by: org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.dao.Dao'
by args: []
because: No suitable Constructor or Factory Method!!
at org.nutz.lang.Mirror.getBorning(Mirror.java:983)
at org.nutz.mvc.adaptor.injector.ObjectPairInjector.<init>(ObjectPairInjector.java:39)
at org.nutz.mvc.adaptor.PairAdaptor.evalInjectorBy(PairAdaptor.java:57)
at org.nutz.mvc.upload.UploadAdaptor.evalInjectorBy(UploadAdaptor.java:165)
at org.nutz.mvc.adaptor.AbstractAdaptor.evalInjector(AbstractAdaptor.java:221)
at org.nutz.mvc.adaptor.AbstractAdaptor.init(AbstractAdaptor.java:160)
at org.nutz.mvc.adaptor.AbstractAdaptor.init(AbstractAdaptor.java:81)
at org.nutz.mvc.upload.UploadAdaptor.init(UploadAdaptor.java:215)
at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:46)
at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:22)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
... 29 common frames omitted