Skip to main content

Issues While Starting WAS Server

This happens when there is other application which is also using the same port 8880. To resolve the issue, we need to find which application is using the port 8880 through 'netstat' command in command prompt or update our WAS server to not use 8880.

We can update the WAS server through these steps:

1) Stop  WAS.

2) Browse to or search for the serverIndex.xml, for example, at "C:\WAS\AppServer\config\yourNode\nodes\yourNode\serverindex.xml"

3) Open the file and locate the following lines:
              endPointName="SOAP_CONNECTOR_ADDRESS">

4) Change "port 8880" to an available port


5) Save the serverindex.xml and restart WAS

Comments

Popular posts from this blog

How to read applied promotions codes

The below snippet will give you to read the promotions codes which are applied to order number, String orderId = "978593958"; OrderKey orderKey = new OrderKey(new Long(orderId)); PromotionArgumentSessionBeanPersistenceManager promoManager = new PromotionArgumentSessionBeanPersistenceManager(); PromotionArgument promArg = promoManager.load(orderKey); Iterator prmoExeRecds = promArg.getPromotionExecutionRecords(); while(prmoExeRecds.hasNext()) { PromotionExecutionRecord promotionExeecutionRecord = (PromotionExecutionRecord) prmoExeRecds.next(); Promotion promotion = promotionExeecutionRecord.getPromotion(); System.out.println("Name: " + promotion.getName()); System.out.println("Admin description: " + promotion.getDescription(commandContext.getLocale(), com.ibm.commerce.marketing.promotion.Description.SHOPPER_SHORT_DESC)); }

How to disable the access control policy

How to disable the access control policy: 1. Open wc-server.xml which is located in WCDE_ENT70\workspace\WC\xml\config\wc-server.xml 2. Search for "<Instance" tag 3. Add AccessControlUnitTest="true immediately after "<Instance " 4. Save the file 5. Restart the server After implementing this steps the server will not throw  "User does not have authority to execute Command/View" How to disable access control check in Commands: If you want to disable access control policy for a controller command then call setAccCheck(false) before calling execute. This method is set by the web controller to indicate whether an access control check is required for this command. For e.g OrderCreateCmd orderCreateCmd= (OrderCreateCmd ) CommandFactory.createCommand(OrderCreateCmd .NAME,   getStoreId())     orderCreateCmd.setAccCheck(false); orderCreateCmd.execute(); accessControlCheck(): This method performs a command level access control chec

How to do Email Configurations in Web sphere Commerce

Web sphere commerce allows to send email messages to customers by making use of the below mentioned steps. Create the JSP which will be used for generating contents of the email  For e.g.: SendEmail.jsp Create View for the JSP in Struts-Config-Ext.xml Make an Entry in Struts-Config-Ext.xml file for .jsp as below < action path='/SendEmailView' type='com.ibm.commerce.struts.BaseAction'>     < set-property property ='authenticate' value ='10001:1'/>      < set-property property ='https' value ='10001:1'/> < /action> < forward name="SendEmailView /10001/-3" path="/< location of JSP file >/ TestEmail.jsp" className="com.ibm.commerce.struts.ECActionForward">     < set-property property="implClassName"     value="com.ibm.commerce.messaging.viewcommands.MessagingViewCommandImpl"/>     < set-property property="int