Grails为什么不能使用MSSQL2000?
oksonic
2008-06-12
我在MySql下调试和发布过都没问题,现转到MSSQL2000环境下却发现不能正常启动,JDBC使用的是
msbase.jar mssqlserver.jar msutil.jar 配置是用以前正常的项目配置,是不是Hibernate升级后不支持这个JDBC了。 |
|
oksonic
2008-06-12
以下是错误信息
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I at java.security.AccessController.doPrivileged(Native Method) at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:69) at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy) at Init_groovy$_run_closure6.doCall(Init_groovy:131) at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:68) at RunApp_groovy$_run_closure2.doCall(RunApp_groovy) at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:60) at RunApp_groovy$_run_closure1.doCall(RunApp_groovy) at gant.Gant.dispatch(Gant.groovy:271) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.processTargets(Gant.groovy:436) at gant.Gant.processArgs(Gant.groovy:372) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I at java.security.AccessController.doPrivileged(Native Method) ... 16 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I at java.security.AccessController.doPrivileged(Native Method) ... 17 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I at java.security.AccessController.doPrivileged(Native Method) ... 18 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I at java.security.AccessController.doPrivileged(Native Method) ... 19 more Caused by: org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I ... 20 more Caused by: java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I ... 20 more 2008-06-12 20:21:28.860::WARN: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I: java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getDatabaseMajorVersion()I at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Native Method) at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:69) at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy) at Init_groovy$_run_closure6.doCall(Init_groovy:131) at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:68) at RunApp_groovy$_run_closure2.doCall(RunApp_groovy) at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:60) at RunApp_groovy$_run_closure1.doCall(RunApp_groovy) at gant.Gant.dispatch(Gant.groovy:271) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.processTargets(Gant.groovy:436) at gant.Gant.processArgs(Gant.groovy:372) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) |
|
agile_boy
2008-06-13
hibernate.dialect没有设置好?
|
|
oksonic
2008-06-13
不知道应该怎么配置呢?该配的地方都已经配了,还有什么地方需要配置?
|
|
cats_tiger
2008-06-13
用jdts,别用ms的驱动,ms压根就不想java能使用sqlserver
|
|
范三山
2008-06-14
ms的驱动问题多多
|
|
Javabengou
2008-06-15
从上面的异常可以看出是JDBC driver的问题
|
|
oksonic
2008-06-15
多谢 cats_tiger ,换个驱动解决问题
|
相关讨论
相关资源推荐
- Producto-Unidad-_P2:集成人:Bryan Santiago Torres Reyes,Roger Steveen ArmasSimbaña,以色列Alejandro Portero Cazares
- El portero entrenador
- equipaciones de futbol empinada
- Practica-8-Inductor-y-Capacitor:整合体
- 卡纳斯塔
- Practica-9-Amplificador-Operacional:整合体
- raspberrypi依赖_RaspberryPi + Slack:我们对办公室懒惰的微薄贡献
- Al considerar que la aficin universitaria es la mejor en Mxico
- CONVOCATORIA DEL TRI PARA AMISTOSO ANTE BOLIVIA
- 西班牙语足球术语