Martijn Houtman <[EMAIL PROTECTED]> wrote:
> I use a provider that connects IIS with a Linux Tomcat server. They send
> only WEB-INF/web.xml, WEB-INF/classes and WEB-INF/lib to the Tomcat server,
> hence the WEB-INF/config files stay on the IIS server and mmbase does not
> initialize. There are several solutions possible:
> 
> - put the config directory in classes or in a jar file in lib

This is long on my TODO, that it should be possible that ocnfig files are
resources. (so, they can be in classes or in lib then). You can also provide
default configuration then (e.g. the core builder xml can disappear to
mmbase.jar). Then you could also run mmbase from an unpacked war.

But currently, it is not possible.

> - initialize from a config directory on another server (is probably not a
> safe solution)

Which I don't understand.

> In all cases the config directory is moved and I don't know what to change
> in MMBase to get this working.


You can move the config directory by setting the 'mmbase.config' parameter
(I think this can be done in web.xml:

  <context-param>
    <param-name>mmbase.config</param-name>
    <param-value>/home/mmbase/config</param-value>
  </context-param>
or so

). 

I'm not sure if that would also work if you point to a directoy inside
WEB-INF. Anyhow, the config directory must remain an actual directory, and
not some resource in the classpath or on another server.


 Michiel



-- 
Michiel Meeuwissen 
Mediapark C101 Hilversum  
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

Reply via email to