IBM Support

EJB module build fails in EJBDeploy phase while executing wcbd-build in WebSphere Commerce environment

Troubleshooting


Problem

Attempts to execute a wcbd-build in IBM WebSphere Commerce 7.0 results in a "java.lang.NoSuchFieldError" error while building EJB modules in IBM Rational Application Developer for WebSphere Software.

Symptom

While executing wcbd-build in WebSphere Commerce 7.0, the following errors are seen while building the EJB module (WebSphereCommerceServerExtensionsData):


The full error message is as follows:

java.lang.NoSuchFieldError:

com/ibm/datatools/internal/core/util/EngineeringOptionID.GLOBAL_VARIABLE

[wsejbdeploy]  at

com.ibm.datatools.db2.luw.ddl.LUWDdlGenerator$SingletonOptionDependency.

getSingletonObject(LUWDdlGenerator.java:2414)

[wsejbdeploy]  at

com.ibm.datatools.db2.luw.ddl.LUWDdlGenerator.getAllContainedDisplayable

ElementSetDepedency(LUWDdlGenerator.java:1602)

[wsejbdeploy]  at

com.ibm.datatools.db2.luw.ddl.LUWDdlGenerator.access$1(LUWDdlGenerator.j

ava:1601)  

[wsejbdeploy]  at    

com.ibm.datatools.db2.luw.ddl.LUWDdlGenerator$OptionDependency.doDiscove

ry(LUWDdlGenerator.java:1971)

[wsejbdeploy]  at

com.ibm.datatools.db2.luw.ddl.LUWDdlGenerator$OptionDependency.<init>(LU

WDdlGenerator.java:1875)

[wsejbdeploy]  at

com.ibm.datatools.db2.luw.ddl.LUWDdlGenerator.getOptions(LUWDdlGenerator

.java:1801)

[wsejbdeploy]  at

com.ibm.datatools.db2.luw.ddl.LUWDdlGenerator.getOptions(LUWDdlGenerator

.java:1782)

Cause

This is a known issue cause by two old data tool plugins that existed in "deploytools/itp/plugins/" directory.
Since a new version of the faulty data tools plugins were installed in WebSphere Application Server [7.0.0.13, 7.0.0.19] range:

  • com.ibm.datatools.core_3.0.101.v200811190853.jar
  • org.eclipse.datatools.modelbase.sql.query_1.0.1.v200811050430.jar

Resolving The Problem

Update WebSphere Application Server to at least 7.0.0.21 where this issue was fixed.
Note: After upgrading to WAS 7.0.0.21 you may need to clear the Eclipse OSGI cache as per instructions provided in the following technote:

http://www-01.ibm.com/support/docview.wss?uid=swg21382867

WORKAROUND:

Remove the old data tool plugins:

  1. Navigate to "<WAS install Dir>/deploytools/itp/plugins/" directory

  2. Back up the following jar files:
    • com.ibm.datatools.core_3.0.101.v200811190853.jar
    • org.eclipse.datatools.modelbase.sql.query_1.0.1.v200811050430.jar

  3. Remove the jar files from step #2 in the " <WAS install Dir>/deploytools/itp/plugins/" directory

  4. Navigate to "/opt/IBM/WebSphere/AppServer/deploytool/itp/configuration"

  5. Back up the "/configuration" directory

  6. Delete all the files and directories within "/configuration" directory

    Note: Except "config.ini" if present.

  7. Run wcbd-build again and verify the result.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"EJB Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5.5.1;7.5.5.2;7.5.5.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21468619