Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Error Message

Highlight

2017-03-30 16:10:21,670  WARN XmlWebApplicationContext:544 - Exception encountered during context initialization - cancelling refresh attempt


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [<CEF EDELIVERY>/domibus/conf/domibus/domibus-datasources.xml]: Cannot resolve reference to bean 'domibusJDBC-XADataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'domibusJDBC-XADataSource' defined in URL

...

/domibus/conf/domibus/domibus-datasources.xml]: Invocation of init method failed; nested exception is com.atomikos.jdbc.AtomikosSQLException: The class 'com.mysql.jdbc.jdbc2.optional.MysqlXADataSource' specified by property 'xaDataSourceClassName' could not be found in the classpath.

... 


Cause

MySQL JDBC driver (.jar file available on MySQL official web site: ) is missing in the folder <CEF-eDelivery path>/domibus/lib. The version of the JDBC driver has to be mysql-connector-java-5.1.40.jar or higher.


Workaround/Fix

  • Make sure that this mysql-connector-java-X.X.X.jar is present in the <CEF-eDelivery path>/domibus/lib folder 
  • Add MySQL JDBC driver (.jar file available on MySQL official web site) in the folder <CEF-eDelivery path>/domibus/lib

Content by Label
showLabelsfalse
max5
spacesHOME
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("domibus","MySQL","JDBCdriver") and type = "page" and space = "HOME"
labelsdomibus

...