If you ever run into this error while deploying or redeploying your dbAdapter or when restarting the OSB AdminServer or managed servers:
Failed to initialize the application 'DbAdapter' due to error weblogic.application.ModuleException: weblogic.connector.exception.WLRAConfigurationException:
The stack trace looks something like this:
There are 1 nested errors: weblogic.descriptor.DescriptorException: Unmarshaller failed at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:161) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:287) at weblogic.application.descriptor.AbstractDescriptorLoader.getPlanMergedDescriptor(AbstractDescriptorLoader.java:593) at weblogic.application.descriptor.AbstractDescriptorLoader.getPlanMergedDescriptorBean(AbstractDescriptorLoader.java:548) at weblogic.connector.configuration.ConnectorDescriptor.getWeblogicConnectorBean(ConnectorDescriptor.java:332) at weblogic.connector.configuration.DDUtil.getRAInfo(DDUtil.java:132) at weblogic.connector.deploy.ConnectorModule.loadDescriptors(ConnectorModule.java:794) ......
You might want to recheck your osb_dbadapter.xml for validity, or the weblogic-ra.xml in other setups. Even if you didn’t modify it. In my case, the configproperty tag in the file was there multiple times for one datasource:
<variable> <name>ConnectionInstance_/eis/DB/BogusDB_JNDIName_13800278320830</name> <value>eis/DB/BogusDB</value> </variable> <variable> <name>ConfigProperty_dataSourceName_Value_13800278750590</name> <value>jdbc/BogusDB</value> </variable> <variable> <name>ConfigProperty_xADataSourceName_Value_13800279128421</name> <value>jdbc/BogusDB</value> </variable> <variable> <name>ConfigProperty_xADataSourceName_Value_13800281891200</name> <value></value> </variable>
As you see, one ConfigProperty was there twice and one was empty. Apparently this may happen without anyone touching the file when the OSB server crashes.
I removed the part with the blue textcolor and redeployed the dbAdapter succesfully.