Sunday, 6 March 2016

Configure Test Environment URL in Websphere Commerce

In your project there could be a requirement to change the URL of existing test environment application / Or if it is the first time you are trying to configure a URL for websphere application. The url changes can be done in WAS admin console. But there are some more settings needed to be done based on your webserver type and if it is hosted locally or in a different machine. The webserver example that I have used below here is an IIS server hosted in different machine.

1. First make the necessary host name / port number changes in WAS admin console.
For ex: You might need your host name to look like www.test1.com. So accordingly you can add the entry in virtual hosts of deployment manager.
Got to -> WAS admin console -> Environment -> Virtual Hosts -> click on the virtual host of your environment -> Under Additional Properties, click Host Aliases.-> New -> Give the new host name for port number 80 and 443. -> Save.
Now this change has to be updated to the webserver plugin file. And this can be done by update plugin option just below the Virtual Hosts option. Click on it.

This option updates the plugin-cfg.xml file present in the path F:\IBM\WebSphere\AppServer\profiles\testProfile\config\cells\plugin-cfg.xml. (The path may vary based on your WCS installation path)

See the below note highlighted in red carefully - 

So this means if your IIS server is hosted in different machine then you need to copy the plugin XML change to the IIS server.
So copy the xml file from  F:\IBM\WebSphere\AppServer\profiles\...\config\cells\ path to ex: E:\Program Files\IBM\WebSphere\Plugins\config\webserver1 based on your webserver installation path.

And you will be able to hit the environment with your new URL!

More info : - http://www-01.ibm.com/support/docview.wss?uid=swg21216587

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.