Announcement Announcement Module
Collapse
No announcement yet.
TypeMismatchNamingException with UOWManager Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • TypeMismatchNamingException with UOWManager

    Im using the new <tx:jta-transaction-manager/> tag with Spring 2.5.4 and WebSphere 6.0.2.19.

    When I run, I get the following error:
    Code:
    org.springframework.jndi.TypeMismatchNamingException: Object of type [class com.ibm.ws.uow.UOWManagerImpl] available at JNDI location [java:comp/websphere/UOWManager] is not assignable to [com.ibm.wsspi.uow.UOWManager]
    	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:180)
    	at org.springframework.transaction.jta.WebSphereUowTransactionManager.lookupUowManager(WebSphereUowTransactionManager.java:168)
    	... 108 more
    Anyone ever see this before?

    Thanks,
    Christopher Pierce

  • #2
    Solved my own problem.

    The problem was that we are using the "PARENT_LAST" classloader in WebSphere. (We do this in order to use the MyFaces component library).

    We also had the Spring provided "websphere_uow_api.jar" file in WEB-INF/lib so, because of the PARENT_LAST, it was using the classes from this jar instead of the WebSphere library jars.

    The fix was to simply remove the "websphere_uow_api.jar" file from our project.

    Comment

    Working...
    X