My problem is that I want to use servlet 3.1 annotations and also want to make sure all requests to the appengine app are https. In order to secure the url I need to use web.xml link to docs. Now if I have both web.xml and servlet 3.1 annotations it's all fine when testing locally. However, when the same app is deployed to Google Cloud Platform AppEngine it fails to recognise the annotations. When deploying that app to GCP Appengine without web.xml annotations are than recognised.
Now the question is, can I have web.xml and annotation at the same time on the Appengine standard ? Am I missing something simple / obvious ?
Any help / push in a right direction is much appreciated.