2009-11-05 85 views
1

我有一個Grails應用程序成功部署在一個獨立的OC4J實例上,但是當我嘗試通過GUI將其部署到完整版本時,出現此問題:Grails OC4J麻煩部署到10.1.3.1

[Nov 5, 2009 10:50:41 AM] Binding diploma-1.0.1 web-module for application diploma to site default-web-site under context root diploma [Nov 5, 2009 10:50:48 AM] Operation failed with error: 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: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The database is already in use by another process: [email protected][file =D:\product\10.1.3.1\OracleAS_1\j2ee\home\prodDb.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: java.io.IOException: The process cannot access the file because another process has locked a portion of the file : D:\product\10.1.3.1\OracleAS_1\j2ee\home\prodDb.lck)

有沒有人有我的問題可能是什麼線索?

回答

1

我猜的相關信息The database is already in use by another process: [email protected][file =D:\product\10.1.3.1\OracleAS_1\j2ee\home\prodDb.lck

好像出現了應用程序或類似的東西和HSQL數據庫的不正常關機無法解除鎖定。或者應用程序運行的用戶無權訪問文件D:\product\10.1.3.1\OracleAS_1\j2ee\home\prodDb.lck

我強烈建議您在生產環境中使用不同類型的數據庫。替代方案有MySQL,PostgreSQL,Oracle,MSSQL,Derby等。