微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Synapse-core_2.1.7.wso2v182 找不到 HashiCorpVaultLookupXPathFunctionProvider

如何解决Synapse-core_2.1.7.wso2v182 找不到 HashiCorpVaultLookupXPathFunctionProvider

我目前正在使用 wso2 集成工作室 8.0.0 开发一个服务和集成项目,在我的本地集成工作室运行时和本地 docker 引擎中都可以正常工作。但是,当我构建我的 docker 镜像将其推送到 Kubernetes 集群时,pod 引发错误

WARN {XpathExtensionUtil} - 初始化 Synapse Xpath 时出错 扩展提供程序 java.lang.classNotFoundException: org.wso2.micro.integrator.mediation.security.vault.external.hashicorp.HashiCorpVaultLookupXPathFunctionProvider 无法通过 synapse-core_2.1.7.wso2v182 找到

我团队中的其他开发人员在他们的集成项目中没有遇到此错误。我们能找到的唯一区别是集成工作室的版本。 为了修复这个错误,我将 org.wso2.micro.integrator.mediation.security jar 文件放在我的 docker 导出器库文件夹中。将我的 docker 镜像部署到集群后,Pod 将错误更改为

java.lang.abstractmethod”用于 axis2SynapseEnvironment.setXpathVariableExtensions.

我从github检查了源代码,但似乎这不是一个抽象方法。但是,它是 apache 文档中的一个摘要。我正在尝试解决这个问题,但无法解决,现在我的任务被阻止了好几天。 如果您能指导我解决这个问题,我将不胜感激。集成工作室在构建时从哪个路径解决突触依赖?应该使用哪个版本的突触核心来解决这个问题?

解决方法

将 docker 基础镜像更改为 <div class="question" style="display: block;"> <h5>Question 1</h5> <div class="sspbar"><div class="sspcounter" style="width: 10%;" data-progress-width="NaN"></div></div> <a class="answer" href="#">Answer 1</a> <a class="answer" href="#">Answer 2</a> </div> <div class="question ans-1"> <h5>Question 2 (If Answer 1)</h5> <div class="sspbar"><div class="sspcounter" style="width: 66.6667%;" data-progress-width="NaN"></div></div> <a class="answer" href="#">Answer 3</a> <a class="answer" href="#">Answer 4</a> </div> <div class="question ans-2"> <h5>Question 2 (If Answer 2)</h5> <div class="sspbar"><div class="sspcounter" style="width: 66.6667%;" data-progress-width="NaN"></div></div> <a class="answer" href="#">Answer 5</a> <a class="answer" href="#">Answer 6</a> </div> <div class="question ans-3"> <h5>Question 3</h5> <div class="sspbar"><div class="sspcounter" style="width: 100%;" data-progress-width="NaN"></div></div> <a class="final" href="https://google.com/">Link 1</a> <a class="final" href="https://yahoo.com/>Link 2</a> </div> <div class="question ans-4"> <h5>Question 3</h5> <div class="sspbar"><div class="sspcounter" style="width: 100%;" data-progress-width="NaN"></div></div> <a class="final" href="https://google.com/">Link 4</a> <a class="final" href="https://yahoo.com/>Link 5</a> <a class="final" href="https://bing.com/>Link 6</a> </div> <div class="question ans-5"> <h5>Question 3</h5> <div class="sspbar"><div class="sspcounter" style="width: 100%;" data-progress-width="NaN"></div></div> <a class="final" href="https://google.com/">Link 7</a> <a class="final" href="https://yahoo.com/>Link 8</a> </div> <div class="question ans-6"> <h5>Question 3 </h5> <div class="sspbar"><div class="sspcounter" style="width: 100%;" data-progress-width="NaN"></div></div> <a class="final" href="https://google.com/">Link 9</a> <a class="final" href="https://yahoo.com/>Link 10</a> <a class="final" href="https://bing.com/>Link 11</a> </div> </div></code> 。似乎您正在 Docker 容器中使用 Micro Integrator 1.2.0 运行时,并注意该功能在 1.2.0 GA 版本中不可用。请参阅documentation

请注意,Integration Studio v8.0.0 使用 wso2/wso2mi:4.0.0,Integration Studio v7.1.0v7.2.0 使用 wso2/wso2mi:4.0.0 作为 Docker 基础映像。

,

感谢您澄清突触核心版本和微积分器版本之间的关系。我在集成工作室中将 docker 导出器配置为 wso2mi4.0.0,但是我发现它在我的 jenkinsfile 中被静态配置为 1.2.0(如您所述)。在更新 jenkinsfile 以使用我在集成工作室中的 docker 导出器文件中的基本映像配置后,我成功部署了 pod。非常感谢您的帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。