2015-02-16 3 views
0

Я хотел бы добавить функцию mq в Websphere Liberty 8.5.5, но я получаю ClassNotFoundException: com.ibm.msg.client.commonservices.componentmanager.Component. Я проверил множество сайтов, описывающих этот процесс, но я застрял в этой ошибке.Webphere Liberty Profile 8.5.5 - Конфигурация wmqJmsClient (MQ JMS) при запуске

Видимо включение этой функции должен быть достаточно прост:

server.xml.

Все перечисленные ниже функции установлены корректно при установке команды диспетчера функций.

<featureManager> 
     <feature>jsp-2.2</feature> 
     <feature>jndi-1.0</feature> 
     <feature>servlet-3.1</feature> 
     <feature>jdbc-4.0</feature> 
     <feature>localConnector-1.0</feature> 
     <feature>jaxb-2.2</feature> 
     <feature>jaxws-2.2</feature> 
     <feature>jaxrs-1.1</feature> 
     <feature>jpa-2.0</feature> 
     <feature>jca-1.6</feature> 
     <feature>javaMail-1.5</feature> 
     <feature>jdbc-4.1</feature> 
     <feature>appSecurity-2.0</feature> 
     <feature>ldapRegistry-3.0</feature> 
     <feature>jmsMdb-3.1</feature> 
     <feature>wmqJmsClient-1.1</feature> 
    </featureManager> 

    <!--*********** 
     * JMS * 
     ***********--> 
    <variable name="wmqJmsClient.rar.location" value="C:/IBM/wlp/extra-lib/connectors/wmq.jmsra.rar"/> 
    <jmsQueueConnectionFactory id="jms-queue-factory" jndiName="jms/queue-factory"> 
     <properties.wmqJms channel="CHANNEL_TEST1" hostName="somehost.es" port="1414" queueManager="SOME_QUEUE_MANAGER_1"/> 
    </jmsQueueConnectionFactory> 

    <jmsQueue id="TEST" jndiName="jms/queue-test"> 
     <properties.wmqJms baseQueueName="TEST"/> 
    </jmsQueue> 

    <jmsActivationSpec id="as/test"> 
     <properties.wmqJms destinationRef="TEST" destinationType="javax.jms.Queue" queueManager="SOME_QUEUE_MANAGER_1"/> 
    </jmsActivationSpec> 

Когда wmq.jmsra.rar (ссылка в переменной наклейке) является почтовый файл я получаю следующее сообщение об ошибке в messages.log:

[16/02/15 12:55:55:696 CET] 00000012 LogService-88-com.ibm.ws.jca      
E CWWKE0701E: [com.ibm.ws.jca.bundleResourceAdapter(234)] The activate method has thrown an exception Bundle:com.ibm.ws.jca(id=88) java.lang.NoClassDefFoundError: com/ibm/msg/client/commonservices/componentmanager/Component 
    ... 
    ... 
    Caused by: java.lang.ClassNotFoundException: com.ibm.msg.client.commonservices.componentmanager.Component 
     at com.ibm.ws.classloading.internal.AppClassLoader.findClassCommonLibraryClassLoaders(AppClassLoader.java:424) 
     at com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppClassLoader.java:257) 
     at java.lang.ClassLoader.loadClass(Unknown Source) 
     at com.ibm.ws.classloading.internal.AppClassLoader.findOrDelegateLoadClass(AppClassLoader.java:402) 
     at com.ibm.ws.classloading.internal.AppClassLoader.loadClass(AppClassLoader.java:373) 
     at java.lang.ClassLoader.loadClass(Unknown Source) 
     ... 200 more 

В качестве альтернативы я извлеченное содержимое WMQ .jmsra.rar. Тогда, кажется, как будто он не мог установить некоторые свойства в качестве членов класса com.ibm.mq.connector.ResourceAdapterImpl (или его суперкласса com.ibm.mq.connector.ResourceAdapterConfiguration):

[WARN] J2CA8501E: Property startupRetryInterval of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property startupRetryCount of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property nativeLibraryPath of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property startupRetryInterval of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property startupRetryCount of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property nativeLibraryPath of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property startupRetryInterval of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property startupRetryCount of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 
[WARN] J2CA8501E: Property nativeLibraryPath of configuration element wmqJmsClient cannot be set because it is not found on the class com.ibm.mq.connector.ResourceAdapterImpl. 

я получил wmq.jmsra.rar от 8.0 установки Websphere. Может быть, это не поддерживается 8.5.5? Где я могу получить действительный разъем?

ответ

2

Проверьте эти ссылки для подключения Liberty к WMQ. Особенно проверьте вторую ссылку, как получить адаптер ресурсов WMQ для Liberty. Я предполагаю, что вы установили как профиль WebSphere Application Server Liberty и расширенное содержаниедля профиля Свободы

+0

Спасибо! Я получил правильный адаптер ресурсов из вашей второй ссылки, и он работает как шарм. – codependent

Смежные вопросы