[DEBUG] 2018-11-01 12:00:22,507 cn.wizzer.app.web.commons.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) - skip -- cn.wizzer.framework.ig.RedisIdGenerator
[DEBUG] 2018-11-01 12:00:22,507 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.wizzer.framework.ig.RedisIdGenerator without AOP
[DEBUG] 2018-11-01 12:00:22,515 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'jedisAgent'<class org.nutz.integration.jedis.JedisAgent>
[DEBUG] 2018-11-01 12:00:22,515 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=jedisAgent
[DEBUG] 2018-11-01 12:00:22,515 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(jedisAgent) in JsonLoader(paths=[org/nutz/integration/jedis/jedis.js])
[DEBUG] 2018-11-01 12:00:22,516 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'jedisAgent'<class org.nutz.integration.jedis.JedisAgent>
[DEBUG] 2018-11-01 12:00:22,516 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'jedisAgent' to [app]
[DEBUG] 2018-11-01 12:00:22,516 cn.wizzer.app.web.commons.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) - skip -- org.nutz.integration.jedis.JedisAgent
[DEBUG] 2018-11-01 12:00:22,517 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.integration.jedis.JedisAgent without AOP
[DEBUG] 2018-11-01 12:00:22,530 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<>
[DEBUG] 2018-11-01 12:00:22,553 org.nutz.resource.Scans.scan(Scans.java:280) - Found 168 resource by src( cn/wizzer/app/ ) , regex( ^.+[.]class$ )
[DEBUG] 2018-11-01 12:00:22,622 org.nutz.dao.jdbc.Jdbcs.guessEntityFieldColumnType(Jdbcs.java:881) - take field 'sdoData(oracle.spatial.geometry.JGeometry)'(cn.wizzer.app.portableMap.modules.models.ShapeMode) as VARCHAR(128)
[DEBUG] 2018-11-01 12:00:22,712 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT COUNT(*) FROM sys_user
[DEBUG] 2018-11-01 12:00:22,732 org.nutz.resource.Scans.scan(Scans.java:280) - Found 168 resource by src( cn/wizzer/app/ ) , regex( ^.+[.]class$ )
[DEBUG] 2018-11-01 12:00:22,741 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT COUNT(*) FROM MenuList
[DEBUG] 2018-11-01 12:00:22,742 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dao2'<interface org.nutz.dao.Dao>
[DEBUG] 2018-11-01 12:00:22,742 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=dao2
[DEBUG] 2018-11-01 12:00:22,742 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dao2) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-11-01 12:00:22,742 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'dao2'<interface org.nutz.dao.Dao>
[DEBUG] 2018-11-01 12:00:22,742 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'dao2' to [app]
[DEBUG] 2018-11-01 12:00:22,743 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dataSource2'<>
[DEBUG] 2018-11-01 12:00:22,743 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=dataSource2
[DEBUG] 2018-11-01 12:00:22,743 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dataSource2) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-11-01 12:00:22,743 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'dataSource2'<>
[DEBUG] 2018-11-01 12:00:22,744 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'dataSource2' to [app]
[DEBUG] 2018-11-01 12:00:22,744 cn.wizzer.app.web.commons.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) - skip -- com.alibaba.druid.pool.DruidDataSource
[DEBUG] 2018-11-01 12:00:22,744 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class com.alibaba.druid.pool.DruidDataSource without AOP
[DEBUG] 2018-11-01 12:00:22,744 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<>
[ERROR] 2018-11-01 12:00:22,747 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:908) - {dataSource-2} init error
java.lang.NullPointerException
at org.apache.catalina.loader.WebappClassLoaderBase.binaryNameToPath(WebappClassLoaderBase.java:2588)
at org.apache.catalina.loader.WebappClassLoaderBase.findLoadedClass0(WebappClassLoaderBase.java:2756)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1209)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:589)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:815)
at com.alibaba.druid.pool.DruidDataSource$FM$init$037528d56f3083cffc34f392f88f7e07.invoke(DruidDataSource.java)
----------------------------------------------------
var ioc = {
conf : {
type : "org.nutz.ioc.impl.PropertiesProxy",
fields : {
paths : ["config/custom/"]
}
},
dataSource : {
factory : "$conf#make",
args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
type : "com.alibaba.druid.pool.DruidDataSource",
events : {
create : "init",
depose : 'close'
}
},
dao : {
type : "org.nutz.dao.impl.NutDao",
args : [{refer:"dataSource"}]
// fields : {
// executor : {refer:"cacheExecutor"}
// }
},
dataSource2 : {
factory : "$conf#make",
args : ["com.alibaba.druid.pool.DruidDataSource", "db2."],
type : "com.alibaba.druid.pool.DruidDataSource",
events : {
create : "init",
depose : 'close'
}
},
dao2 : {
type : "org.nutz.dao.impl.NutDao",
args : [{refer:"dataSource2"}]
// fields : {
// executor : {refer:"cacheExecutor"}
// }
},
cacheExecutor : {
type : "org.nutz.plugins.cache.dao.CachedNutDaoExecutor",
fields : {
cacheProvider : {refer:"cacheProvider"},
cachedTableNames : ["sys_user", "sys_role", "sys_menu"]
}
},
/*
// 基于内存的简单LRU实现
cacheProvider : {
type : "org.nutz.plugins.cache.dao.impl.provider.MemoryDaoCacheProvider",
fields : {
cacheSize : 10000 // 缓存的对象数
},
events : {
create : "init"
}
}
*/
// 基于Ehcache的DaoCacheProvider
cacheProvider : {
type : "org.nutz.plugins.cache.dao.impl.provider.EhcacheDaoCacheProvider",
fields : {
cacheManager : {refer:"cacheManager"} // 引用ehcache.json中定义的CacheManager
},
events : {
create : "init"
}
}
};
2 回复
添加回复
请先登陆