Hello-

I am creating a first-run configuration wizard for a webapp; it would be
something similiar to OpenCMS' installer.

When first deployed the application has a minimal web.xml and
context.xml but after a user uses the setup form to enter their database
user name and passwords the web.xml and context.xml are updated.

The WEB-INF/web.xml seems to be reloaded by Tomcat just fine.  However
the META-INF/context.xml doesn't get re-read.  Thus the application is
unusable since my Realm and JNDI Datasource are missing.

To work around the issue I could write the context.xml directly to
Catalina/localhost/ however this solution seems like it would be brittle
since I am assuming the host and engine.

Is there a recommended way to reload or redeploy the context on a
running Tomcat instance?  Or a better solution to creating a setup
wizard that must setup Realm based auth?

Thanks,

        Brandon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to