Friday, 31 October 2014

Reset Websphere Commerce Toolkit

IBM WCS Toolkit can be reset using the below steps

SetupPlugins.bat- This command creates the expected WebSphere Commerce WebSphere Application Server profile.
restoreDefault.bat - This script will delete WCS test server was profile, database and workspace and re-create them.
resetdb.bat - This script will reset the Derby database to bootstrap configuration(only works for  Derby).
resetstores.bat -  This script resets the Stores Web module in your workspace to its bootstrap configuration.
setdbtype.bat – setdbtype cloudscape . To change the database type to DB2, Oracle, or back to Apache Derby, run the setdbtype command. If you switch development databases, you must re-enable any features that you are using from WebSphere Commerce feature packs.
Updatedb.bat- Bring back to old fix pack level.
If you want to switch development databases after you install the latest fix pack, you must update to the new database manually by running the updatedb command. The new database is restored to bootstrap state after you switch databases.

If you switch development databases, you must re-enable any features that you are using from WebSphere Commerce feature packs
For e.g.: Enabling "store-enhancements" features  will enable foundations and management center features  as well

c:\ibm\WCDE_ENT70\bin>enableFeature.bat -DfeatureName=store-enhancements
Note: Any features that are enabled before you run the setdbtype command must be re-enabled.

Sunday, 26 October 2014

Steps to Integrate Java Decompiler (Jad) with Websphere Commerce

1.Download Jad.exe( ) and extract the content to the desired folder.  For example: C:\Jad
2.Download the Jadclipse plugin (search for the latest versions of the download for eg: and keep that under C:\Program Files\IBM\SDP\plugins
3. Now go to “Windows->Preferences->Java->Jadclipse” and configure “Path to decompiler” as C:\Jad\jad.exe
4. Then go to “Windows->Preferences->General->Editors->File Associations, highlight “.class” and set the default option with jadclipse.
5. Open/Restart Toolkit  so that the plugin take effect.

Thursday, 23 October 2014

OutOfMemory Exception while publish / start server /store publish in Websphere Commerce

We need to increase heap memory inured to handle this and we  can increase heap memory by  two either of two methods

1.      Directly updating the server.xml file
2.      Increase heap memory from WAS Admin console

1.Directly updating the server.xml file

1.      C:\IBM\WCDE_ENT70_New\wasprofile\config\cells\localhost\nodes\localhost\servers\server1
2.      Search for initialHeapSize and maximumHeapSize and change as below

2.Increase heap memory from WAS Admin console

1. Right click on the application server select the administration option and then the  administration console.
2. Now select the websphere application servers option from the servers menu on the left hand side.  This will show the servers available there should only be one called server1, click on this.
3. Look down the right hand side till you see the Java and process management option, click this and several options will appear.  Click on the Java and process definition option.
4. Click on the top option the Java Virtual machine
5. In the Java virtual machine settings we now want to change the settings for the Initial Heap Size and for the Maximum heap Settings as below
6.Once you have made the change, save it by either clicking apply or OK.  The system will now ask you to save the change, do that and restart the server by doing a stop and start so it now has the new settings.