Tuesday, June 10, 2014

WebSphere ESB 7.5.1 application already installed exception, and unisntall fails with ADMA5108E



Today I stumbled upon quirky behavior on WID local test environment.  I am using WebSphere ESB 7.5.1.1 and WID 7.5.1.2; I was unable to deploy one mediation module and it fails with below exception

CWSCA3062E: The {0} Service Component Architecture (SCA) module is already installed on the system.  SCA module name must be unique.

when I attempt to uninstall I get below exception like

ADMA5108E:  Application {0} cannot be uninstalled because it does not exists in the WebSphere Application Server configuration.  

As a troubleshooting process I searched all files, could not find where the SCA modules info got stored, finally got a hit
/profiles//config/cells//cell-core.xml 

above file has an entry


Stop the server and remove the entry which is creating the trouble, and restart the server and deploy the application. At the time of deploy I got few FFDC's about pre-existing SI Bus resources. Ideally we should remove the SI B resources which are associated with troubled application, and make an attempt to deploy application. However the good news is server was able to recover the exception of pre existing SIBus resources, and created new set and deployed application.

Thursday, May 8, 2014

WebSphere Integration Developer BOXMLSerializer writewithOptions

Hi;

The default BOXMLSerializer writes XML with spaces and tabs; to remove tabs/spaces you can use below code.

BOXMLSerializer bos = (BOXMLSerializer) ServiceManager.INSTANCE.locateService
("com/ibm/websphere/bo/BOXMLSerializer");

Map options = new HashMap(); options.put
(XMLResource.OPTION_FORMATTED, Boolean.FALSE);

bos.writeDataObjectWithOptions(dataObject, targetNamespace, element, options);