Friday, September 2, 2011

java.lang.NoSuchMethodError: com/ibm/j2ca/base/WBIResourceAdapterMetadata (Errors & Solutions #22)

Error

[8/31/11 18:16:53:290 PDT] 00000053 SystemErr R Caused by: java.lang.NoSuchMethodError: com/ibm/j2ca/base/WBIResourceAdapterMetadata.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
at com.ibm.j2ca.jdbc.JDBCResourceAdapter.getResourceAdapterMetadata(JDBCResourceAdapter.java:92)
at com.ibm.j2ca.extension.logging.LogUtils.(LogUtils.java:197)
at com.ibm.j2ca.extension.logging.LogUtils.(LogUtils.java:269)
at com.ibm.j2ca.extension.logging.LogUtils.(LogUtils.java:286)
at com.ibm.j2ca.base.WBIResourceAdapter.start(WBIResourceAdapter.java:165)
at com.ibm.j2ca.jdbc.JDBCResourceAdapter.start(JDBCResourceAdapter.java:53)
at com.ibm.ejs.j2c.RAWrapperImpl.startRA(RAWrapperImpl.java:601)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA(RALifeCycleManagerImpl.java:1101)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.resourceProviderEvent(RALifeCycleManagerImpl.java:852)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResourceProvider(ResourceMgrImpl.java:1099)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResource(ResourceMgrImpl.java:1004)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResources(ResourceMgrImpl.java:957)
at com.ibm.ws.runtime.component.ResourceMgrImpl.loadResources(ResourceMgrImpl.java:756)
at com.ibm.ws.runtime.component.ResourceMgrImpl.reload(ResourceMgrImpl.java:666)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1453)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4165)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4263)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1466)


Solution

This error happens when incompatible versions of IBM WebSphere adpater are deployed together, for my case it was JDBC (6.2.0.2_IF_01) and IMS adapter (10.3.0), the solution is to use compatible versions, for me i used the same version of JDBC adapter and IMS Adpater version 10.3.2 (packaged with WID 7) or 10.4.0

--OLD POST --
This was a tough error, i didn't find a clue for the solution anywhere on the web, but anyway i found that this error happens because of two settings in the Adapter custom properties:



Change the following settings

Resources > Resource adapters > IBM WebSphere Adapter for JDBC > Custom properties


From

traceNumberOfFiles: 1
logNumberOfFiles: 1

To

traceNumberOfFiles: 0
logNumberOfFiles: 0


Note: if you need adapter tracing information you can add the following trace level string ( com.ibm.j2ca.*=finest ) to the server trace settings
------------------------------




No comments:

Post a Comment