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 <sean.ca...@gmail.com> wrote:

> 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 <sean.ca...@gmail.com> wrote:
>
>> Thanks for responding, Alan.
>>
>> Yes, the path exists:
>> dspace@dev-ir:~$ ls /dspacecris-dut/webapps/rest/
>> ametrics  common  css  image  index.jsp  js  META-INF  static  WEB-INF
>>
>> Same 404 for the root:
>> dspace@dev-ir:~$ curl -s -H "Accept: application/xml"
>> http://localhost:8080/rest<html><head><title>Apache Tomcat/7.0.68
>> (Ubuntu) - Error report</title>...<h1>HTTP Status 404 - </h1>...
>>
>> On Wed, 14 Nov 2018 at 11:30, Alan Orth <alan.o...@gmail.com> wrote:
>>
>>> 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 <sean.ca...@gmail.com> wrote:
>>>
>>>> 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
>>>> <html><head><title>Apache Tomcat/7.0.68 (Ubuntu) - Error
>>>> report</title><style>...<h1>HTTP Status 404 - </h1>...
>>>>
>>>> I created a context:
>>>> /etc/tomcat7/Catalina/localhost/rest.xml:
>>>> <?xml version='1.0'?>
>>>> <Context
>>>>         path="/rest"
>>>>         docBase="/dspacecris-dut/webapps/rest"
>>>> />
>>>>
>>>> And disabled SSL by commenting out the security-constraint section in:
>>>> /dspacecris-dut/webapps/rest/WEB-INF/web.xml
>>>>
>>>> These lines from catalina.out seem relevant:
>>>>
>>>> INFO: Deploying configuration descriptor
>>>> /etc/tomcat7/Catalina/localhost/rest.xml
>>>> Nov 13, 2018 8:32:06 AM
>>>> org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
>>>> INFO:
>>>> validateJarFile(/dspacecris-dut/webapps/rest/WEB-INF/lib/el-api-1.0.jar) -
>>>> jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
>>>> javax/el/Expression.class
>>>> Nov 13, 2018 8:32:06 AM
>>>> org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
>>>> INFO:
>>>> validateJarFile(/dspacecris-dut/webapps/rest/WEB-INF/lib/jsp-api-2.1.jar) -
>>>> jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
>>>> javax/el/Expression.class
>>>> INFO: Deployment of configuration descriptor
>>>> /etc/tomcat7/Catalina/localhost/rest.xml has finished in 34,892 ms
>>>>
>>>> Any ideas what else I can do?
>>>>
>>>>
>>>> DSpace version:  CRIS-5.8.1-SNAPSHOT
>>>>   SCM revision:  9e925eeed17155160c031f3775d5fec6436d79bf
>>>>     SCM branch:  dspace-5_x_x-cris
>>>>             OS:  Linux(amd64) version 4.4.0-138-generic
>>>> ...
>>>>      Discovery:  enabled.
>>>>            JRE:  Oracle Corporation version 1.8.0_181
>>>>    Ant version:  Apache Ant(TM) version 1.9.6 compiled on July 8 2015
>>>>  Maven version:  3.3.9
>>>> tomcat 7
>>>> postgres 9.5
>>>> --
>>>>
>>>> --
>>>> All messages to this mailing list should adhere to the DuraSpace Code
>>>> of Conduct: https://duraspace.org/about/policies/code-of-conduct/
>>>> ---
>>>> 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 dspace-tech+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to dspace-tech@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>> --
>>> Alan Orth
>>> alan.o...@gmail.com
>>> https://picturingjordan.com
>>> https://englishbulgaria.net
>>> https://mjanja.ch
>>> "In heaven all the interesting people are missing." ―Friedrich Nietzsche
>>>
>>> --
>>> All messages to this mailing list should adhere to the DuraSpace Code of
>>> Conduct: https://duraspace.org/about/policies/code-of-conduct/
>>> ---
>>> 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 dspace-tech+unsubscr...@googlegroups.com.
>>> To post to this group, send email to dspace-tech@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>>
>
> --
>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> 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 dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://github.com/terrywbrady/info
425-298-5498 (Seattle, WA)

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
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