[daisy] Upgrade from 1.5 to 2.0: wrapper issues with logkit.xml

Vincent Mouton vincent at postback.be
Thu Apr 5 09:16:06 CDT 2007


> 2007/4/5, Vincent Mouton <vincent at postback.be>:
> >
> >
> >
> > Hello,
> >
> >
> >
> > upgrading from 1.5 to 2.0 went really really smooth. I didn't
> encounter any
> > issues. Great job.
> >
> > I wanted to get my services running again, so I first ran through my
> > registry to get the paths pointing to the new wrapper's bin directory
> and
> > the renamed wrapper config files.
> >
> >
> >
> > Yet I still encounter an error when wanting to start the service that
> > launches the repository server.
> >
> >
> >
> > This is what the wrapper log tells me:
> >
> >
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 | ---- runtime exception
> report
> > --------------------------------------------------
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 | Exception:
> > org.apache.avalon.merlin.KernelRuntimeException
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 | Message: Unable to resolve
> the
> > block path [%DAISY_DATADIR%/conf/logkit.xml].
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 | ---- cause
> > ---------------------------------------------------------------------
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 | Exception:
> > java.net.MalformedURLException
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 | Message: no protocol:
> > %DAISY_DATADIR%/conf/logkit.xml
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 | ---- stack trace
> > ---------------------------------------------------------------
> >
> > INFO   | jvm 1    | 2007/04/05 09:58:10 |
> java.net.MalformedURLException: no
> > protocol: %DAISY_DATADIR%/conf/logkit.xml
> >
> >
> >
> > [
]
> >
> >
> >
> >
> >
> > I checked and double checked the DAISY_DATADIR variable, and it is
> OK.
> >
> >
> >
> > I got the repo server and the wiki running from command line right
> now.
> > Everything works fine.
> >
> >
> >
> >
> >
> > Any pointers?
> >
> 
> If you prepend the file location with file:, everything should be fine:
> e.g.:
> wrapper.app.parameter.8="file:%DAISY_DATADIR%/conf/myconfig.xml"
> 
> Regards
> Andreas


Andreas,

Thanks for your help. But that didn't solve the problem. But it forced me to
delve deeper into the config files for the wrapper.
And I found that on the first two Lines, the DAISY_HOME, DAISY_DATADIR
environment variables seemed to be reset to nothing.

Like this:

set.default.DAISY_HOME=
set.DAISY_DATADIR=



Which, obviously, made it impossible for the wrapper to find the config
files.


Still, I don't really understand why that config file would want to reset
those variables, or why one needs to set the variables again there. Maybe
it'd be better to first check if they exist.


Anyway, thanks for your time,
v 

 




More information about the daisy mailing list