Thank you for the patch. I finally managed to install XOAI, but now when I try 
to access it through the browser at http://localhost:8080/xoai/request I get 
this error message:

HTTP Status 500 - OAI 2.0 wasn't correctly initialized, please check the log 
for previous errors
type Exception report
message OAI 2.0 wasn't correctly initialized, please check the log for previous 
errors
description The server encountered an internal error that prevented it from 
fulfilling this request.
exception
javax.servlet.ServletException: OAI 2.0 wasn't correctly initialized, please 
check the log for previous errors
        
org.dspace.xoai.DSpaceOAIDataProvider.doGet(DSpaceOAIDataProvider.java:99)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache
Tomcat/7.0.32 logs.


dspace.log.2012-11-23
2012-11-23 11:05:30,380 WARN  org.dspace.core.ConfigurationManager @ Requested 
configuration module: xoai not found

Tomcat:
Nov 23, 2012 11:05:35 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [oai] in context with path [/xoai] threw 
exception [OAI 2.0 wasn't correctly initialized, please check the log for 
previous errors] with root cause
javax.servlet.ServletException: OAI 2.0 wasn't correctly initialized, please 
check the log for previous errors
        at 
org.dspace.xoai.DSpaceOAIDataProvider.doGet(DSpaceOAIDataProvider.java:99)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)


DSpace doesn't recognize the command [dspace]/bin/dspace xoai import. It seems 
that the "xoai import" switch isn't recognized.


Alain
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: Thursday, November 22, 2012 8:11 PM
To: Alain Tschanz; João Melo
Cc: [email protected]
Subject: Re: [Dspace-tech] XOAI patch fail

It's failing because of difference in EOL in solr.xml. I fixed the xoai.diff 
file to account for that, find it attached. The rest patches successfully.

Regards,
~~helix84


On Fri, Nov 23, 2012 at 1:52 AM, Alain Tschanz <[email protected]> wrote:
> I’m trying to add the XOAI add-on 
> (lyncode-XOAI-DSpace-Addon-1.8.2-7b462ba)
> to my 1.8.2 DSpace install, but keep getting an error message when I 
> run the patch script:
>
>
>
>
>
> ./install.sh ../dspace-1.8.2-src-release
>
> patching file dspace/config/launcher.xml
>
> patching file dspace/modules/pom.xml
>
> patching file dspace/pom.xml
>
> patching file dspace/solr/solr.xml
>
> Hunk #1 FAILED at 31.
>
> 1 out of 1 hunk FAILED -- saving rejects to file 
> dspace/solr/solr.xml.rej
>
> patching file dspace/src/main/config/build.xml
>
> patching file pom.xml
>
>
>
>
>
> dspace/solr/solr.xml.rej
>
>
>
> --- dspace/solr/solr.xml
>
> +++ dspace/solr/solr.xml
>
> @@ -31,6 +31,7 @@
>
>    <cores adminPath="/admin/cores">
>
>      <core name="search" instanceDir="search" />
>
>      <core name="statistics" instanceDir="statistics" />
>
> +             <core name="xoai" instanceDir="xoai" />
>
>    </cores>
>
>
>
> </solr>
>
>
>
>
> ----------------------------------------------------------------------
> -------- Monitor your physical, virtual and cloud infrastructure from 
> a single web console. Get in-depth insight into apps, servers, 
> databases, vmware, SAP, cloud infrastructure, etc. Download 30-day 
> Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to