Saturday, 30 January 2016

EJB Deploying error in QuickBuild

Courtesy: http://masteringwcs.blogspot.in/2013/03/ejb-deploying-error-in-quickbuild.html
EJB Deploying error in QuickBuild
   Error
[zip] Building zip: E:\working\compile\ejb\WebSphereCommerceServerExtensionsData.input.jar
[wsejbdeploy] EJB Deploy configuration directory: f:\IBM\WebSphere\AppServer\deploytool\itp\configuration/
[wsejbdeploy] framework search path: f:\IBM\WebSphere\AppServer\deploytool\itp\plugins
[wsejbdeploy] build: RAD7555-I20111019_1739
[wsejbdeploy] 30-Jan-2016 08:00:32 DDLGenerationOperation runDDL
[wsejbdeploy] SEVERE:
[wsejbdeploy] Throwable occurred: 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)

   

Cause

     This is a known issue cause by two old data tool plugins that existed in "deploytools/itp/plugins/" directory:
  • com.ibm.datatools.core_3.0.101.v200811190853.jar
  • org.eclipse.datatools.modelbase.sql.query_1.0.1.v200811050430.jar

  Resolving the problem

  1. Remove the old data tool plugins 
  • ​Navigate to "deploytools/itp/plugins/" directory
  • 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
  • Remove the jar files from step #2 in the "deploytools/itp/plugins/" directory
  • Navigate to "/opt/IBM/WebSphere/AppServer/deploytool/itp/configuration" 
  • Back up the "/configuration" directory
  • Delete all the files and directories within "/configuration" directory
  1. Note: Except "config.ini" if present. 
Run wcbd-build again and verify the result.