When I try to call create method on JAXRSServerFactoryBean for path that already exists, the first time I get the error:
Which is correct, because this path is already taken. But if I call the same method for the same path a second time, then no error occurs.
This happens due to the fact that when the server starts unsuccessfully, it is destroyed
And a little further in the destroy method, the path is removed
Because of what the next call оf the create method will be successful, which is not entirely correct.