hi Hilton,

I managed to figure it it by commenting out the bean and alias in 
[dspace.dir]/config/spring/api/discovery.xml

In case anybody encounter a similar challenge, just comment out  these lines:

<bean class="org.dspace.discovery.SolrServiceResourceRestrictionPlugin" 
id="solrServiceResourceIndexPlugin"/>

 

<alias name="solrServiceResourceIndexPlugin" 
alias="org.dspace.discovery.SolrServiceResourceRestrictionP Plugin"/>

 

Cheers..

 

 

From: Hilton Gibson [mailto:[email protected]] 
Sent: Wednesday, June 04, 2014 11:59 AM
To: Peter Sichilyango Tutu
Cc: Robin Harper; dspace-tech
Subject: Re: [Dspace-tech] Re XMLUI not updating with changes to discovery.xml

 

Hi Peter

 

Not that I know of, perhaps someone else on the list has better help.

 

Cheers

 

hg




Hilton Gibson

Ubuntu Linux Systems Administrator

JS Gericke Library

Room 1025D

Stellenbosch University

Private Bag X5036

Stellenbosch

7599

South Africa

 

Tel: +27 21 808 4100 | Cell: +27 84 646 4758

http://scholar.sun.ac.za

http://bit.ly/goodir

http://library.sun.ac.za

http://za.linkedin.com/in/hiltongibson

 

On 4 June 2014 11:50, Peter Sichilyango Tutu <[email protected]> wrote:

Dear Hilton,

 

Sorry, my bad. I am actually running dspace xmlui 3.2 and I did go through the 
whole entire installation process. Discovery is working but the trouble is that 
it does not display for anonymous users.Is there a  parameter in some  
configuration file somewhere that I have to change?or it can be done via the 
web interface? 

 

Please help.

 

Regards,

 

Peter

 

 

From: Hilton Gibson [mailto:[email protected]] 
Sent: Wednesday, June 04, 2014 11:21 AM
To: Peter Sichilyango Tutu
Cc: Robin Harper; dspace-tech
Subject: Re: [Dspace-tech] Re XMLUI not updating with changes to discovery.xml

 

Hi Peter

 

Firstly, will you be able to upgrade to DSpace 3.2?

Secondly, please look at: 
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Discovery for help tips.

 

Cheers

 

hg




Hilton Gibson

Ubuntu Linux Systems Administrator

JS Gericke Library

Room 1025D

Stellenbosch University

Private Bag X5036

Stellenbosch

7599

South Africa

 

Tel: +27 21 808 4100 <tel:%2B27%2021%20808%204100>  | Cell: +27 84 646 4758 
<tel:%2B27%2084%20646%204758> 

http://scholar.sun.ac.za

http://bit.ly/goodir

http://library.sun.ac.za

http://za.linkedin.com/in/hiltongibson

 

On 4 June 2014 11:05, Peter Sichilyango Tutu <[email protected]> wrote:

Hi Gibson,

Please help me.

I have enabled discovery in  dspace 3.1xmlui using these instructions: 
https://wiki.duraspace.org/display/DSDOC3x/Discovery

However,it turns out that discovery is only  is only accessible to logged in 
user and unavailable to the anonymous ones.I am interested in making it 
available to both authenticated and anonymous user. How do I go about it?

 

Regards,

 

Peter

 

 

From: Hilton Gibson [mailto:[email protected]] 
Sent: Wednesday, June 04, 2014 8:59 AM
To: Robin Harper
Cc: [email protected]
Subject: Re: [Dspace-tech] Re XMLUI not updating with changes to discovery.xml

 

A further tip for those on POSIX systems (Linux), ALWAYS rename files by 
modifying the extension. For example: dspace.cfg becomes dspace.cfg-old.

 

hg




Hilton Gibson

Ubuntu Linux Systems Administrator

JS Gericke Library

Room 1025D

Stellenbosch University

Private Bag X5036

Stellenbosch

7599

South Africa

 

Tel: +27 21 808 4100 <tel:%2B27%2021%20808%204100>  | Cell: +27 84 646 4758 
<tel:%2B27%2084%20646%204758> 

http://scholar.sun.ac.za

http://bit.ly/goodir

http://library.sun.ac.za

http://za.linkedin.com/in/hiltongibson

 

On 4 June 2014 07:51, Robin Harper <[email protected]> wrote:

I solved this, but thought I would say how in case anyone else had the same 
problem.

 

First off, I worked out you can inspect what dspace is making of your 
configuration by using the following command:

 

bin/dspace dsrun 
org.dspace.discovery.configuration.DiscoveryConfigurationService <- incredibly 
useful but so far as I can see undocumented feature.

 

>From there it became apparent that it was not reading the discovery.xml file 
>in config/spring/api

 

When I was grinding my teeth on this problem I had renamed one of my files 
An-old-discovery.xml and for some reason it was picking this one up.

 

Anyway renaming all the .xml files that were old versions to something like 
.xml.old meant the correct file was picked up. bin/dspace index-discovery -b 
and restart tomcat and it was working.

 

A little more digging and an-old.xml ban-old.xml and zan-old.xml and 
zanoldandverylongfilename.xml all got picked up before discovery.xml, even if I 
“touched” discovery.xml after creating the other files. So I have no idea why, 
but don’t care. Undocumented feature - don’t have any valid discovery.xml files 
ending with .xml in the config/spring/api directory!

 

Robin

 


> I have been updating discovery.xml, but for some reason recently when I 
> update it, re-index (index-discovery -b) and restart tomcat, the changes are 
> not reflected in the xmlui web app. Even a machine restart isn't helping.

 

 

 


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

 

 

 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to