在WAS 8.5上部署worklight项目

时间:2013-12-12 07:05:54

标签: ibm-mobilefirst

当我在WAS 8.5上部署战争时,我得到以下异常

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'identityAssociationCleanupTask' defined in URL [wsjar:file:/C:/Program%20Files/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/core.xml]: Invocation of init method failed; nested exception is org.springframework.orm.jpa.JpaSystemException: "WRKSCHM.CLUSTER_SYNC" is an undefined name.. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.57.82 {prepstmnt -234009374 SELECT t0.HOSTVMID, t0.ID, t0.UPDATETIMESTAMP, t0.VERSION FROM WRKSCHM.CLUSTER_SYNC t0 WHERE t0.ID = ?  optimize for 1 row [params=(String) identityAssociationCleanupTask]} [code=-204, state=42704]SQLCA OUTPUT[Errp=SQLNQ1FC, Errd=-2145779603, 0, 0, 0, -10, 0]
"WRKSCHM.CLUSTER_SYNC" is an undefined name.. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.57.82
An error occurred during implicit system action type "2". Information returned for the error includes SQLCODE "-204", SQLSTATE "42704" and message tokens "WRKSCHM.CLUSTER_SYNC".. SQLCODE=-727, SQLSTATE=56098, DRIVER=3.57.82
An error occurred during implicit system action type "2". Information returned for the error includes SQLCODE "-204", SQLSTATE "42704" and message tokens "WRKSCHM.CLUSTER_SYNC".. SQLCODE=-727, SQLSTATE=56098, DRIVER=3.57.82; nested exception is <openjpa-1.2.2-r422266:898935 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: "WRKSCHM.CLUSTER_SYNC" is an undefined name.. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.57.82 {prepstmnt -234009374 SELECT t0.HOSTVMID, t0.ID, t0.UPDATETIMESTAMP, t0.VERSION FROM WRKSCHM.CLUSTER_SYNC t0 WHERE t0.ID = ?  optimize for 1 row [params=(String) identityAssociationCleanupTask]} [code=-204, state=42704]SQLCA OUTPUT[Errp=SQLNQ1FC, Errd=-2145779603, 0, 0, 0, -10, 0]
"WRKSCHM.CLUSTER_SYNC" is an undefined name.. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.57.82
An error occurred during implicit system action type "2". Information returned for the error includes SQLCODE "-204", SQLSTATE "42704" and message tokens "WRKSCHM.CLUSTER_SYNC".. SQLCODE=-727, SQLSTATE=56098, DRIVER=3.57.82
An error occurred during implicit system action type "2". Information returned for the error includes SQLCODE "-204", SQLSTATE "42704" and message tokens "WRKSCHM.CLUSTER_SYNC".. SQLCODE=-727, SQLSTATE=56098, DRIVER=3.57.82

但是我能够在eclipse的嵌入式服务器上部署它。 并且我无法在APPCNTR数据库下看到任何内部表。

我使用worklight 6.0并使用安装管理器1.6.3安装。 我使用DB2 10.1,手动创建了APPCNTR,WRKLGHT,WLREPORT数据库,并将WRKLGHT的模式设置为WRKSCHM,将WLREPORT设置为WLRESCHM。 我遵循此http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fdeploy%2Fc_deploy_custom_war_file_to_app_server.html,手动配置WebSphere Application Server for DB2。 遵循http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fdeploy%2Fc_deploy_custom_war_file_to_app_server.html来手动配置WebSphere Application Server并进行部署。 如果我错过任何配置,请帮助我。

1 个答案:

答案 0 :(得分:1)

您尚未提供有关您的环境的详细信息(Worklight版本,WAS配置文件,数据库),因此很难确切地指出问题所在;我的回答是基于某些假设,例如您正在使用DB2。

仔细查看错误:

  • WRKSCHM 是Worklight Server尝试通过JPA访问的架构名称
  • CLUSTER_SYNC 是'WRKLGHT'数据库中的表格

此错误可能是由于表未正确创建(DB2安装过程不完整),也可能是模式名称不匹配(WAS数据源设置不正确)造成的。

请在您的环境中验证以下内容:

DB2安装程序
确保为Worklight正确配置了DB2;验证是否已创建必要的数据库(Worklight Server为'WRKLGHT',Worklight报告功能为'WLREPORT',Worklight应用程序中心为'APPCNTR')。以下文档可能对您有用:

DB2架构配置
确保您的WAS配置正确定义了您在上述步骤中使用的相应架构名称;模式名称使用​​ currentSchema 属性传递给JDBC驱动程序。以下文档也可能有所帮助:

我希望这可以帮助您解决这个问题。