Topic
  • 1 reply
  • Latest Post - ‏2018-09-20T08:20:19Z by Sreejith.kanneri
Commandor
Commandor
1 Post

Pinned topic JDBCQueryService ComponentConfigurationException: CWXFR0027E

‏2018-08-02T14:14:46Z | bod componentconfigurationexception ibm jdbcqueryservice wcs

Hello everyone. I am trying to implement BOD service, I created folder WC\xml\config\com.mycompany.commerce.project and put into it query template file wc-query-utilities.tpl for making sql queries without associated logical noun, for example to do SELECT COUNT(*).... I even defined wc-component.xml in this folder too but it seems that it can't be found in runtime,

But when I initialize new JDBCQueryService("com.mycompany.commerce.project") I get error no matter what I do : 

 

com.ibm.commerce.foundation.common.exception.ComponentConfigurationException: CWXFR0027E: No database configuration has been provided for component com.ibm.commerce.catalog
at com.ibm.commerce.foundation.server.databaseconnection.DatabaseConnectionManager.getDatabaseConfig(DatabaseConnectionManager.java:97)
at com.ibm.commerce.foundation.internal.server.services.dataaccess.config.DataServiceConfigHelper.getDBType(DataServiceConfigHelper.java:121)

Please help me to figure it out.

  • Sreejith.kanneri
    Sreejith.kanneri
    164 Posts

    Re: JDBCQueryService ComponentConfigurationException: CWXFR0027E

    ‏2018-09-20T08:20:19Z  

    do you have the <_config:database name="java:comp/env/jdbc/WCDataSource" /> entry in the wc-component.xml