We tried upgrading our application to version 4.1 of axon.
When we tried running the application we received an exception (stacktrace attached).
Digging a bit deeper we found that we got a ClassNotFoundException for the org.axonframework.axonserver.connector.command.AxonServerCommandBus
probably caused by the @ConditionalOnMissingBean on the commandBus Bean in AxonAutoConfiguration. (the AxonServerCommandBus is referenced here)
Currently we do not use AxonServer, so we excluded the axon-server-connector dependency. Including the dependency resolves the problem.
Are we supposed to include the axon-server-connector dependency on our classpath even when not using AxonServer or is unexpected behaviour?
exception.log (5.75 KB)