tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Gross <>
Subject Re: Configuring Embedded Tomcat
Date Mon, 10 Jan 2011 17:33:55 GMT
The Realm class is "read only" (according to the API).  There isn't a way
for me to set the path to the tomcat-users.xml file (or anything else for
that matter).

I'm not seeing a function in the Engine/Embedded/Context object to have it
load the tomcat-users.xml file either (though the context does let me add a
security role, though it doesn't seem to really do anything at this point).

I'm attempting to go through the actual Tomcat code to see if I can look at
the code that it uses to get everything started up so that I can build from
that.  I'm out of other ideas and things to try.

-- Chris

On Mon, Jan 10, 2011 at 12:22 PM, Pid <> wrote:

> On 1/10/11 2:28 PM, Christopher Gross wrote:
> > It is specified there -- but I don't have a server.xml file set up.
>  Since
> > I'm using the embedded version, I set up the tomcat on the fly and just
> have
> > the java code start it.
> What's stopping you from programmatically creating the Realm and adding
> it to the Host?
> p
> > I looked at the server.xml file that comes with the standard tomcat
> > installation, and I see the the UserDatabaseRealm portion.  Can I put
> that
> > into the web.xml file?  Or is there a way for me to enter that into the
> > embedded module?
> >
> > I'm not sure on what to do here.  Right now it "works", but I'm trying to
> > get it so that I can have 2 different users and have them see 2 different
> > web apps.  I don't often do sys admin/configuration stuff, I'd rather be
> > coding (but I'm waiting for other people to finish up their portions, so
> I'm
> > adding in other niceties that I can get done before I can move on to the
> > next big part.)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message