EMS6.0配置存儲到數據庫過程當中遇到的問題

配置過程:html

1Enable the database store feature in the tibemsd.conf by setting the parametersjava

2Setup and configure stores in the stores.conf filelinux

3api


具體文件:
tibemsd.conf:
dbstore_classpath=c:\lib\antlr-2.7.6.jar;c:\lib\c3p0-0.9.1.jar;c:\lib\commons-collections-3.1.jar;c:\lib\commons-logging.jar;c:\lib\dom4j-1.6.1.jar;c:\lib\hibernate3.jar;c:\lib\hibernate-cglib-repack-2.1_3.jar;c:\lib\javassist-3.4.GA.jar;c:\lib\jta-1.1.jar;c:\lib\oscache-2.1.jar;c:\lib\ojdbc6.jar;c:\lib\ojdbc14.jar; c:\lib\slf4j-api-1.5.6.jar;slf4j-log4j12-1.5.6.jar;c:\lib\slf4j-nop-1.5.6.jar
dbstore_driver_name = oracle.jdbc.driver.OracleDriver
dbstore_driver_dialect = org.hibernate.dialect.Oracle10gDialect
jre_library="C:\Program Files\Java\jdk1.6.0_27\jre\bin\server\jvm.dll"

stores.conf:


[$sys.meta]
type=dbstore
dbstore_driver_url=jdbc:oracle:thin:@10.60.109.12:1521:tibcodev
dbstore_driver_username=test
dbstore_driver_password=1234


[$sys.failsafe]
type=dbstore
dbstore_driver_url=jdbc:oracle:thin:@10.60.109.12:1521:tibcodev
dbstore_driver_username=test
dbstore_driver_password=1234


配置過程當中的問題:
1 報錯:Exception in thread "main" java.lang.NoClassDefFoundError: org/hibernate/HibernateException
對比以上的包,如不缺乏包,檢查一下分隔符,window---";" linux---":",我就忘記了。
2 報錯:Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory
參考文章:

在類路徑先將slf4j - api.jar刪除,再導入同版本的slf4j - api - 1.5 . 6 .jar和slf4j - log4j12 - 1.5 . 6 .jar,問題可解決

心得 :多多查看文檔和資料,和相關的人士請教經驗,以避免走彎路。
相關文章
相關標籤/搜索