Use of Realms and JDBC connections from the server.xml are not supported in the embedded tomcat. You need to use the application server security and database connection setup.
Have you figure out the way ? I would appreciate if you can give me some hints. Thanks!
Any further information on how to set it up?
I used Postgres DB and found the file postgres-ds.xml and copy it to $JBOSS/server/default/deploy/ and that is all.
Perhaps, a sample on how to create and use the Realm will help. Thanks!
You can add an explicit content description to server.xml in the tomcat.sar directory.
I'm not sure on the details, especially under JBoss, but that's what I used to use a long time out.
Sorry, wrong thread...
I came across with this thread as I seem to have the same problem. I have created a custom authenticator that depends on a custom realm to be defined in the server.xml. Of course the first thing I tried was to add the realm configuration in the server.xml provided in the embedded tomcat, but that does not seem to work (as Scott stated). I am assuming that if I used the standalone tomcat configuration my authenticator would work. Is that a correct assumption?
Thanks in advance,