英文:
wso2: updating jar files in server to latest versions
问题
我正在尝试更新(并替换)我的“<MI_HOME>/wso2/plugins文件夹”中的一些jar文件到最新版本,因为它们存在一些漏洞。当手动替换(删除现有的jar并添加新的jar)一开始的几个jar时,服务器正常运行,但尝试替换一些jar时,它不起作用。
例如,我想要将com.google.gson_2.8.5.jar替换为com.google.gson_2.8.9.jar。在将其替换到wso2/lib文件夹时,它可以正常工作,但在添加到wso2/components/plugins时,我收到以下错误消息:
ERROR {SynapseHandlersLoader} - Error creating Handler for class name : org.wso2.micro.integrator.dataservices.odata.endpoint.ODataPassThroughHandler java.lang.ClassNotFoundException: org.wso2.micro.integrator.dataservices.odata.endpoint.ODataPassThroughHandler无法被synapse-core_2.1.7.wso2v227找到
和
FATAL {ServiceBusInitializer} - 无法初始化ESB... org.apache.synapse.SynapseException: Error creating Handler for class name : org.wso2.micro.integrator.dataservices.odata.endpoint.ODataPassThroughHandler
对于其他jar文件,如'com.google.guava_32.0.0-jre.jar',情况也是一样的。我甚至尝试编辑了wso2/components/artifacts.xml文件,但没有成功。
我在想,也许我的方法有问题,或者我漏掉了什么。
英文:
I'm trying to update (and replace) some of the jar files in my '<MI_HOME>/wso2/plugins folder' to the latest version since they have some vulnerabilities. When manually replacing (deleting the existing jars and adding the new ones) initially for few jars the server is running fine, but when trying for some jars it is not working.
For eg; I wanted to replace the com.google.gson_2.8.5.jar with the com.google.gson_2.8.9.jar. While replacing it in the wso2/lib folder it works, but when adding to wso2/components/plugins I get an error as follows :
ERROR {SynapseHandlersLoader} - Error creating Handler for class name : org.wso2.micro.integrator.dataservices.odata.endpoint.ODataPassThroughHandler java.lang.ClassNotFoundException: org.wso2.micro.integrator.dataservices.odata.endpoint.ODataPassThroughHandler cannot be found by synapse-core_2.1.7.wso2v227
and
FATAL {ServiceBusInitializer} - Couldn't initialize the ESB... org.apache.synapse.SynapseException: Error creating Handler for class name : org.wso2.micro.integrator.dataservices.odata.endpoint.ODataPassThroughHandler
The same goes for other jars like the 'com.google.guava_32.0.0-jre.jar'. I even tried editing the wso2/components/artifacts.xml file too, but to no avail.
I was wondering if my approach was wrong or if i'm missing something.
答案1
得分: 1
你不能这样更新 WSO2 的依赖项。一种选择是再次从源代码构建产品,或者您可以迁移到较新的 WSO2 产品版本,其中问题已经得到修复。
英文:
You can't update WSO2 dependencies like that. One option is the build the product again from the source or you can migrate to a newer WSO2 product version where the issues are fixed.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论