We essentially have an app context loaded by the MessageDispatcherServlet that does the following:
The MyWebServiceImpl looks like this:
As a result of the @MyCustomAnnotation, the MyWebServiceImpl will be JDK proxied. Because of this the @Endpoint is not picked up. If we remove the custom aspect the @Endpoint is indeed picked up.
For now, I have added the following to the app context as a workaround:
Note that this seems to be similar to