I would like to create a single .war that contains both a web based FORM login for a web GUI AND BASIC authentication (in this case, for a web service interface.)
/index.html (unsecured welcome page)
+---/interactive (folder containing web pages using auth-method=FORM)
+---/service (servlet mapping for web service using auth-method=BASIC)
I don't see a way to configure such a setup in the web.xml file. My application is accesible through a web client (web pages JSP) and a Jax-RS web service. I want to use form auth for the web app and basic token barer oauth for the web service, but I don't want to package my application in two an ear.
Is that possible?