Can we run JBossWS-CXF and a custom CXF?

Solution Verified - Updated -

Issue

  • We are using JBoss EAP 5.1 with the JBoss version of CXF installed. This is working fine. However, we have one application that requires a newer version of CXF.
  • How can we isolate this into a different classloader so that both versions of CXF can be used without conflict? Currently we are getting errors like this:
ERROR [org.springframework.web.context.ContextLoader] (main) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restContainer': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.List' for property 'serviceBeans'; nested exception is java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.