2016-12-19 14:00:29 ERROR [main] Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.dao.impl.NutDao'
by args: [
@({
CreateTime:"null",
ActiveCount:0,
PoolingCount:0,
CreateCount:0,
DestroyCount:0,
CloseCount:0,
ConnectCount:0,
Connections:[
]
})] becasue:
oracle.jdbc.driver.OracleDriver
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:182)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:197)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:134)
at net.wendal.nutz.WendalSetup.init(WendalSetup.java:28)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:240)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:104)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:53)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:16)
... 28 more
Caused by: java.lang.RuntimeException: java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at org.nutz.lang.Lang.wrapThrow(Lang.java:138)
at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:96)
at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:154)
at org.nutz.dao.impl.NutDao.(NutDao.java:87)
... 33 more
Caused by: java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:484)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:288)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:397)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:393)
at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:89)
... 35 more
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:478)
... 39 more
2016-12-19 14:00:29 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.dao.impl.NutDao'
by args: [
@({
CreateTime:"null",
ActiveCount:0,
PoolingCount:0,
CreateCount:0,
DestroyCount:0,
CloseCount:0,
ConnectCount:0,
Connections:[
]
})] becasue:
oracle.jdbc.driver.OracleDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:16)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:888)
at org.nutz.lang.Lang.wrapThrow(Lang.java:154)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:109)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:53)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.dao.impl.NutDao'
by args: [
@({
CreateTime:"null",
ActiveCount:0,
PoolingCount:0,
CreateCount:0,
DestroyCount:0,
CloseCount:0,
ConnectCount:0,
Connections:[
]
})] becasue:
oracle.jdbc.driver.OracleDriver
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:182)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:197)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:134)
at net.wendal.nutz.WendalSetup.init(WendalSetup.java:28)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:240)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:104)
... 20 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:16)
... 28 more
Caused by: java.lang.RuntimeException: java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at org.nutz.lang.Lang.wrapThrow(Lang.java:138)
at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:96)
at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:154)
at org.nutz.dao.impl.NutDao.(NutDao.java:87)
... 33 more
Caused by: java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:484)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:288)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:397)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:393)
at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:89)
... 35 more
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:478)
... 39 more
这是运行tomcat之后的报错提示,请问一下是什么问题,dao.js代码
var ioc={
dataSource:{
type:"com.alibaba.druid.pool.DruidDataSource",
fields:{
driverClassName : 'oracle.jdbc.driver.OracleDriver',
url : 'jdbc:oracle:thin:@localhost:1521:48_FDJBO'
}
},
dao:{
type:"org.nutz.dao.impl.NutDao",
args:[{refer:"dataSource"}]
}
};