Re: [dspace-tech] Enabling REST interface

2018-11-16 Thread Sean Carte
Hi Alan I installed a new instance of DSpace-CRIS, and the REST interface does work. Unfortunately, I'm still a bit stuck as the version on https://github.com/4Science/DSpace is 5.10, but the version I have installed on my production and dev servers is 5.8. I would simply upgrade, but

Re: [dspace-tech] Enabling REST interface

2018-11-15 Thread Sean Carte
Thanks, Terry, I did comment out the security-constraint section in: /dspacecris-dut/webapps/rest/WEB-INF/web.xml On Thu, 15 Nov 2018 at 20:58, Terry Brady wrote: > If you are running DSpace 5+, the REST api requires ssh by default. > > You can comment that requirement out in the web.xml file

Re: [dspace-tech] Enabling REST interface

2018-11-15 Thread Terry Brady
If you are running DSpace 5+, the REST api requires ssh by default. You can comment that requirement out in the web.xml file for the rest webapp. https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-rest/src/main/webapp/WEB-INF/web.xml#L45-L54 On Wed, Nov 14, 2018 at 1:42 AM Sean Carte

Re: [dspace-tech] Enabling REST interface

2018-11-15 Thread Alan Orth
Dear Sean, I'm not sure which package provides the SpringServlet class, but I have the following in my REST application directory on DSpace 5.8: dspace/webapps/rest/WEB-INF/lib/spring-aop-3.1.1.RELEASE.jar dspace/webapps/rest/WEB-INF/lib/spring-asm-3.1.1.RELEASE.jar

Re: [dspace-tech] Enabling REST interface

2018-11-14 Thread Sean Carte
The /var/log/tomcat7/localhost.2018-11.14.log has some interesting info: ... INFO: Marking servlet DSpace REST API as unavailable Nov 14, 2018 4:08:51 AM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet [DSpace REST API] in web application [/rest] threw load() exception

Re: [dspace-tech] Enabling REST interface

2018-11-14 Thread Sean Carte
Also, the permissions are the same as for all the other webapps, including sword2 and jspui, which do work. On Wed, 14 Nov 2018 at 11:40, Sean Carte wrote: > Thanks for responding, Alan. > > Yes, the path exists: > dspace@dev-ir:~$ ls /dspacecris-dut/webapps/rest/ > ametrics common css image

Re: [dspace-tech] Enabling REST interface

2018-11-14 Thread Alan Orth
Dear Sean, It's "good" that the /rest path doesn't work either. So something is wrong with the loading of this application. Restart Tomcat and watch the logs as it loads each application (xmlui, solr, rest, etc). On Ubuntu that would be the general Tomcat Catalina logs[0] and localhost container

Re: [dspace-tech] Enabling REST interface

2018-11-14 Thread Alan Orth
Dear Sean, Does the root path for the rest API work, ie /rest? Also, some basic sanity checking: make sure the path you gave as the context docBase exists: $ ls -l /dspacecris-dut/webapps/rest Cheers, On Tue, Nov 13, 2018 at 8:45 AM Sean Carte wrote: > I'm trying to enable the REST

[dspace-tech] Enabling REST interface

2018-11-12 Thread Sean Carte
I'm trying to enable the REST interface, but am just getting a 404: curl -s -H "Accept: application/xml" http://localhost:8080/rest/communities Apache Tomcat/7.0.68 (Ubuntu) - Error