Hello again Eric,
This is a little puzzling, but I know I've been more than puzzled by
Messages.properties in the past. I don't like to be defeated by one
little flat file, so I'm going to ask a few more questions...
Firstly, it looks like and I'm assuming you are on 1.5.1. Correct?
The reason I asked if you had your Messages.properties in the
[dspace-source]/dspace/modules/jspui/src/main/resources/ directory was
that in your original email it was listed as
[Dspace-source]/modules/jspui/main/resources. So I'll just get you to
double check that directory for me.
Also, I haven't tried the default release but I couldn't find any
mention of .war files in the install instructions. Maybe you could try
one of the alternative deployment methods (see below). But first, can I
get you to confirm that you have followed each of these steps:
i) cd [dspace-source]/dspace
ii) mvn package
iii) cd target/dspace-[version].dir
iv) ant init_configs
Having followed these procedures, can you then either:
A) DEFINE A CONTEXT PATH IN TOMCAT FOR THE JSPUI
Add the following to your [tomcat-home]/conf/server.xml, within the
<Host> element:
<!-- DEFINE A CONTEXT PATH FOR DSpace JSP User Interface -->
<Context path="/jspui"
docBase="[dspace-install-directory]\webapps\jspui" debug="0"
reloadable="true" cachingAllowed="false"
allowLinking="true"/>
OR:
B) COPY YOUR JSPUI WEBAPP TO TOMCAT'S WEBAPPS DIRECTORY
cp -r [dspace-install-directory]/webapps/jspui [tomcat-home]/webapps/
AFAIK the default and source releases should behave the same in terms of
building and deployment, but someone else could confirm or deny this?
I look forward to your reply (or indeed anyone else's thoughts on this
issue).
Gary
P.S. Has the "failure to delete" error been resolved as a result of
permissions changes?
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
> -----Original Message-----
> From: Kurzenberger, Eric [mailto:[email protected]]
> Sent: Thursday, 26 March 2009 6:53 AM
> To: Gary Browne; [email protected]
> Subject: Re: [Dspace-tech] Changes to Messages.properties not
> being recognized
>
> Hi Gary,
>
> I already had the Messages.properties file in
> [dspace-source]/dspace/modules/jspui/src/main/resources/
> prior to building and deploying, following the instructions
> in the Dspace wiki (which Van Ly also sent in response to
> this thread). No luck. Could this be because I'm using the
> default release and not the source release? I can't for the
> life of me figure out why the dspace install would be
> ignoring the Messages.properties file.
>
> Cheers,
>
> Eric
>
> On 3/24/09 11:08 PM, "Gary Browne"
> <[email protected]> wrote:
>
> Hi Eric,
>
> Upon further investigation, the path to your source
> Messages.properties appears to be incorrect. I have:
>
> [dspace-source]/dspace/modules/jspui/src/main/resources/Messag
> es.propert
> ies
>
> Try sticking your Messages.properties file in that location
> and going through the build and deploy steps again.
>
> The 'failure to delete' error looks like a permissions
> problem. Make sure all your source files are owned by the
> 'dspace' user (or whatever you choose to call the user which
> runs tomcat).
>
> Good luck.
> Cheers
> Gary
>
>
> Gary Browne
> Development Programmer
> Library IT Services
> University of Sydney
> ph: 9351-5946
>
>
> > -----Original Message-----
> > From: Kurzenberger, Eric [mailto:[email protected]]
> > Sent: Wednesday, 25 March 2009 2:00 PM
> > To: Gary Browne; [email protected]
> > Subject: Re: [Dspace-tech] Changes to Messages.properties not being
> > recognized
> >
> > Thanks for the response, Gary. I followed the steps you
> outlined, but
> > still am not seeing my changes reflected.
> > Messages.properties did not get copied to the
> > [dspace-install-directory]/webapps/jspui/WEB-INF/classes/
> > directory (which is empty) after running both "ant
> init_configs" and
> > "ant update." I copied it manually and restarted tomcat, but still
> > didn't see my changes reflected.
> > I also tried copying Messages.properties to
> > [dspace-install-directory]/config, but that didn't work either.
> >
> > I did get the following build error when running "mvn clean
> package:"
> >
> > Failed to delete directory:
> > /usr/local/dspace-1.5.1-release/dspace/modules/xmlui/target.
> > Reason: Unable to delete file
> > /usr/local/dspace-1.5.1-release/dspace/modules/xmlui/target/xm
> > lui-1.5.1/WEB-INF/lib/activation-1.1.jar
> >
> > But the build was successful, and since I'm using jspui,
> not xmlui, I
> > don't see why this would be an issue.
> >
> > Do you have any other suggestions?
> >
> > Cheers,
> >
> > Eric
> >
> >
> > On 3/23/09 6:38 PM, "Gary Browne"
> > <[email protected]> wrote:
> >
> > Hi Eric,
> >
> > Looks like noone has replied to you AFAICS. Let's see how we go...
> >
> > I don't copy the war files, just point tomcat to the
> > [dspace-install-directory]/webapps/jspui directory (in
> server.xml), so
> > not sure if this will work with your setup.
> >
> > So it looks like you have the Messages.properties file in the right
> > location (I think, from memory) in the source directory.
> Then you need
> > to run from the [dspace-source]/dspace directory:
> >
> > mvn clean package
> >
> > Then change to your dspace-1.5.1-build.dir directory (cd
> > target/dspace-1.5.1-build.dir) and run:
> >
> > ant init_configs (or maybe 'ant update', if that doesn't work
> > - sorry, just back from 3 months off and a bit rusty).
> >
> > How can you check if it has worked? Check the
> > [dspace-install-directory]/webapps/jspui/WEB-INF/classes/
> > directory for your (updated) Messages.properties file. It should be
> > copied here. Then of course, check your button.
> >
> > Hope this is of help in some small way.
> >
> > Kind regards
> > Gary
> >
> >
> > Gary Browne
> > Development Programmer
> > Library IT Services
> > University of Sydney
> > ph: 9351-5946
> >
> >
> > > -----Original Message-----
> > > From: Kurzenberger, Eric [mailto:[email protected]]
> > > Sent: Saturday, 21 March 2009 2:36 AM
> > > To: [email protected]
> > > Subject: [Dspace-tech] Changes to Messages.properties not being
> > > recognized
> > >
> > > Hi all,
> > >
> > > I made a couple changes to my Messages.properties file (to
> > take care
> > > of the ???jsp.mydspace.request.export.community.???
> > > button issue, amongst other things) and did a rebuild of
> > DSpace, but
> > > my changes aren't being recognized. Since I'm using the default
> > > release of 1.5.1 and not the source release, I had to get the
> > > Messages.properties file from the DSpace SourceForge
> repository and
> > > copy it to [Dspace-source]/modules/jspui/main/resources,
> which I've
> > > read worked for other users, then did a rebuild of DSpace and
> > > restarted Tomcat. But the changes I made aren't showing up
> > when I go
> > > back into DSpace.
> > >
> > > One note: the rebuild instructions on the wiki indicate
> to copy the
> > > .war files from the build directory in [dspace-source] to
> [tomcat],
> > > but I don't see a build directory anywhere in my
> > [dspace-source]. I
> > > do have a "dspace-1.5.1-build.dir" directory, but hat
> > doesn't contain
> > > any .war files. Could this be the source of the issue?
> > >
> > > Thanks for all your help!
> > >
> > > Cheers,
> > >
> > > Eric
> > >
> > >
> > > --------------------------------------------------------------
> > > ----------------
> > > Apps built with the Adobe(R) Flex(R) framework and Flex
> > > Builder(TM) are powering Web 2.0 with engaging, cross-platform
> > > capabilities. Quickly and easily build your RIAs with
> Flex Builder,
> > > the Eclipse(TM)based development software that enables
> intelligent
> > > coding and step-through debugging.
> > > Download the free 60 day trial.
> > > http://p.sf.net/sfu/www-adobe-com
> > > _______________________________________________
> > > DSpace-tech mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > >
> >
> > --------------------------------------------------------------
> > ----------------
> > Apps built with the Adobe(R) Flex(R) framework and Flex
> > Builder(TM) are powering Web 2.0 with engaging, cross-platform
> > capabilities. Quickly and easily build your RIAs with Flex Builder,
> > the Eclipse(TM)based development software that enables intelligent
> > coding and step-through debugging.
> > Download the free 60 day trial.
> > http://p.sf.net/sfu/www-adobe-com
> > _______________________________________________
> > DSpace-tech mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> >
> >
>
> --------------------------------------------------------------
> ----------------
> Apps built with the Adobe(R) Flex(R) framework and Flex
> Builder(TM) are powering Web 2.0 with engaging,
> cross-platform capabilities. Quickly and easily build your
> RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial.
> http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech