TIBCO EMS - 导出模式时出错 - java.lang.ClassNotFoundException:com.tibco.tibems.tibemsd.internal.db.DataStoreConnectionCustomizer

时间:2013-04-09 15:46:03

标签: tibco-ems

我正在尝试使用MySql存储TIBCO EMS 7.0消息。以下是我的配置: -

存储-db.conf

[$sys.failsafe]type=dbstore
dbstore_driver_url=jdbc:mysql://localhost:3306/Research
dbstore_driver_username=root
dbstore_driver_password=12345

tibemsd-db.conf

 dbstore_classpath      
 = ../../../../tibcojre/1.6.0/lib/ext/hibernate-core-4.1.9.Final.jar:../../../../t ibcojre/1.6.0/lib/ext/c3p0-0.9.2.1.jar:../../bin/antlr-2.7.6.jar:../../bin/asm-a ttrs.jar:../../bin/asm.jar:../../bin/cglib-2.1.3.jar:../../bin/commons-collectio ns-2.1.1.jar:../../bin/commons-logging-1.0.4.jar:../../bin/dom4j-1.6.1.jar:../.. /bin/ehcache-1.2.3.jar:../../bin/jta.jar:C:/temp/mysql-connector-java-5.1.23-bin .jar

dbstore_driver_name = com.mysql.jdbc.Driver dbstore_driver_dialect = org.hibernate.dialect.MySQLDialect jre_library = C:/tibco/tibcojre/1.6.0/bin/server/jvm.dll

我确保可以使用给定的用户名和密码连接到MySql,并且dbstore_classpath中提到的文件确实存在于指定的路径中。

当我尝试使用以下内容将架构导出到数据库时: -

java -jar  c:\tibco\ems\7.0\bin\tibemsd_util.jar -tibemsdconf  c:\tibco\ems\7.0\samples\config\tibemsd-db.conf -createall  -export

我收到以下错误。有人能指出我正确的方向: -

  

2013年4月8日下午2:11:10 com.mchange.v2.c3p0.C3P0Registry   getConnectionCustomizer警告:无法创建查找   具有类名的ConnectionCustomizer   'com.tibco.tibems.tibemsd.internal.db.DataStoreConnectionCustomizer'。   的>抛出java.lang.ClassNotFoundException:   com.tibco.tibems.tibemsd.internal.db.DataStoreConnectionCustomizer           在java.net.URLClassLoader $ 1.run(URLClassLoader.java:202)           at java.security.AccessController.doPrivileged(Native Method)           在java.net.URLClassLoader.findClass(URLClassLoader.java:190)           在sun.misc.Launcher $ ExtClassLoader.findClass(Launcher.java:229)           at java.lang.ClassLoader.loadClass(ClassLoader.java:306)           at java.lang.ClassLoader.loadClass(ClassLoader.java:247)           at java.lang.Class.forName0(Native Method)           at java.lang.Class.forName(Class.java:169)           在com.mchange.v2.c3p0.C3P0Registry.getConnectionCustomizer(C3P0Registry.java:193)           在com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getConnectionCustomize   R(C3P0PooledConnectionPoolManager.java:749)           在com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.createPooledConnection   游泳池(C3P0PooledConnectionPoolManager.java:863)           在com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0PooledConn)   ectionPoolManager.java:331)           在com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0PooledConn)   ectionPoolManager.java:348)           at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoo)   lBackedDataSource.java:140)           在org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.getConne   ction(C3P0ConnectionProvider.java:79)           在org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(ManagedProvi)   derConnectionHelper.java:55)           在org.hibernate.tool.hbm2ddl.DatabaseExporter。(DatabaseExporter.java:52)           在org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:367)           在org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:304)           在org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:293)           在com.tibco.tibems.tibemsd.internal.db.CreateStoreCallable.processStore(CreateSto)   reCallable.java:329)           在com.tibco.tibems.tibemsd.internal.db.CreateStoreCallable.call(CreateStoreCallab)   le.java:42)           在com.tibco.tibems.tibemsd.internal.db.CreateStoreCallable.call(CreateStoreCallab)   le.java:33)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja   VA:25)           在java.lang.reflect.Method.invoke(Method.java:597)

1 个答案:

答案 0 :(得分:1)

不确定您是否还有此问题。如果需要,可在此处添加。

$EMS_HOME/bin/tibemsd_dbstore.jar文件包含在类路径

 jar -tvf tibemsd_dbstore.jar | grep DataStoreConnectionCustomizer
  1729 Sat Jul 28 11:32:34 PDT 2012 com/tibco/tibems/tibemsd/internal/db/DataStoreConnectionCustomizer.class