Hello all, I'm developing an application using Karaf 2.1.2 on JBoss 5.0.1. The Karaf demo module serves as the foundation of my application. The war will build and deploy just fine without modifications, but when I try to add container-enforced authentication to the web.xml file, I run into JAAS issues.
With the simplest case, I'm just protecting the path /internal/* with BASIC auth. I provide the users.properties and roles.properties files and make sure my realm is defined in jboss' configuration. If I deploy an empty war with just these files and configuration, the container will challenge the browser and accept the correct credentials. However, if I include all of karaf like in the web demo, the container will no longer accept the credentials. If I remove the JAAS jars from the startup.properties file, it will again work but obviously SSHing into the karaf's console will no longer work. I'm not sure how to get both working simultaneously, and I was wondering if anybody has been successful in this? Thank you for your time.
