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.
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.
sh profileSetup.sh -Dprofile=<profile>
).sh api-manager.sh -Dprofile=<profile>
).You can follow the recommended way mentioned in WSO2 documentation[1].