Unable to successfully deploy a Spring XML DSL Camel app

Solution Unverified - Updated -

Issue

  • Camel app was using Spring-WS, so the servlet class was as needed for that type of launch. There is no Spring-ws involved, so using org.springframework.web.context.ContextLoaderListener. I can run it as a fat war, but haven't been able to get it to run using FUSE modules.
<bean class="com.ibm.mq.jms.MQQueueConnectionFactory" id="springMQConnectionFactory">
<property name="transportType" value="1"/>
<property name="queueManager" value="MQTEST"/>
<property name="connectionNameList" value="localhost(1414)"/>
<property name="channel" value="testchannel"/>
</bean>
<bean class="org.apache.camel.component.jms.JmsComponent" id="ibmmq">
<property name="connectionFactory" ref="springMQConnectionFactory"/>
</bean>
  • In logs we get
Caused by: java.lang.IllegalStateException: Cannot convert value of type 'com.ibm.mq.jms.MQQueueConnectionFactory' to required type 'javax.jms.ConnectionFactory' for property 'connectionFactory': no matching editors or conversion strategy found
    at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:307)
    at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:588)
    ... 28 more
  • Also WARN messages in log file
10:30:57,537 WARN  [org.jboss.modules.define] (MSC service thread 1-2) Failed to define class org.springframework.web.servlet.tags.form.HiddenInputTag in Module "org.springframework.ws" version 4.3.25.RELEASE from local module loader @73f792cf (finder: local module finder @2ed94a8b (roots: /home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/fuse,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.3.CP,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/base,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/add-ons/keycloak)): java.lang.NoClassDefFoundError: Failed to link org/springframework/web/servlet/tags/form/HiddenInputTag (Module "org.springframework.ws" version 4.3.25.RELEASE from local module loader @73f792cf (finder: local module finder @2ed94a8b (roots: /home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/fuse,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.3.CP,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/base,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/add-ons/keycloak))): Failed to link org/springframework/web/servlet/tags/form/AbstractHtmlElementTag (Module "org.springframework.ws" version 4.3.25.RELEASE from local module loader @73f792cf (finder: local module finder @2ed94a8b (roots: /home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/fuse,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.3.CP,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/layers/base,/home/cpandey/NotBackedUp/Development/RedHat_EAP/jboss-eap-7.2/modules/system/add-ons/keycloak))): javax/servlet/jsp/tagext/DynamicAttributes
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:519)
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
    at org.jboss.modules.Module.loadModuleClass(Module.java:731)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:519)
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
    at org.jboss.modules.Module.loadModuleClass(Module.java:731)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)

Environment

  • Red Hat Fuse
    • 7.5.0
    • Fuse On EAP

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