[Dspace-tech] IntelliJ IDEA + tomcat7 + XMLUI + Mac => Eexception

2015-03-19 Thread Monika C. Mevenkamp
I have a working XMLUI code base - aka if I go the normal route of mvn package; 
ant updatelocalhost:8080/xmlui gives me the expected home page.

I followed the written instructions on the wiki explaining how to do the 
developer integration 
https://wiki.duraspace.org/display/DSPACE/IDE+Integration+-+DSpace+and+IDEA. I 
did discover Bram’s youtube after the fact - some nice ideas there - so I added 
a link to the wiki page. The Youtube has a comment about the same 
NullPointerException that I have. So here a few more specifics

I defined a Run/Debug configuration for tomcat with two Deployment wars: 
xmlui.war and sol.war.   To make tomcat come up I had to do the funny link from 
/usr/local/Cellar/tomcat/7.0.54/libexec/bin/${dspace.dir} to my installation 
directory. When I start a debug session I see that the process comes up as 
follows:

/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java 
-Djava.util.logging.config.file=/Users/monikam/Library/Caches/IntelliJIdea14/tomcat/Unnamed_dspace-parent/conf/logging.properties
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51692,suspend=y,server=n 
-Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1099 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false 
-Djava.rmi.server.hostname=127.0.0.1 
-Djava.endorsed.dirs=/usr/local/Cellar/tomcat/7.0.54/libexec/endorsed 
-classpath 
/usr/local/Cellar/tomcat/7.0.54/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat/7.0.54/libexec/bin/tomcat-juli.jar
 
-Dcatalina.base=/Users/monikam/Library/Caches/IntelliJIdea14/tomcat/Unnamed_dspace-parent
 -Dcatalina.home=/usr/local/Cellar/tomcat/7.0.54/libexec 
-Djava.io.tmpdir=/usr/local/Cellar/tomcat/7.0.54/libexec/temp 
org.apache.catalina.startup.Bootstrap start

I can set breakpoints in the code and all that - which is a big improvement 
over adding traces and recompiling, redeploying. But when I visit 
localhost:8080  I get an exception , which I do not get when going the mvn/ant 
route. So there is something wrong in the way IDEAS puts things together. I 
went and compares the xmlui  webapp directories generated by mvn/ant versus 
IDEA - but nothing stuck out. I am attaching the diffs in case somebody wants 
to look.

I should probably also mention - this is dspace 5, with a few config changes, 
running with a database that mentions all sorts of bitstreams that do not exist 
in the local assetstore. This is ugly - I know - but it does not explain the 
difference in behaviour - since we are talking about the same code and configs 
put together slightly differently.


I am sure this is a small something somewhere - but what and where ?

Monika



ERROR org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer @
java.lang.NullPointerException
at 
org.dspace.discovery.SearchUtils.getDiscoveryConfiguration(SearchUtils.java:51)
at 
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.getQueryArgs(SidebarFacetsTransformer.java:317)
at 
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.performSearch(SidebarFacetsTransformer.java:156)
at 
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.getValidity(SidebarFacetsTransformer.java:119)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
at com.sun.proxy.$Proxy25.getValidity(Unknown Source)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.getValidityForInternalPipeline(AbstractCachingProcessingPipeline.java:987)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupValidities(AbstractCachingProcessingPipeline.java:482)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:720)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
at com.sun.proxy.$Proxy20.prepareInternal(Unknown Source)
at 
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292)
at 
org.apache.cocoon.components.source.impl.SitemapSource.(SitemapSource.java:148)
at 
org.apa

[Dspace-tech] OAI9: Call for Posters

2015-03-19 Thread Thomas Krichel
  
  You are invited to submit a description in the form of a short
  abstract if you wish to bring a poster to the workshop giving details
  of your project. The poster should be of interest to OAI9
  participants and directly related to the general themes of the
  workshop (http://indico.cern.ch/event/332370/page/6).
  
  Posters will be displayed in Campus Biotech and an extended coffee
  break will take place on Thursday 18 June 2015. This will give
  attendees the chance to view these and discuss them with the
  author. Attendees will also have the opportunity to vote for the
  poster which delivers the most impact. Posters should be A0 in size
  (841 x 1189 mm) for portrait or A1 (594 x 841 mm) for landscape. Any
  special equipment requests should be addressed to the workshop
  organisers when a poster has been accepted.
  
  If your poster is accepted you should still register for the workshop
  as normal and you will be expected to pay your own expenses. Owing to
  the large demand on accommodation, we advise you to register early -
  you may cancel your registration later if your submission is not
  successful.
  
  Poster abstracts can be submitted between 16 March 2015 - 17 April
  2015 after a quick Lightweight Accounts registration process
  (different from the conference registration).  Decisions will be made
  on an ongoing basis (and no later than the end April) and communicated
  to the submitters (http://indico.cern.ch/event/332370/call-for-abstracts/)
  
  Key dates
  ==
  Abstract submission opening day:  16 March 2015
  Abstract submission deadline: 17 April 2015
  
  Print service 
  == 
  If you wish, your poster can be printed by the University of Geneva
  print service and delivered at Campus Biotech on Thursday 18th
  June. If you are interested, send your work in PDF format to
  dimitri.do...@unige.ch before 17th May 2015. (Please note that posters
  created with Microsoft PowerPoint should be sent in PDF and PPT
  formats.) Cost of this service is CHF 33.-, to be paid on delivery at
  the main desk.
  
  We look forward to receiving your abstracts – and seeing your posters.


  Cheers,

  Thomas Krichel  http://openlib.org/home/krichel
  skype:thomaskrichel


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] freshly installed dspace 5 has problems

2015-03-19 Thread Hongxing Geng
Thanks Andrea and Aaron. It does work 

Hongxing Geng 
Library Services 
Athabasca University 
Phone: 780-675-6589 

- "Andrea Schweer"  wrote: 
> Hi, 
> 
> it looks like solr is not running. Please double-check step 9 of the 
> installation instructions: 
> https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-Installation
>  
> For a standard XMLUI install, you will need to deploy at least the xmlui and 
> the solr web apps. Step 10 of the instructions tells you how to deploy these. 
> 
> cheers, 
> Andrea 
> 
> 
> On 20/03/15 09:22, Hongxing Geng wrote: 
> 


> 
> 
> Hi there, 
> 
> 
> I just freshly installed a dspace 5 instance, but has a few problems: 
> 1. Any submissions to a collection are not shown in that collection. 
> 2. On xmlui home page, if I want to browse by issue date, authors, titles, or 
> subjects, it returns "Invalid Content Type" error: 
> Invalid content type: 

> 

Go to DSpace home 

Please contact the site administrator if you wish to report this error. If 
possible, please provide details about what you were doing at the time this 
error occurred. 

Contact site administrator || Show underlying error stack 

Java stacktrace: org.apache.http.ParseException: Invalid content type: at 
org.apache.http.entity.ContentType.parse(ContentType.java:233) at 
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:496)
 at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
 at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
 at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91) 
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301) at 
org.dspace.discovery.SolrServiceImpl.search(SolrServiceImpl.java:1603) at 
org.dspace.browse.SolrBrowseDAO.getSolrResponse(SolrBrowseDAO.java:190) at 
org.dspace.browse.SolrBrowseDAO.doCountQuery(SolrBrowseDAO.java:231) at 
org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:761) at 
org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:721) at 
org.dspace.browse.BrowseEngine.browseByItem(BrowseEngine.java:264) at 
org.dspace.browse.BrowseEngine.browse(BrowseEngine.java:100) at 
org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.getBrowseInfo(ConfigurableBrowse.java:825)
 at 
org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.addBody(ConfigurableBrowse.java:276)
 at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223)
 at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606) at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy107.startElement(Unknown Source) at 
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94) at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)
 at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606) at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy107.startElement(Unknown Source) at 
org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
 at 
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94) at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)
 at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606) at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy107.startElement(Unknown Source) at 
org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
 at 
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) at 
org.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter.parse(AbstractXMLByteStreamInterpreter.java:117)
 at 
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:44)
 at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:324)
 at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:750)
 at sun.re

Re: [Dspace-tech] freshly installed dspace 5 has problems

2015-03-19 Thread Andrea Schweer

  
  
Hi,

it looks like solr is not running. Please double-check step 9 of the
installation instructions:
https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-Installation
For a standard XMLUI install, you will need to deploy at least the
xmlui and the solr web apps. Step 10 of the instructions tells you
how to deploy these.

cheers,
Andrea

On 20/03/15 09:22, Hongxing Geng wrote:


  
  


  Hi there,
  
  
  I just
freshly installed a dspace 5 instance, but has a few problems:
  1. Any
submissions to a collection are not shown in that
collection.
  2. On xmlui
home page, if I want to browse by issue date, authors,
titles, or subjects, it returns "Invalid Content Type"
error:
  
Invalid content type:

  Go to DSpace home
  Please contact the
site administrator if you wish to report this error. If
possible, please provide details about what you were
doing at the time this error occurred.
  Contact site administrator || Show underlying error stack
  
Java
  stacktrace: 
org.apache.http.ParseException:
  Invalid content type: at
  org.apache.http.entity.ContentType.parse(ContentType.java:233)
  at
  org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:496)

  at
  org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)

  at
  org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)

  at
  org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)

  at
  org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
  at
  org.dspace.discovery.SolrServiceImpl.search(SolrServiceImpl.java:1603)
  at
  org.dspace.browse.SolrBrowseDAO.getSolrResponse(SolrBrowseDAO.java:190)
  at
  org.dspace.browse.SolrBrowseDAO.doCountQuery(SolrBrowseDAO.java:231)
  at
  org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:761)
  at
  org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:721)
  at
  org.dspace.browse.BrowseEngine.browseByItem(BrowseEngine.java:264)
  at
  org.dspace.browse.BrowseEngine.browse(BrowseEngine.java:100)
  at
  org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.getBrowseInfo(ConfigurableBrowse.java:825)

  at
  org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.addBody(ConfigurableBrowse.java:276)

  at
  org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223)

  at
  sun.reflect.GeneratedMethodAccessor69.invoke(Unknown
  Source) at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:606) at
  org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)

  at com.sun.proxy.$Proxy107.startElement(Unknown
  Source) at
  org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87)

  at
  org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94)

  at
  org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)

  at
  sun.reflect.GeneratedMethodAccessor69.invoke(Unknown
  Source) at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:606) at
  org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)

  at com.sun.proxy.$Proxy107.startElement(Unknown
  Source) at
  org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)

  at
  org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87)

  at
  org.apache.cocoon.xml.Ab

Re: [Dspace-tech] freshly installed dspace 5 has problems

2015-03-19 Thread Hongxing Geng
Thanks, Aaron. Can I simply copy solr.xml under dspace-src/dspace/solr/solr.xml 
to there? I just did it and does not work. 


Furthermore, dspace installation guide does not mention this step, and it does 
not mention I really need a solr server. 


Thanks 

Hongxing Geng 
Library Services 
Athabasca University 
Phone: 780-675-6589 

- "Aaron Collier"  wrote: 
> 
> 

I just ran into this exact problem. 



Make sure you create your solr.xml config in tomcat/Catalina/localhost. 



That fixed it for me. 





> 

From: Hongxing Geng [mailto:bi...@athabascau.ca] 
> Sent: Thursday, March 19, 2015 1:23 PM 
> To: dspace-tech@lists.sourceforge.net 
> Subject: [Dspace-tech] freshly installed dspace 5 has problems 






Hi there, 





I just freshly installed a dspace 5 instance, but has a few problems: 


1. Any submissions to a collection are not shown in that collection. 


2. On xmlui home page, if I want to browse by issue date, authors, titles, or 
subjects, it returns "Invalid Content Type" error: 
Invalid content type: 

> 

Go to DSpace home 

Please contact the site administrator if you wish to report this error. If 
possible, please provide details about what you were doing at the time this 
error occurred. 

Contact site administrator || Show underlying error stack 



Java stacktrace: 

org.apache.http.ParseException: Invalid content type: 

at org.apache.http.entity.ContentType.parse(ContentType.java:233) 

at 
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:496)
 

at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
 

at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
 

at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91) 

at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301) 

at org.dspace.discovery.SolrServiceImpl.search(SolrServiceImpl.java:1603) 

at org.dspace.browse.SolrBrowseDAO.getSolrResponse(SolrBrowseDAO.java:190) 

at org.dspace.browse.SolrBrowseDAO.doCountQuery(SolrBrowseDAO.java:231) 

at org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:761) 

at org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:721) 

at org.dspace.browse.BrowseEngine.browseByItem(BrowseEngine.java:264) 

at org.dspace.browse.BrowseEngine.browse(BrowseEngine.java:100) 

at 
org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.getBrowseInfo(ConfigurableBrowse.java:825)
 

at 
org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.addBody(ConfigurableBrowse.java:276)
 

at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223)
 

at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 

at java.lang.reflect.Method.invoke(Method.java:606) 

at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 

at com.sun.proxy.$Proxy107.startElement(Unknown Source) 

at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) 

at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94) 

at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)
 

at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 

at java.lang.reflect.Method.invoke(Method.java:606) 

at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 

at com.sun.proxy.$Proxy107.startElement(Unknown Source) 

at 
org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
 

at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) 

at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94) 

at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)
 

at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 

at java.lang.reflect.Method.invoke(Method.java:606) 

at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 

at com.sun.proxy.$Proxy107.startElement(Unknown Source) 

at 
org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
 

at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) 

at 
org.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter.parse(AbstractXMLByteStreamInterpreter.java:117)
 

at 
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:44)
 

at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipel

Re: [Dspace-tech] Modules?

2015-03-19 Thread Andrea Schweer

  
  
Hi Susan,

On 20/03/15 03:45, Borda, Susan wrote:


  
  
  
  I was
  looking at this Stackoverflow article:
http://stackoverflow.com/questions/27556499/dspace-version-4-x-adding-facet-which-messages-xml-file-should-i-edit?rq=1
  


Oh sorry, I didn't spot in your original e-mail that you were asking
about messages.xml as well. So dspace.cfg and discovery.xml, these
files you need to edit these in place. For all messages.xml files,
you have to decide how to manage these - you can either modify them
in place, or copy them to the corresponding path in a modules
directory and edit that copy. 

I personally started out by editing copies of messages.xml in the
modules directory. However, given that all our code etc is under git
control, I find it much easier now to edit in place. That way, I can
use git's merge tools to consolidate my own changes with those
coming in with new DSpace versions, rather than having to manually
copy my changes back.

Do keep in mind that if you change anything in the dspace-xyz
directories, you need to run a full rebuild (in the top-level
dspace-src directory). If all your changes live in dspace-src/dspace
then you can use the quick rebuild option. I have other changes in
the dspace-xyz directories, so I have to run a full rebuild anyway.
https://wiki.duraspace.org/display/DSDOC5x/Advanced+Customisation#AdvancedCustomisation-DSpaceSourceRelease

So the "right way" to do this really depends on your local
processes.

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
  


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] freshly installed dspace 5 has problems

2015-03-19 Thread Hongxing Geng


Hi there, 


I just freshly installed a dspace 5 instance, but has a few problems: 
1. Any submissions to a collection are not shown in that collection. 
2. On xmlui home page, if I want to browse by issue date, authors, titles, or 
subjects, it returns "Invalid Content Type" error: 
Invalid content type: 



Go to DSpace home 

Please contact the site administrator if you wish to report this error. If 
possible, please provide details about what you were doing at the time this 
error occurred. 

Contact site administrator || Show underlying error stack 

Java stacktrace: org.apache.http.ParseException: Invalid content type: at 
org.apache.http.entity.ContentType.parse(ContentType.java:233) at 
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:496)
 at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
 at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
 at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91) 
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301) at 
org.dspace.discovery.SolrServiceImpl.search(SolrServiceImpl.java:1603) at 
org.dspace.browse.SolrBrowseDAO.getSolrResponse(SolrBrowseDAO.java:190) at 
org.dspace.browse.SolrBrowseDAO.doCountQuery(SolrBrowseDAO.java:231) at 
org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:761) at 
org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:721) at 
org.dspace.browse.BrowseEngine.browseByItem(BrowseEngine.java:264) at 
org.dspace.browse.BrowseEngine.browse(BrowseEngine.java:100) at 
org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.getBrowseInfo(ConfigurableBrowse.java:825)
 at 
org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.addBody(ConfigurableBrowse.java:276)
 at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223)
 at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606) at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy107.startElement(Unknown Source) at 
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94) at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)
 at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606) at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy107.startElement(Unknown Source) at 
org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
 at 
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94) at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)
 at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606) at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy107.startElement(Unknown Source) at 
org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
 at 
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87) at 
org.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter.parse(AbstractXMLByteStreamInterpreter.java:117)
 at 
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:44)
 at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:324)
 at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:750)
 at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606) at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy102.process(Unknown Source) at 
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:362)
 at 
org.apache.cocoon.components.source.util.SourceUtil.toSAX(SourceUtil.java:111) 
at 
org.apache.cocoon.components.source.util.SourceUtil.parse(SourceUtil.java:294) 
a

Re: [Dspace-tech] Help with :- DSpace: Internal Server Error

2015-03-19 Thread Alex D
I've checked your case and assume this is because of one (ore more) of the
submissions has "Issue date" EMTPY or NULL. That's why it's not working only
in "Issue date" filter and DESCEND combination. Null values should go right
on the first result page - thats why it throws exception.
To check this - you choose ASCEND - it works ok for all listing pages -
excep LAST one - so that NULL issue date submission is sorted to be last. We
know that this field is obligatory - maybe error was during manual
restore\backup process or straight DB edit.

One thing I can advise to know it for sure - check the table in database or
query DB with SELECT statement to detect that cpecific record and UPDATE it
(or them) with some year.

Hope this will help you!
Good luck!



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Help-with-DSpace-Internal-Server-Error-tp4677083p4677098.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] DSpace Upgrade from v3.1 to v5.1

2015-03-19 Thread Chelsea Lobdell
Thanks Tim! I have been able to successfully run ant build. I am still not 
through the upgrade process and today I am seeing a 503 when I try to go to the 
development site with a message that reads: 
Service Temporarily Unavailable 


The server is temporarily unable to service your request due to maintenance 
downtime or capacity problems. Please try again later. 




I have checked the status of apache, postgres, and tomcat and they are all 
running. 


When I check the status of the handle server, it is not running. I start it and 
it returns success, but still when I check the status it is not running. Can 
you point me in the direction of what logs to start looking in to debug this 
error? 





- Chelsea 

--- 
Chelsea Lobdell 
Library Applications Programmer / Swarthmore College 
clobd...@swarthmore.edu / (610)690-6818 

- Original Message -

From: "Tim Donohue"  
To: "Chelsea Lobdell"  
Cc: dspace-tech@lists.sourceforge.net 
Sent: Friday, March 13, 2015 4:35:24 PM 
Subject: Re: [Dspace-tech] DSpace Upgrade from v3.1 to v5.1 

Assuming your tomcat user can read this directory: 
/usr/local/src/dspace-5.1-src-release/dspace/target/dspace-installer/ 
AND also write to "/var/dspace", then yes, running "ant update" as the tomcat 
user should work properly. 

Essentially, that "ant update" command needs to be able to *read* from the 
[dspace-src]/dspace/target/dspace-installer/ folder, and *write* to your 
[dspace.dir] (as configured in dspace.cfg). So, based on that, it needs to be 
run as a user who has both of those access rights. 

Hopefully that helps! 

- Tim 

On 3/13/2015 2:17 PM, Chelsea Lobdell wrote: 
> Hi Tim, 
> 
> Our setup is such that all dspace files are owned by tomcat and group 
> owned by a group called tomcat. I belong to the tomcat group. Should the 
> update be run as the tomcat user? Or should I be able to run it under my 
> own username? Or should I try running it as root? 
> 
> Thank, 
> Chelsea 
> 
> 
> /---/ 
> /Chelsea Lobdell/ 
> /Library Applications Programmer / Swarthmore College/ 
> /clobd...@swarthmore.edu / (610)690-6818/ 
> 
>  
> *From: *"Tim Donohue"  
> *To: *"Chelsea Lobdell"  
> *Cc: *dspace-tech@lists.sourceforge.net 
> *Sent: *Friday, March 13, 2015 3:04:08 PM 
> *Subject: *Re: [Dspace-tech] DSpace Upgrade from v3.1 to v5.1 
> 
> Hi Chelsea, 
> 
> This sounds like a possible file permissions issue. It sounds like the 
> user which is running "ant update" may not have access to create 
> files/directories under your "/var/dspace/solr/" directory. 
> 
> So, you may want to check the permissions on "/var/dspace/" (and 
> everything under that), to see if your user account has proper access 
> rights to read/write files. 
> 
> - Tim 
> 
> 
> On 3/13/2015 1:38 PM, Chelsea Lobdell wrote: 
> > Hi, 
> > 
> > I've gotten to step 6 (Update Dspace Installation**) of the upgrade 
> > process and my build failed. Here is the output I saw: 
> > 
> > BUILD FAILED 
> > 
> /usr/local/src/dspace-5.1-src-release/dspace/target/dspace-installer/build.xml:371:
>  
> > Failed to copy 
> > 
> /usr/local/src/dspace-5.1-src-release/dspace/target/dspace-installer/solr-config-temp/authority/conf/admin-extra.html
>  
> > to /var/dspace/solr/authority/conf/admin-extra.html due to failed to 
> > create the parent directory for 
> > /var/dspace/solr/authority/conf/admin-extra.html 
> > 
> > Does this mean I need to manually upgrade the solr indexes? Or can I 
> > just copy of the file that failed to copy? Forgive me if this is a 
> > simple question, I am new to supporting this application. 
> > 
> > Thanks, 
> > Chelsea 
> > 
> > 
> > /---/ 
> > /Chelsea Lobdell/ 
> > /Library Applications Programmer / Swarthmore College/ 
> > /clobd...@swarthmore.edu / (610)690-6818/ 
> > 
> >  
> > *From: *"Tim Donohue"  
> > *To: *"Chelsea Lobdell" , 
> > dspace-tech@lists.sourceforge.net 
> > *Sent: *Monday, March 9, 2015 2:44:51 PM 
> > *Subject: *Re: [Dspace-tech] DSpace Upgrade from v3.1 to v5.1 
> > 
> > Chelsea, 
> > 
> > Correct, you can upgrade directly from 3.x to 5.x per the DSpace 5 
> > upgrade instructions: 
> > https://wiki.duraspace.org/display/DSDOC5x/Upgrading+DSpace 
> > 
> > - Tim 
> > 
> > On 3/9/2015 12:46 PM, Chelsea Lobdell wrote: 
> > > Hi, 
> > > 
> > > We will soon be upgrading our development instance of DSpace and I 
> just 
> > > wanted to confirm that we can upgrade directly from version 3.1 to 
> > > version 5.1? Or is there an intermediate step of upgrading to version 
> > > 4.x first? 
> > > 
> > > Thanks, 
> > > Chelsea 
> > > 
> > > /---/ 
> > > /Chelsea Lobdell/ 
> > > /Library Applications Programmer / Swarthmore College/ 
> > > /clobd...@swarthmore.edu / (610)690-6818/ 
> > > 
> > > 
> > > 
> > > 
> > 
> ---

Re: [Dspace-tech] Customizing Item Preview in MyDSpace

2015-03-19 Thread Tim Au Yeung
Isn¹t that for the standard item display? I¹m looking to change the
display for when you¹re approving items for submission.

Thanks,
Tim

On 2015-03-19, 1:18 PM, "Alex D"  wrote:

>Look for ## Web Interface Settings ## in dspace.cfg.
>You can uncomment "webui.itemdisplay.default" and change which fields to
>hide\show.
>
>
>
>--
>View this message in context:
>http://dspace.2283337.n4.nabble.com/Customizing-Item-Preview-in-MyDSpace-t
>p4677092p4677093.html
>Sent from the DSpace - Tech mailing list archive at Nabble.com.
>
>--
>
>Dive into the World of Parallel Programming The Go Parallel Website,
>sponsored
>by Intel and developed in partnership with Slashdot Media, is your hub
>for all
>things parallel software development, from weekly thought leadership
>blogs to
>news, videos, case studies, tutorials and more. Take a look and join the
>conversation now. http://goparallel.sourceforge.net/
>___
>DSpace-tech mailing list
>DSpace-tech@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/dspace-tech
>List Etiquette: 
>https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Webometrics repository

2015-03-19 Thread Alex D
Sorry, didn't get notifications - just saw that I've missed the question.

I'm on jspui interface. I've already got rid of dspace name in domain, from
":8080/jspui" part in url. How about authors profile? Any chance in 5.x?





--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Webometrics-repository-tp4676634p4677094.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Customizing Item Preview in MyDSpace

2015-03-19 Thread Alex D
Look for ## Web Interface Settings ## in dspace.cfg.
You can uncomment "webui.itemdisplay.default" and change which fields to
hide\show.



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Customizing-Item-Preview-in-MyDSpace-tp4677092p4677093.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] Customizing Item Preview in MyDSpace

2015-03-19 Thread Tim Au Yeung
Hi all,

Is there a way to customize which fields get displayed in the item preview 
within the MyDSpace interface?

Thanks,
Tim

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Saving a submission throws an exception

2015-03-19 Thread Ondřej Košarko
Hi all,
when I interrupt a submission via "Save & Exit" and "Save it, I'll work on
it later" the following exception appears in cocoon.log. It's DSpace5 with
xmlui, but I've seen this in earlier versions (1.8) as well. Any tips how
to tackle it?

Regards,
Ondřej Košarko

2015-03-19 18:34:40,286 ERROR cocoon.handled  - Could not read resource
cocoon://DRI/3/handle/123456789//submit/4d65097b58346902161b7e384c573b0673752d1c.continue
at  -
resource://aspects/Statistics/sitemap.xmap:292:36
at  - resource://aspects/Statistics/sitemap.xmap:37:19
at  -
resource://aspects/Workflow/sitemap.xmap:139:38
at  - resource://aspects/Workflow/sitemap.xmap:76:26
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/aspects/aspects.xmap:85:34
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/aspects/aspects.xmap:84:43
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/aspects/aspects.xmap:83:22
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:179:46
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:101:44
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:97:59
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:82:51
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:78:51
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:70:51
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:171:67
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:167:37
org.apache.cocoon.ProcessingException: Could not read resource
cocoon://DRI/3/handle/123456789//submit/4d65097b58346902161b7e384c573b0673752d1c.continue
at  -
resource://aspects/Statistics/sitemap.xmap:292:36
at  - resource://aspects/Statistics/sitemap.xmap:37:19
at  -
resource://aspects/Workflow/sitemap.xmap:139:38
at  - resource://aspects/Workflow/sitemap.xmap:76:26
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/aspects/aspects.xmap:85:34
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/aspects/aspects.xmap:84:43
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/aspects/aspects.xmap:83:22
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:179:46
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:101:44
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:97:59
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:82:51
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:78:51
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:70:51
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:171:67
at  -
file:///mnt/DATA/121/home/dspace/installations/dspace/demo_dspace5/webapps/xmlui/themes/Mirage/sitemap.xmap:167:37
at
org.apache.cocoon.components.source.util.SourceUtil.handleSAXException(SourceUtil.java:409)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:138)
at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
at com.sun.proxy.$Proxy57.generate(Unknown Source)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:544)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:273)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:750)
at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
at com.sun.proxy.$Proxy56.process(Unknown Source)
at
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSo

Re: [Dspace-tech] Moving collections in DSpace >= 4.0?

2015-03-19 Thread Tim Donohue
Hi Alan,

I believe you'd need to do a complete re-index (with -b flag) in this 
scenario. But, that same concept should work in 4.0 or above.

It's also worth noting that, rather than doing this at the DB level 
(which can be a tad dangerous, unless you know what you are doing), you 
could also just "bulk move items" from one Collection to another using 
the "Batch Metadata Editing" tool:

https://wiki.duraspace.org/display/DSDOC4x/Batch+Metadata+Editing#BatchMetadataEditing-EditingCollectionMembership

The concept in bulk moving items would be something like this:
1) Recreate the Collection in it's new location
2) Visit the Old Collection, and "Export Metadata" from that Collection 
(generating a CSV of all Item metadata)
3) Edit the CSV, changing the "collection" column to point at the *new* 
Collection (created in #1)
4) Upload the CSV using the "Import Metadata" Administrative tool. 
Verify that DSpace detects those changes, and save it.

At this point, all Items in "Old Collection" will be moved in bulk to 
"New Collection". You can then delete the "Old Collection".

- Tim


On 3/18/2015 4:11 AM, Alan Orth wrote:
> Hi,
>
> I'm wondering how to move a collection to a new community in DSpace
> versions >= 4.0. In the past, with DSpace 3.x, I would simply[0] find
> the resource_id for the collection, its parent, and the new parent, then
> update the relationships in SQL:
>
> UPDATE community2collection SET community_id=$NEW_PARENT WHERE
> community_id=$OLD_PARENT and collection_id=$COLLECTION;
>
> Assuming I update Solr afterwards using`dspace index-discovery` is that
> sufficient? Is it perhaps required to do a complete re-index with the -b
> flag?
>
> Thanks,
>
> Alan
>
> [0] For finding the resource_id of each handle:
>
> SELECT resource_id FROM handle WHERE handle = '123456789/11287';
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
>
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Modules?

2015-03-19 Thread Borda, Susan
Thanks Andrea-
I was looking at this Stackoverflow article:
http://stackoverflow.com/questions/27556499/dspace-version-4-x-adding-facet-which-messages-xml-file-should-i-edit?rq=1

-susan

From: Andrea Schweer [mailto:schw...@waikato.ac.nz]
Sent: Wednesday, March 18, 2015 2:46 PM
To: Borda, Susan; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Modules?

Hi Susan,
On 18/03/15 03:54, Borda, Susan wrote:
Does anyone use the "Modules" option for advanced configuration? I was 
wondering if that's where I should be putting a copy of dspace.cfg, 
discovery.xml and messages.xml after I modify the facets and filters?

I don't think you can use the modules for configuration files.

cheers,
Andrea



--

Dr Andrea Schweer

IRR Technical Specialist, ITS Information Systems

The University of Waikato, Hamilton, New Zealand
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*

2015-03-19 Thread Tim Donohue
Pablo,

There is no "main servlet" for all of the DSpace JSPUI.  The individual 
servlet mappings are all defined in that web.xml, and mapped to various 
"url-patterns".  So, as Peter notes, you'd need to add a new 
 to this section:

https://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/webapp/WEB-INF/web.xml#L493

Or you can do a tomcat redirection as you mentioned.

- Tim

On 3/19/2015 3:14 AM, Pablo Buenaposada wrote:
> Yes Peter, that's what I have exactly done at first attempt and worked
> perfectly, the problem is that I don't want any "featureA" destination url
> so that's why I asked about the root behavior.
>
> If is so difficult I would make a tomcat redirection .
> Anyway I can't understand which is the main servlet for all dspace.com/*
> requests for jspui... it must have one isn't it?
>
> Thanks.
>
>
>
>
> --
> View this message in context: 
> http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4677084.html
> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] Recent Submission not showing (i.e. on home page) in default 5.1 installation

2015-03-19 Thread Alex D
Greeting!
Please help me with the subject - I'm struggling with it 2 days already (((
Just deployed fresh install of 5.1 - use JSPUI interface. 
Only 2 configs were changed (build.properties and config.cfg)  just for
hosts, email and DB connections - database is clear. After creating admin
user I've created root community and collection. 
Made test submission into community and... home page shows counters of
submission, keywords etc correctly - except of not showing blue carousel of
recent submissions :((
Any gues waht can cause it? I have a production installation of 4.2 - I
didn't encounter such problem in it. 
I think it just worked out of the box - but not in my fresh 5.1 case...
Please, need HELP!
Alex D.



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Recent-Submission-not-showing-i-e-on-home-page-in-default-5-1-installation-tp4677086.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] OAI server could not be reached in DSpace 5.2

2015-03-19 Thread Ruben

Fixed!!

catalina.properties (Tomcat) also must have proxy settings.

Cheers

On 18/03/15 09:10, Ruben wrote:

Hi Stuart,

Thanks for your response. Yes, we use a proxy, but I configured this 
DSpace with the same pattern than the others DSpaces that we have in 
the same network. The VM in which DSpace is hosted have the proxy 
variables set up and have connection to outside, and in dspace.cfg I 
filled out this parameters:


# proxy server for external http requests - use regular hostname 
without port number

http.proxy.host = ip_proxy

# port number of proxy server
http.proxy.port = port_proxy

Do you know how to be sure this issue is related with proxy settings?

Ruben

On 17/03/15 20:24, Stuart Yeates wrote:


Is dspace running on a corporate or institutional network that has a 
firewall? Almost certainly the issue is that there is a firewall / 
proxy between dspace and the OAI server.



cheers

stuart


--
I have a new phone number: 04 463 5692

*From:* Ruben 
*Sent:* Wednesday, 18 March 2015 4:27 a.m.
*To:* dspace-tech@lists.sourceforge.net
*Subject:* [Dspace-tech] OAI server could not be reached in DSpace 5.2
Hi all,

I installed a new DSpace 5.2 with Mirage2 and now is running with a 
database upgraded from DSpace 1.7. All works well except OAI 
harvesting, which when I try to enter OAI Harvest URL and OAI Set Id 
and save it, shows the message "OAI server could not be reached". I 
tried to run dspace bin doing a ping test onto this 
set_id-harvest_url pair and the message was the same. I'm sure this 
URL is reachable because I tried to harvest it at 
http://demo.dspace.org  and this message is 
not showed. OAI interface is enabled because I can access to 
url_base/oai/request?verb=Identify, and proxy configs were set up 
well, so I don't know what's happening...


Someone can help me?

Thanks in advance
--


Rubén Boada
Tècnic de Càlcul i Aplicacions
Consorci de Serveis Universitaris de Catalunya (CSUC)

Gran Capità, 2 (Edifici Nexus).08034 Barcelona
T.93 551 62 13.ruben.bo...@csuc.cat
www.csuc.cat  .Twitter @CSUC_info.Facebook.Linkedin
Subscriu-te al butlletí; (www.csuc.cat/butlleti)




--


Rubén Boada
Tècnic de Càlcul i Aplicacions
Consorci de Serveis Universitaris de Catalunya (CSUC)

Gran Capità, 2 (Edifici Nexus).08034 Barcelona
T.93 551 62 13.ruben.bo...@csuc.cat
www.csuc.cat  .Twitter @CSUC_info.Facebook.Linkedin
Subscriu-te al butlletí; (www.csuc.cat/butlleti)



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/


___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--


Rubén Boada
Tècnic de Càlcul i Aplicacions
Consorci de Serveis Universitaris de Catalunya (CSUC)

Gran Capità, 2 (Edifici Nexus).08034 Barcelona
T.93 551 62 13.ruben.bo...@csuc.cat
www.csuc.cat .Twitter @CSUC_info.Facebook.Linkedin
Subscriu-te al butlletí; (www.csuc.cat/butlleti)


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] main servlet for url pattern: dspaceurl.com/*

2015-03-19 Thread Pablo Buenaposada
Yes Peter, that's what I have exactly done at first attempt and worked
perfectly, the problem is that I don't want any "featureA" destination url
so that's why I asked about the root behavior.

If is so difficult I would make a tomcat redirection .
Anyway I can't understand which is the main servlet for all dspace.com/*
requests for jspui... it must have one isn't it?

Thanks. 




--
View this message in context: 
http://dspace.2283337.n4.nabble.com/main-servlet-for-url-pattern-dspaceurl-com-tp4676559p4677084.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette