Am 09.09.2007 um 09:20 schrieb wang jiahui:

> And I am confused that when DSpace is started, where does it find the
> @@dspace.dir@@ value? I couldn't find any information in the database.

Wrong place. Take a look into the web.xml in
tomcat/webapps/WEB-INF/. There the first few
lines after license stuff arounc line 55:

   <!-- Configuration Information -->

   <context-param>
     <param-name>dspace-config</param-name>
     <param-value>/Library/DSpace/live/config/dspace.cfg</param-value>
     <description>
       The location of the main DSpace configuration file
     </description>
   </context-param>

This was set during built which means that you
have to edit your dspace.cfg properly before
built and dont move the dspace-install dir
afterwards. Your error message looks a bit
self-referencing at first glance I admit but
if you read the build-file you can see how
it works.

> It seems that DSpace doesn't know what the @@ dspace.dir@@ value is.
> How to fix this?

Edit the dspace.cfg in dspace-source, not in
dspace-install. Then do an ant update. This
requires that you havent moved the dspace-install
dir manually or you move back to the place speci-
fied in dspace.cfg before running ant update.

If you havent started using dspace yet, you might
be better off with dropping the db, recreating it
and doing an ant fresh-install.

If you are adventurous, you can go through the
steps of the build file separately e.g. run the
targets install-configs and build-wars.

Bye, Christian


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to