I've seen this problem arise for the value of ${dspace.dir} due to the trailing blank afterwords. If this is the problem, it's resolved in 1.6, the last I remember seeing.

I've also seen this happen on a SuSE Linux installation about 1 year ago. I just hard coded the ${dspace.dir} with the appropriate value to resolve. It seemed related to how SuSE Linux was letting maven read the darn
thing.  I've tried it on AIX, and all worked fine.

If it's any consolation, the dspace-info.pl program, I hard code the directories there due to something really strange. I have yet to track it down to either AIX, perl, or something in my environment settings.

So the problem may not be documentation, but system-related. We could write some blurb in there regarding
the option of hard coding the directories in the dspace.cfg file.

Sands is right, Mark D. will be able to shed more light that I certainly could. I would be willing to write some
"stuff" regarding the issue and the options at hand.

I've looked at my dspace.cfg file for 1.5.2 and I've hard coded all the directory references instead of using
${dspace.dir} in most instances.

I know that this is no consolation prize for you. Would some additional tips in the installation section addressing
the issues above suffice?




Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
[email protected]
http://www.maag.ysu.edu
http://digital.maag.ysu.edu
"I must not fear.  Fear is the mind-killer.
I will permit it to pass over me and through me..."
--Litany against fear....

On Aug 19, 2009, at 11:36 AM, Sands Fish wrote:

Mark Diggory may be able to shed more light on this, but I believe Robin is right here, as I've experienced this as well.

Robin, if I understand you, you ran the following command with success, right?

  mvn package -Ddspace.dir=/my/dspace/install/destination


--
sands fish
Software Engineer
MIT Libraries
Technology Research & Development
[email protected]
E25-131


On Aug 19, 2009, at 11:31 AM, Robin Taylor wrote:

Hi Jeffrey,

Yes all that bit worked fine. The only problem bit was 'mvn package'. It gets the various web.xml files from the source directories but did not substitute a value for ${dspace.dir}. I am not sure how it should do this, should it be clever and look at the value in the edited dspace.cfg file in the source directory ? It didn't appear to do so for me, I had to manually set the parameter. I have just had a wee look at the various pom's and there are references to a profile for dspace.config but there is no mention of this in the installation instructions.

Cheers.

Robin Taylor
Main Library
University of Edinburgh
Tel. 0131 6513808

-----Original Message-----
From: Jeffrey Trimble [mailto:[email protected]]
Sent: 19 August 2009 16:19
To: Robin Taylor
Cc: [email protected]
Subject: Re: Wee installation hitch

Robin,

Wow.  I just re-read the instructions.  This is how I've
compiled in the past.  Let's make sure we understand that
there are two /dspace directories in actuality and you have
to not confuse yourself.
Anyone else who wants to chime in, please do.

The first directory will be the one you make with the mkdir
dspace command.  This can be anywhere and it will store the
eventual output from the mvn package.  You will not have
anything populated in this directory.
It is referred to as [dspace] in most of the documentation.
(Whether your [dspace] directory is at root level or
imbedded.  For my own installation my [dspace] directory is
/irmaag/dspace)

The second dspace directory resides under [dspace-source]
(e.g. /dspace-1.5.2-src-release/dspace) This is the dspace
directory that you will make all the changes to in dspace.cfg
(/dspace-1.5.2-src-release/dspace/config)

You will cd over the /dspace-1.5.2-src-release/dspace and run
your mvn package command there.  Then you would go to the
[dspace-source]/dspace/target/dspace-1.5.2.dir and run the
ant fresh_install.

Those steps will populate the first [dspace] directory
mentioned above.

Is this not what you had happen?

--Jeff


Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
[email protected]
http://www.maag.ysu.edu
http://digital.maag.ysu.edu
"I must not fear.  Fear is the mind-killer.
I will permit it to pass over me and through me..."
--Litany against fear....

On Aug 19, 2009, at 10:45 AM, Robin Taylor wrote:


        As usual I have probably done something stupid but...
        
        I just installed Dspace 1.5.2 source release from
scratch and I think there is a wee gap in the installation
intructions. In step 3.2.3.4 you are instructed to edit
[dspace-source]/dspace/config/dspace.cfg  prior to doing your
initial 'mvn package' and Ant fresh-install. Amongst other
things you set dspace.dir to be your installation directory.
You are then instructed to run 'mvn package' with no
parameters set if you are using Postgres. The problem is
${dspace.dir} is not replaced in the various web.xml files in
the build directory. To correct this I had to rerun the 'mvn
package' with dspace.dir set as a parameter. No big deal but
it's the sort of thing that can cause a newcomer a lot of
grief. The easiest fix would be to update the instructions to
tell the user to add the parameter but I am sure there must
be a better way.
        
        Cheers, Robin.
        
        
        
        Robin Taylor
        Main Library
        University of Edinburgh
        Tel. 0131 6513808
        
        
        --
        The University of Edinburgh is a charitable body, registered in
        Scotland, with registration number SC005336.
        
        





--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel



* Please consider the environment before printing this email




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to