Tuesday, April 19, 2011

VerifyError in Websphere

When deploying my application in Websphere 7.0 I got the following error. It is somehow related to class loading.
I could resolved the comflict by removeing the jta.jar file from the dependencies of my war file.
Caused by: java.lang.VerifyError: com/ibm/websphere/uow/UOWSynchronizationRegistry.registerInterposedSynchronization(Ljavax/tranhttp://www.blogger.com/img/blank.gifsaction/Synchronization;)V
 at org.springframework.transaction.jta.WebSphereUowTransactionManager$UOWActionAdapter.run(WebSphereUowTransactionManager.java:356)
 at com.ibm.ws.uow.UOWManagerImpl.runUnderNewUOW(UOWManagerImpl.java:1067)
 ... 38 more


Thanks to Erik-Berndt Scheper


The basic problem is that you should not provide classes that are already provided by Websphere.
The basically remove all "javax" package classes from you war.

No comments:

Post a Comment