You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ro...@agilent.com on 2006/01/14 02:07:57 UTC

Embedded Tomcat using MemoryRealm

I think I'm setting my Embedded tomcat server to use MemoryRealm but its still looking for the jaas.conf file. Can anyone comment on the following...

1)	For embedded Tomcat server.xml is not read and you are expected to set these parameters programmatically?
2)	The web.xml file does not effect the actual realm used, only the system configuration?

This is what I'm doing...

...     

   	Embedded embedded = new Embedded(); 

 MemoryRealm myrealm = new MemoryRealm();

      embedded.setRealm(myrealm );

      myrealm.setPathname(getPath()+"\\conf\\tomcat-users.xml");
      myrealm.start();


However, it still seems to be trying to use the JAAS realm. 

-Robert