如何解决manifest文件与b2bi软件不兼容的问题?

问题描述 投票:0回答:1

我需要在 Axway B2Bi 软件中实现一个 JMC 项目。我按照文档创建了组件类、信息类和清单文件。我在我的java代码中没有发现任何sintax问题,但是,不可能实现该代码。我认为问题可能与清单文件的组件与 b2bi 条件不兼容有关,但我不知道如何解决这个问题。

我的清单文件与此类似:

Manifest-Version: 1.0
Main-Class: com.axway.xib.samples.Sorter
Container-Version: 2.6-UP2023-10
Component-Version: 11.0.21
Class-Path: ../lib/commons-lang3-3.14.0.jar ../lib/development-kit-api-1.3.0_R117682.jar ../lib/development-kit-runtime-1.3.0_R117682.jar ../lib/development-kit-simulator-1.3.0_R117682.jar ../lib/commons-beanutils-1.9.4.jar ../lib/commons-collections4-4.4.jar ../lib/commons-logging-1.3.0.jar
Build-Jdk: 11.0.21

根据文档JMC,清单文件必须如下所示:

Manifest-Version: 1.0
Main-Class: com.axway.xib.samples.Sorter
Container-Version: x1.x2
Component-Version: y1.y2

Where:
 Main-Class is the name of the principle JMC class
 x1.x2 corresponds to the chosen API version
 y1.y2 corresponds to the actual component version you are currently developing
java manifest jmc b2b
1个回答
0
投票

您是否在清单末尾添加了空行? 清单末尾应该有一个空行。我通常加2。

就像这样添加并尝试一下。

Manifest-Version: 1.0
Main-Class: com.axway.xib.samples.Sorter
Container-Version: 3.7
Component-Version: 1.0

Empty lines in the end of manifest

© www.soinside.com 2019 - 2024. All rights reserved.