Felix <[EMAIL PROTECTED]> wrote:
> i am getting this error. 
> i have winxp with Apache Tomcat/4.0.1 running and MMBase 1.7 

First of all, I would recommend to use a newer tomcat (a new 4.1 or 5.0
release).


> i can see from last few lines, 
> ==== 
> Caused by: java.lang.RuntimeException: The init method should 
> be called first (or start with mmbase.config parameter) 
> at 
> org.mmbase.module.core.MMBaseContext.getConfigPath(MMBaseContext.java:355) 
> ==== 
> as the error but how can i start init method first? 


You should not do that by hand. It's a pitty that the stack-trace is not a
bit longer.

> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) 
> at java.lang.Thread.run(Unknown Source) 
> Caused by: java.lang.RuntimeException: The init method should 
> be called first (or start with mmbase.config parameter) 
> at 
> org.mmbase.module.core.MMBaseContext.getConfigPath(MMBaseContext.java:355) 
> at org.mmbase.cache.Cache.(Cache.java:121) 
> ... 43 more 
> 

I would like to see what tried to init a cache, it seems to be called before
initaliziation of MMBaseContext. I've never seen that before, so perhaps
your set-up is somehow different. Perhaps it is not correct that it throws
an exception if the static init of CAche is called before init of
MMBaseContext.

You could probably work-around the problem by explicitely specifying the
mmbase config-directory. That can be done in web.xml:

  <context-param>
    <param-name>mmbase.config</param-name>
    <param-value>--path to the mmbase configuration directory --</param-value>
  </context-param>

or with a -D option of the JVM


greetings,


Michiel

-- 
Michiel Meeuwissen
Mediacentrum 140 H'sum 
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

Reply via email to