testWeb+tomcat6.0出错

07-08-27 evanzhang

保存添加的记录时报错:

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.AopClient - [JdonFramework] enter AOP invoker for:com.jdon.framework.test.service.TestServicePOJOImp method:createUser

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.joinpoint.AdvisorChainFactory - [JdonFramework] enter create PointcutAdvisor

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.joinpoint.AdvisorChainFactory - [JdonFramework] find all service's interceptos size=1

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.joinpoint.AdvisorChainFactory - [JdonFramework] find pojoService's interceptos size=4

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.MethodConstructor - [JdonFramework] enter create the Method

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.MethodConstructor - [JdonFramework] createPOJO Method :createUser for target service: testService

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.container.pico.PicoContainerWrapper - [JdonFramework]getComponentClass: name=testService

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.ProxyMethodInvocation - [JdonFramework] method.getName() :createUser

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.AopClient - [JdonFramework] MethodInvocation will proceed ...

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.interceptor.PoolInterceptor - [JdonFramework] enter PoolInterceptor

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.interceptor.PoolInterceptor - [JdonFramework] borrow a object:com.jdon.framework.test.service.TestServicePOJOImp id:32607422 from pool

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.interceptor.PoolInterceptor - [JdonFramework]pool state: active=1 free=0

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.ProxyMethodInvocation - [JdonFramework] finish call all inteceptors

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.ProxyMethodInvocation - [JdonFramework]enter method reflection

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.ProxyMethodInvocation - [JdonFramework] target:com.jdon.framework.test.service.TestServicePOJOImp service's method:createUser running..

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.ProxyMethodInvocation - [JdonFramework] it is pojo target service

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.MethodInvokerUtil - [JdonFramework] method invoke: com.jdon.framework.test.service.TestServicePOJOImp method=createUser

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.model.query.JdbcTemp - [JdonFramework]--> enter getSingleObject

2007-08-27 22:43:30,500 [http-8080-1] ERROR com.jdon.framework.test.service.TestServicePOJOImp - java.lang.Exception: SQLException: Cannot create JDBC driver of class '' for connect URL 'null'

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.reflection.MethodInvokerUtil - [JdonFramework] method invoke successfully

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.aop.interceptor.PoolInterceptor - [JdonFramework] realease a object:com.jdon.framework.test.service.TestServicePOJOImp to pool

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.controller.service.WebServiceImp - +++++++++++++++execute service='testService' method='createUser' successfully!

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.controller.service.WebServiceImp - ++++++++++++++++++++++++++++++<end:

2007-08-27 22:43:30,500 [http-8080-1] DEBUG com.jdon.model.handler.HandlerObjectFactory - [JdonFramework]--> return Modelhandler instance successfullycom.jdon.model.handler.XmlModelHandler10

2007-08-27 22:43:30,500 [http-8080-1] ERROR com.jdon.strutsutil.ModelSaveAction - [JdonFramework] save error!! USER.CREATE.ERROR

banq
2007-08-28 16:43

>com.jdon.framework.test.service.TestServicePOJOImp - java.lang.Exception: SQLException: Cannot create JDBC driver of class '' for connect URL 'null'

这是因为数据库源DataSource没有发现,tomcat 6的数据源配置和Tomcat 5等有些不一样(按照tomcat5 在server.xml配置datasource JNDI的配置拷贝到tomcat6中就出现上述现象),我也碰到这个现象,还没有找到解决办法,如果各位有能够支招一下,谢谢。