OK, web.xml is being picked up now, but I get javax.ws.rs.ForbiddenException:
HTTP 403 Forbidden using:
configuration = new Configuration().randomHttpPort();
final Map<String, String> userMap = new HashMap<>();
userMap.put("tomcat", "password");
configuration.setUsers(userMap);
final Map<String, String> roleMap = new HashMap<>();
roleMap.put("my-role", "tomcat");
configuration.setRoles(roleMap);
container = new Container();
container.setup(configuration);
container.start();
container.deployClasspathAsWebApp("/project/", new File(
"src/main/webapp"));
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Using-basic-auth-with-tomee-embedded-tp4675786p4675873.html
Sent from the TomEE Users mailing list archive at Nabble.com.