我正在尝试WSO2AM的升级过程,因此我在新机上部署了1.10.0版,创建并发布了一个简单的API(一种POST方法),然后按照here所述的升级说明进行操作。 / p>
但是,每当我收到以下错误时,按照给定的顺序启动2.1.0(在链接中,“将API管理器升级到2.1.0”,步骤4b):
[2017-04-02 16:53:33,051] ERROR - ClassMediatorFactory Error loading class : org.wso2.carbon.apimgt.usage.publisher.APIMgtResponseHandler - Class not found
java.lang.ClassNotFoundException: org.wso2.carbon.apimgt.usage.publisher.APIMgtResponseHandler cannot be found by synapse-core_2.1.7.wso2v10
<long stack trace here, let me know if it's of any value>
[2017-04-02 16:53:33,056] ERROR - ApiDeployer API deployment from the file : /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : Failed.
org.apache.synapse.SynapseException: Error loading class : org.wso2.carbon.apimgt.usage.publisher.APIMgtResponseHandler - Class not found
<long stack trace here, let me know if it's of any value>
[2017-04-02 16:53:33,062] ERROR - AbstractSynapseArtifactDeployer Deployment of the Synapse Artifact from file : /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : Failed!
org.apache.synapse.deployers.SynapseArtifactDeploymentException: API deployment from the file : /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : Failed.
<long stack trace here, let me know if it's of any value>
[2017-04-02 16:53:33,067] INFO - AbstractSynapseArtifactDeployer The file has been backed up into : NO_BACKUP_ON_WORKER.INFO
[2017-04-02 16:53:33,067] ERROR - AbstractSynapseArtifactDeployer Deployment of synapse artifact failed. Error reading /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : API deployment from the file : /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : Failed.
org.apache.axis2.deployment.DeploymentException: API deployment from the file : /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : Failed.
<long stack trace here, let me know if it's of any value>
Caused by: org.apache.synapse.deployers.SynapseArtifactDeploymentException: API deployment from the file : /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : Failed.
<long stack trace here, let me know if it's of any value>
[2017-04-02 16:53:33,083] INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: API deployment from the file : /home/gabel/wso2am-2.1.0/repository/deployment/server/synapse-configs/default/api/admin--VPP_REST_v1.0.xml : Failed.
当然,当我按照给定的顺序执行所有命令并转到发布者时,名为VPP_REST的API不存在。我错过了什么?
系统:
答案 0 :(得分:0)
运行步骤5中给出的apim200_to_apim210_gateway_artifact_migrator.sh脚本,然后执行 4b 步骤。 (因此,它将执行需要在数据库迁移之前在synapse中进行的类名迁移)