problem testing api rest

162 views
Skip to first unread message

Pablo Buenaposada

unread,
May 19, 2016, 9:27:25 AM5/19/16
to DSpace REST
Hi, I'am testing the rest api in dspace 4.5 but I cannot make it work.
I have added this:
<Context path="/rest" docBase="dspace/webapps/rest" reloadable="true"/>
to my tomcat server.xml, but when I request www.mydspace.com/rest the page loads until gets a timeout.
Nothing printed in apache/tomcat/dsapce logs.
I can see the folder rest under my dspace build (dspace/webapps/rest).
Any hint?

Bruno Nocera Zanette

unread,
May 19, 2016, 12:05:08 PM5/19/16
to Pablo Buenaposada, DSpace REST
Hey, Pablo!
It's hard to tell what's wrong, specially because you're doing a non-convencional installation, with tomcat+apache. Other apps are running?

--
You received this message because you are subscribed to the Google Groups "DSpace REST" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-rest...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-rest.
For more options, visit https://groups.google.com/d/optout.
--
Bruno Nocera Zanette
+55 41 9992-2508

Pablo Buenaposada

unread,
May 20, 2016, 2:12:46 AM5/20/16
to DSpace REST, pablo.bu...@gmail.com
Hi, already found the problem.
When timeout appears on the browser I noticed that the url was https which is strange as I am not working with https now...
So, searching in the net I have seen in the documentation of version 5 that SSL code block in web.xml can cause problems getting started.
In the documentation of version 4 this is not mentioned.
Commenting this block rest started to work, I should go more deep into SSL if I decided to use rest in production.

Pablo Buenaposada

unread,
May 20, 2016, 2:13:40 AM5/20/16
to DSpace REST, pablo.bu...@gmail.com
just curious, apache+tomcat is something non-convencional???

Bruno Nocera Zanette

unread,
May 20, 2016, 11:03:24 AM5/20/16
to Pablo Buenaposada, DSpace REST
Hey! Nice! I thought about the https, but as version 4.x doesn't use it i ignored it.

About tomcat+apache, it is kinda non-convencional if compared to what it says on dspace installation guide. When apache comes into the game, there are more space for errors and misconfigurations. That's what i meant. But of cours, it is an extremely common/used combo.

Marcelo Caceres

unread,
Aug 9, 2016, 4:37:10 PM8/9/16
to DSpace REST, pablo.bu...@gmail.com
Thanks Pablo, I comment section "Security settings and mapping" and restarting tomcat the service is available.
Reply all
Reply to author
Forward
0 new messages