Hmm. Something strange in the state of DSpace...

I tried a quick fix just to get it working, namely putting that line:

org.dspace.eperson.Subscribe.authors = Authors:

In Messages.properties and then redeploying. The line is definitely in 
[dspace-install-dir]/webapps/jspui/WEB-INF/classes/Messages.properties and I 
even restarted tomcat just for good measure, but I still get the same fatal 
error.

Guess I'll try syncing the whole Messages.properties file but I'll need to be a 
little more careful about that.

Regards
Gary



Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Diggory
Sent: Thursday, 11 September 2008 4:16 PM
To: DSpace Tech
Subject: Re: [Dspace-tech] Email subscriptions in 1.5

Check if you are overriding Messages.properties. It looks as though that key is 
missing and it is not getting handled gracefully.

You need to have the following present...

org.dspace.eperson.Subscribe.authors = Authors:

This new code and a couple other properties were newly added in 1.5.1. You'll 
need to make sure your Messages properties is synced with the following 
version...

https://dspace.svn.sf.net/svnroot/dspace/tags/dspace-1_5_1/dspace-api/
src/main/resources/Messages.properties

I'm reposting to the list because I suspect this issue will cause problems for 
others as well.

-Mark

On Sep 10, 2008, at 11:03 PM, Gary Browne wrote:

> Thanks Mark. Running the first command outputs the following error:
>
> 2008-09-11 15:43:23,579 FATAL org.dspace.eperson.Subscribe @
> java.util.MissingResourceException: Can't find resource for bundle 
> java.util.PropertyResourceBundle, key 
> org.dspace.eperson.Subscribe.authors
>
> Do you have any idea what that is pointing to?
>
> Thanks
> Gary
>
>
>
> Gary Browne
> Development Programmer
> Library IT Services
> University of Sydney
> ph: 9351-5946
>
> -----Original Message-----
> From: Mark Diggory [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 11 September 2008 3:02 PM
> To: Gary Browne
> Cc: dspace-tech@lists.sourceforge.net
> Subject: Re: [Dspace-tech] Email subscriptions in 1.5
>
> Gary,
>
> That should have worked for getting the code into place.
>
> Could you try running...
>
> [dspace.dir]/bin/dsrun -Ddspace.log.init.disable=true - 
> Dlog4j.configuration=log4j-console.properties
> org.dspace.eperson.Subscribe -t
>
> this would then output the emails that would be sent out to System.out
>
> If that works, then running
>
> [dspace.dir]/bin/dsrun -Ddspace.log.init.disable=true - 
> Dlog4j.configuration=log4j-console.properties
> org.dspace.eperson.Subscribe
>
> or just (if you want logging to go to dspace.log instead)
>
> [dspace.dir]/bin/dsrun org.dspace.eperson.Subscribe
>
> Will send out the emails.
>
> I don't use the sub-daily wrapper, I just place the lines like this 
> that I want to run into my crontab.
>
> -Mark
>
> On Sep 10, 2008, at 9:23 PM, Gary Browne wrote:
>
>> Hi Claudia
>>
>> Thanks for the lead... I downloaded and installed this version but it 
>> still doesn't work. Running sub-daily does not seem to do anything.
>>
>> Can you confirm that my installation steps were correct?
>>
>> ---------------------------------------------------------------------
>> -
>> ----
>> cp Subscribe.java $DSPACE_SRC/dspace-api/src/main/java/org/dspace/
>> eperson/
>> cd $DSPACE_SRC/dspace
>> mvn clean package
>> cd target/dspace-1.5.0-build.dir
>> ant update
>> ---------------------------------------------------------------------
>> -
>> ----
>>
>> Has anyone else experienced this problem?
>>
>> Thanks very much.
>>
>> Gary
>>
>>
>> Gary Browne
>> Development Programmer
>> Library IT Services
>> University of Sydney
>> ph: 9351-5946
>>
>> -----Original Message-----
>> From: Claudia Jürgen [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, 10 September 2008 4:26 PM
>> To: Gary Browne
>> Cc: dspace-tech@lists.sourceforge.net
>> Subject: Re: [Dspace-tech] Email subscriptions in 1.5
>>
>> Hi Gary,
>>
>> use the 1.5.x version of it:
>> http://dspace.svn.sourceforge.net/viewvc/dspace/branches/
>> dspace-1_5_x/dspace-api/src/main/java/org/dspace/eperson/
>> Subscribe.java?view=log
>> There has been a bug with the new test option.
>>
>>
>> Claudia
>>
>>
>>
>>
>>
>> Gary Browne schrieb:
>>> Hi all
>>>
>>> In our 1.5 installation, emails were not being sent for subscribers 
>>> (nightly cron job). I tried installing the 1.5.1 version of 
>>> org.dspace.eperson.Subscribe.java but still no emails. When I run 
>>> /dspace/bin/sub-daily, nothing happens.
>>>
>>> The steps I followed to install the new Subscribe.java class were as
>>> follows:
>>>
>>> cp Subscribe.java
>>> $DSPACE_SRC/dspace-api/src/main/java/org/dspace/eperson/
>>> cd $DSPACE_SRC/dspace
>>> mvn clean package
>>> ant update
>>>
>>> I then restarted tomcat and ran sub-daily.
>>>
>>> Any assistance would be much appreciated.
>>>
>>> Thanks
>>> Gary
>>>
>>>
>>> Gary Browne
>>> Development Programmer
>>> Library IT Services
>>> University of Sydney
>>> ph: 9351-5946
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> --
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> --- This SF.Net email is sponsored by the Moblin Your Move 
>>> Developer's challenge Build the coolest Linux based applications 
>>> with Moblin SDK & win great prizes Grand prize is a trip for two to 
>>> an Open Source event anywhere in the world 
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> --
>>>
>>> _______________________________________________
>>> DSpace-tech mailing list
>>> DSpace-tech@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>> ---------------------------------------------------------------------
>> -
>> ---
>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>> challenge Build the coolest Linux based applications with Moblin SDK 
>> & win great prizes Grand prize is a trip for two to an Open Source 
>> event anywhere in the world 
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge 
Build the coolest Linux based applications with Moblin SDK & win great prizes 
Grand prize is a trip for two to an Open Source event anywhere in the world 
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to