wso2wso2-api-managerapi-manager

WSO2 API Manager 4.1.0 failed to start control-plane


I've downloaded the last version (4.1.0) of API Manager from the official website to upgrade an API manager 4.0.0 control-plane (distributed deployment) instance.

When I try to run the API manager with 'sh api-manager.sh' passing the '-Dprofile=control-plane' via command-line (like I do in 4.0.0 version), it always returns the following error 'Caused by: java.lang.ClassNotFoundException: org.apache.synapse.transport.passthru.PassThroughHttpSender cannot be found by axis2_1.6.1.wso2v80': error_1

(I've already tried to add the jar axis2-transport-tcp-1.0.0.jar to ../repository/components/droppins and it doesn´t work)

I've also tried to optimize the wsoam-4.1.0 installation for the profile I want to run (as suggested in the documentation), but in this situation a get a different error 'Caused by: java.io.FileNotFoundException: .../repository/deployment/server/synapse-configs/default/inbound-endpoints/WebSocketInboundEndpoint.xml (No such file or directory)': error_2

Does anyone come across these errors? Is this a bug? I can´t run an API Manager with the control-plane profile in 4.1.0 version.


Solution

  • The CNF errors are expected when you start a profile without doing optimization. I assume you ran the optimization on the same distribution you used to start the profile initially and got the second error you have mentioned. You need to use a completely new distribution to avoid these errors.

    1. Download and extract the product distribution.
    2. Run the profile optimization (sh profileSetup.sh -Dprofile=<profile>).
    3. Update the necessary configurations.
    4. Start the server in the relevant profile (sh api-manager.sh -Dprofile=<profile>).

    You can follow the recommended way mentioned in WSO2 documentation[1].

    [1] - https://apim.docs.wso2.com/en/latest/install-and-setup/setup/distributed-deployment/product-profiles/#starting-an-api-m-profile