Thank you very much again Claudia. It would appear I'd migrated over a v4 
xoai.xml to v5, and as a result it did not validate. Fixing that brought up 
the module, and running ./dspace oai import populated the index. Looks good 
now.

Cheers
Scott

On Tuesday, September 5, 2017 at 1:30:34 PM UTC+1, Claudia Jürgen wrote:
>
> Hi Scott, 
>
> which version of DSpace are you using and what does your xoai.xml looks 
> like? 
> Maybe you are missing the context description. 
> https://jira.duraspace.org/browse/DS-2874 
>
> Hope this helps 
>
> Claudia 
>
>
>
> Am 05.09.2017 um 14:18 schrieb Scott Renton: 
> > Additionally, my lines in tomcat/conf/server.xml refer to a webapp which 
> > does exist: 
> > 
> >          <Context path="/dspace-oai" docBase= 
> > "/home/lib/dspace/dspace/webapps/oai"/> 
> > 
> >          <Context path="/oai" 
> docBase="/home/lib/dspace/dspace/webapps/oai"/> 
> > 
> > 
> > 
> > A very similar error (though not identical) goes direct to the browser 
> at 
> > http://lac-sdlc-rgu-live.is.ed.ac.uk/dspace-oai/request?verb=Identify 
> > 
> > The full error for openair-test.egu.ac.uk is in catalina.out: 
> > 
> > 05-Sep-2017 12:01:18.664 SEVERE [ajp-nio-8009-exec-7] 
> > org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() 
> for 
> > servlet [oai] in context with path [/dspace-oai] threw exception [Unable 
> to 
> > load XOAI manager, please, try again.] with root cause 
> > 
> >   java.lang.ClassCastException: com.ctc.wstx.evt.WEndElement cannot be 
> cast 
> > to javax.xml.stream.events.StartElement 
> > 
> > at com.ctc.wstx.evt.WEvent.asStartElement(WEvent.java:63) 
> > 
> > at 
> > 
> com.lyncode.xoai.dataprovider.xml.read.XmlReader.elementNameIs(XmlReader.java:87)
>  
>
> > 
> > at 
> > 
> com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ContextConfigurationParser.parse(ContextConfigurationParser.java:34)
>  
>
> > 
> > at 
> > 
> com.lyncode.xoai.dataprovider.xml.xoaiconfig.parse.ConfigurationParser.parse(ConfigurationParser.java:34)
>  
>
> > 
> > at 
> > 
> com.lyncode.xoai.dataprovider.xml.xoaiconfig.Configuration.readConfiguration(Configuration.java:23)
>  
>
> > 
> > at 
> > 
> org.dspace.xoai.services.impl.context.DSpaceXOAIManagerResolver.getManager(DSpaceXOAIManagerResolver.java:30)
>  
>
> > 
> > at 
> > 
> org.dspace.xoai.controller.DSpaceOAIDataProvider.indexAction(DSpaceOAIDataProvider.java:69)
>  
>
> > 
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> > 
> > at 
> > 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
>
> > 
> > at 
> > 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  
>
> > 
> > at java.lang.reflect.Method.invoke(Method.java:498) 
> > 
> > at 
> > 
> org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
>  
>
> > 
> > at 
> > 
> org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
>  
>
> > 
> > at 
> > 
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
>  
>
> > 
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) 
> > 
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) 
> > 
> > at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
>  
>
> > 
> > at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
>  
>
> > 
> > at 
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
> > 
> > at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
>  
>
> > 
> > at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
>  
>
> > 
> > at 
> > 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
>  
>
> > 
> > at 
> > 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>  
>
> > 
> > at 
> > 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
>  
>
> > 
> > at 
> > 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) 
>
> > 
> > at 
> > 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 
>
> > 
> > at 
> > 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
>  
>
> > 
> > at 
> > 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) 
> > 
> > at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:478) 
> > 
> > at 
> > 
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>  
>
> > 
> > at 
> > 
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)
>  
>
> > 
> > at 
> > 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)
>  
>
> > 
> > at 
> > 
> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>  
>
> > 
> > at 
> > 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  
>
> > 
> > at 
> > 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  
>
> > 
> > at 
> > 
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>  
>
> > 
> > at java.lang.Thread.run(Thread.java:748) 
> > 
> > On Tuesday, September 5, 2017 at 12:16:52 PM UTC+1, Scott Renton wrote: 
> >> Hi folks 
> >> 
> >> I'm seeing this problem in v5.6, when passing in URL 
> >> https://openair-test.rgu.ac.uk/dspace-oai/&verb=Identify (the server 
> is 
> >> test, but available.): 
> >> 
> >> 05-Sep-2017 12:01:18.664 SEVERE [ajp-nio-8009-exec-7] 
> >> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() 
> for 
> >> servlet [oai] in context with path [/dspace-oai] threw exception 
> [Unable to 
> >> load XOAI manager, please, try again.] with root cause 
> >> 
> >> I appreciate that the URL is https (the whole server is https), not 
> http 
> >> here- but thought I'd check the OAI was functioning before I requested 
> >> exceptions. Would you expect that to cut this kind of error, or is it 
> >> something more fundamental? I have configured 
> dspace/config/modules/oai.cfg 
> >> to have the set up below, pretty much as per previous, while 
> solrconfig.xml 
> >> in dspace/solr/oai/conf is basically out of the box. Is there anything 
> else 
> >> I can check to allow the XOAI manager to operate? 
> >> 
> >> Thanks 
> >> Scott 
> >> 
> >> # Storage: solr | database 
> >> 
> >> storage=solr 
> >> 
> >> 
> >> # The base URL of the OAI webapp (do not include the context e.g. 
> >> /request, /openaire, etc). 
> >> 
> >> # Note: leave commented if you want to fallback to the request's URL. 
> >> 
> >> # dspace.oai.url = http://localhost:8080/oai 
> >> 
> >> 
> >> # Base solr index 
> >> 
> >> solr.url=https://localhost:8080/solr/oai 
> >> 
> >> # OAI persistent identifier prefix. 
> >> 
> >> # Format - oai:PREFIX:HANDLE 
> >> 
> >> identifier.prefix = openair-test.rgu.ac.uk 
> >> 
> >> # Base url for bitstreams 
> >> 
> >> bitstream.baseUrl = https://openair-test.rgu.ac.uk/xmlui 
> >> 
> >> 
> >> # Base Configuration Directory 
> >> 
> >> config.dir = /home/lib/dspace/dspace/config/crosswalks/oai 
> >> 
>
> -- 
> Claudia Juergen 
> Eldorado 
>
> Technische Universität Dortmund 
> Universitätsbibliothek 
> Vogelpothsweg 76 
> 44227 Dortmund 
>
> Tel.: +49 231-755 40 43 
> Fax: +49 231-755 40 32 
> [email protected] <javascript:> 
> www.ub.tu-dortmund.de 
>
> Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie 
> ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für 
> diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender 
> und vernichten Sie diese Mail. Vielen Dank. 
> Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
> ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher 
> Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines 
> solchen Schriftstücks per Telefax erfolgen. 
>
> Important note: The information included in this e-mail is confidential. 
> It is solely intended for the recipient. If you are not the intended 
> recipient of this e-mail please contact the sender and delete this message. 
> Thank you. Without prejudice of e-mail correspondence, our statements are 
> only legally binding when they are made in the conventional written form 
> (with personal signature) or when such documents are sent by fax. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to