Showing posts with label websphere commerce. Show all posts
Showing posts with label websphere commerce. Show all posts

Monday, January 19, 2015

Websphere Commerce Deployed EAR version

From deployed ear file wcbd-deploy-info.properties, we can figure out the current Websphere commerce deployment package installed on the server. 
The location of this file would be under the deployed EAR


This file has a number of other informations related to the deployment

Here is a sample wcbd-deploy-info.properties

#Fri, 16 Jan 2015 05:19:54 +0000

build.label=2015-01-16_03-47-05_17
build.date=2015/01/16
wcbd.version=101129asup
target.env=uat
connector.module.list=
ejb.module.list=Payments-Plugin-PayPal,Payments-Plugin-PayPoint
existing.web.module.list=Stores,LOBTools
new.web.module.list=
context.root.mapping.list=
partial.app.zip.includes=
partial.app.zip.excludes=
was.host.list=SERVER NAME
db.type=db2
db.name=DB SERVER NAME
db.schema.name=DB SCHEMA NAME
run.dataload.sql.common=false
run.dataload.sql.target=false
run.dataload.xml.common=false
run.dataload.xml.target=false
run.dataload.acug.common=false
run.dataload.acug.target=false
run.dataload.acp.common=true
run.dataload.acp.target=true
run.dataload.acpnls.common=false
run.dataload.acpnls.target=false
wsadmin.deploy.script.file=/usr/WebSphere/CommerceServer70/deployments/jenkins/wcbd-deploy-server-2015-01-16_03-47-05_17/scripts/wcbd-wsadmin.py

rollout.update=true

Tuesday, May 20, 2014

Retrieveing Websphere Commerce Merchant Key

Here is a snippet of code to retrieve Merchant key in websphere commerce 7
final com.ibm.commerce.security.keys.WCKey keyName = com.ibm.commerce.security.keys.WCKeyRegistry.getInstance().getKey("MerchantKey");
final String merchantKey = keyName.getValueAsString();
System.out.println("merchantKey= "+merchantKey);

Wednesday, January 1, 2014

ADMA0010E: A Validation error occurred in task Selecting virtual hosts for Web modules

If your come across the following error while deploying a web application to websphere
ADMA0010E: A Validation error occurred in task Selecting virtual hosts for Web modules
Then the issue would be your might be missing the following file in your web archive (war)
ibm-web-bnd.xml
ibm-web-ext.xml 
Ensure that you have those files present in the archive and the redploy the application. 
I have come across this error while deploying a new web module to Websphere commerce server using wcbd scripts.

Here is the complete error I have seen in my wcbd wasadmin target 
wcbd.wsadmin.helper:
   [echoNL] Running wsadmin on localhost with /usr/WebSphere/AppServer70/profiles/wcbd/dist/server/wcbd-deploy-server-RELEASE-Rel1-BUILD-2013-12-31_04-02-20-252/scripts/wcbd-wsadmin.py.
  [wsadmin] profileName=template registry=/usr/WebSphere/AppServer70/properties/profileRegistry.xml
  [wsadmin] profileHome=/usr/WebSphere/AppServer70/profiles/template
  [wsadmin] WASX7209I: Connected to process "dmgr" on node templateCellManager01 using SOAP connector;  The type of process is: DeploymentManager
  [wsadmin] WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[WC_template, /usr/WebSphere/AppServer70/profiles/wcbd/dist/server/wcbd-deploy-server-RELEASE-Rel1-BUILD-2013-12-31_04-02-20-252/scripts, /usr/WebSphere/AppServer70/profiles/wcbd/dist/server/wcbd-deploy-server-RELEASE-Rel1-BUILD-2013-12-31_04-02-20-252/working/module,  , TmplGenericPaymentPlugin,WebSphereCommerceServerExtensionsData, WebSphere Commerce DB2 DataSource template, TmplPenguin,  , /usr/WebSphere/AppServer70/profiles/wcbd/dist/server/wcbd-deploy-server-RELEASE-Rel1-BUILD-2013-12-31_04-02-20-252/working/partialapp.zip, false, 300,  , false,  ,  ,  ,  , true, false]"
  [wsadmin] Deploying Web module TmplPenguin.war to WC_template.
  [wsadmin] Started: 2013/12/31 07:07:18
  [wsadmin] WASX7327I: Contents of was.policy file:
  [wsadmin]  //
  [wsadmin] // Template policy file for enterprise application.
  [wsadmin] // Extra permissions can be added if required by the enterprise application.
  [wsadmin] //
  [wsadmin] // NOTE: Syntax errors in the policy files will cause the enterprise application FAIL to start.
  [wsadmin] //       Extreme care should be taken when editing these policy files. It is advised to use
  [wsadmin] //       the policytool provided by the JDK for editing the policy files
  [wsadmin] //       (WAS_HOME/java/jre/bin/policytool). 
  [wsadmin] //
  [wsadmin] 
  [wsadmin] grant codeBase "file:${application}" {
  [wsadmin] };
  [wsadmin] 
  [wsadmin] grant codeBase "file:${jars}" {
  [wsadmin] };
  [wsadmin] 
  [wsadmin] grant codeBase "file:${connectorComponent}" {
  [wsadmin] };
  [wsadmin] 
  [wsadmin] grant codeBase "file:${webComponent}" {
  [wsadmin] };
  [wsadmin] 
  [wsadmin] grant codeBase "file:${ejbComponent}" {
  [wsadmin] };
  [wsadmin] 
  [wsadmin] 
  [wsadmin] WASX7017E: Exception received while running file "/usr/WebSphere/AppServer70/profiles/wcbd/dist/server/wcbd-deploy-server-RELEASE-Rel1-BUILD-2013-12-31_04-02-20-252/scripts/wcbd-wsadmin.py"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7109E: Insufficient data for install task "MapWebModToVH
  [wsadmin] 
  [wsadmin] ADMA0010E: A Validation error occurred in task Selecting virtual hosts for Web modules. A virtual host is not specified for Web module TmplPenguin with URI TmplPenguin.war,WEB-INF/web.xml."
  [wsadmin]