Добро пожаловать в форум, Guest  >>   Войти | Регистрация | Поиск | Правила | В избранное | Подписаться
Все форумы / IBM DB2, WebSphere, IMS, U2, etc Новый топик    Ответить
 Добавление внешних jar к JavaCompute node – JavaClassLoader  [new]
Vincent Vega
Member

Откуда: Киев
Сообщений: 117
Пытаюсь добавить простую библиотеку к JavaCompute node, но при деплое всегда получаю ошибку о том, что невозможно найти класс.
Имеем простой поток:

MQ Input -> JavaCompute -> MQ Output

В свойствах JavaCompute указываю параметр "Java classloader service": TST.JAVA. Перед деплоем потока создаю конфигурируемый сервис TST.JAVA:

bash-3.00$ mqsireportproperties WBRK -c JavaClassLoader -o TST.JAVA -r
JavaClassLoader
TST.JAVA
includedDeployedJars='jvftplib.jar'
sharedJarPath='/home/esbadmin/tst.java'
BIP8071I: Successful command completion.
bash-3.00$



Далее пробую делать деплой потока и получаю такую ошибку:

Begin running task [Deploying [testjava.bar] to execution group [TestExec]]

BIP2087E: Broker WBRK was unable to process the internal configuration message.

The entire internal configuration message failed to be processed successfully.

Use the messages following this message to determine the reasons for the failure. If the problem cannot be resolved after reviewing these messages, contact your IBM Support center. Enabling service trace may help determine the cause of the failure.

BIP4041E: Execution group 'TestExec' received an invalid configuration message. See the following messages for details of the error.

The broker was asked to deploy a message flow which contained properties that were not recognized by the broker. This typically results from a message flow requiring a version or type of node that is not supported by the broker installation.

Check that the message flow is only using properties or nodes that are supported on the broker. Check that all necessary user-defined extensions are installed and that they are of a version that is compatible with the message flow.

BIP4157E: The user-defined node 'JC' could not be deployed. Details: java.lang.ClassNotFoundException: ua.com.tst.java.TestJava_JC

The node could not be deployed because an error in the node's 'onInitialize' method prevented the node from initializing.

Review the details given above. Report the error to the node's writer if you cannot correct the error yourself.

BIP4395E: Java exception: 'java.lang.ClassNotFoundException'; thrown from class name: 'java.net.URLClassLoader', method name: 'findClass', file: 'URLClassLoader.java', line: '421'

The message contains that data associated with a Java exception.

No user action required.

The task was unsuccessful: The deployment was unsuccessful. Check error messages above for explanation.


Как добавить jar файл к потоку?
MSB: 7
OS: AIX
5 янв 11, 18:19    [10036121]     Ответить | Цитировать Сообщить модератору
Все форумы / IBM DB2, WebSphere, IMS, U2, etc Ответить