[dspace-tech] Re: Rest API not working in DSpace 6.2

2018-05-08 Thread Mark H. Wood
On Tuesday, March 6, 2018 at 4:19:03 PM UTC-5, George Kozak wrote:
>
> Hi, a while back I reported that I was having a problem with the Rest API 
> not working after we migrated to DSpace 6.2.  I have been trying to debug 
> this, and I wonder if the problem is the version of Java we are using.
> I am running postgres 9.4.15 with jdk1.7.0_55.
>
> I am thinking this is the case because one of the errors 
> is "java.lang.UnsupportedClassVersionError: org/postgresql/Driver : 
> Unsupported major.minor version 52.0 (unable to load class 
> org.postgresql.Driver)".
>
> Should I be running with java 8?
>
>

DSpace newer than 1.7 works well for me on Java 8.  I note that Oracle Java 
7 has been EOL for three years.

The error that you quoted is what you get when you run code compiled for 
Java 8 on an older JVM.  It appears that your PostgreSQL driver was 
compiled for Java 8, and JDK 7 won't load it.  You may be able to find a 
version that is compiled with JDK 7 at 
https://jdbc.postgresql.org/download.html

In your position, yes, I would upgrade to Java 8.

-- 
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.


Re: [dspace-tech] Re: REST API not working

2018-01-24 Thread George Kozak
Thanks, Paul:
I will try and see if I can get things working following your directions.
George

On Wed, Jan 24, 2018 at 2:13 AM, Paul Warner  wrote:

> Hi,
>
> It sounds like you are having other problems, George, but I just struggled
> with Dspace's Rest interface, and I can confirm the Apache
> Proxy/ReverseProxy problem.  That stumped me for a while, because we are
> running https through Apache, and I thought I should leave the https in.
> But we are not using https for Tomcat, of course (duh!), since it is
> running behind Apache - so I had to comment out the https segment in the
> Rest config before I could get it to work.  I have tomcat configured to
> listen only on localhost, so I can now access the Rest interface only on
> that machine.  I use curl on the command line.  Everything works.  But I
> have not included rest in the Proxy/ReverseProxy list for Apache, so it is
> not available in the browser.  I get a 404 just like you do, George.  I do
> not want everyone to be able to use it online, so this suits me.
>
> I post this because these kinds of fine points can be overlooked.  I hope
> it helps someone.
>
> Best regards,
> Paul
>
>
> On Monday, January 22, 2018 at 7:30:22 PM UTC+1, George Kozak wrote:
>>
>> Hi...
>> I wrote about this back on January 8th, but didn't get any replies...so I
>> am trying again :-)
>> In our DSpace 6.2 installation, if I try to access the REST API, the
>> system responds with "Page Not Found" as if I had typed in an inaccurate
>> URL.  It does this even when I try:
>> curl https:///rest/test
>>
>> In the tomcat server.xml, I have:
>> 
>>
>> Does anyone have any ideas why the code would not recognize the REST API?
>> (PS: it worked fine in DSpace 5.5)
>> Thanks!
>>
>> --
>> ***
>> George Kozak
>> Digital Library Specialist
>> Cornell University Library - IT
>> 218 Olin Library
>> Cornell University
>> Ithaca, NY 14853
>> 607-255-8924 <(607)%20255-8924>
>> gs...@cornell.edu
>>
> --
> 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.
>



-- 
***
George Kozak
Digital Library Specialist
Cornell University Library - IT
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
g...@cornell.edu

-- 
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.


[dspace-tech] Re: REST API not working

2018-01-23 Thread Paul Warner
Hi,

It sounds like you are having other problems, George, but I just struggled 
with Dspace's Rest interface, and I can confirm the Apache 
Proxy/ReverseProxy problem.  That stumped me for a while, because we are 
running https through Apache, and I thought I should leave the https in.  
But we are not using https for Tomcat, of course (duh!), since it is 
running behind Apache - so I had to comment out the https segment in the 
Rest config before I could get it to work.  I have tomcat configured to 
listen only on localhost, so I can now access the Rest interface only on 
that machine.  I use curl on the command line.  Everything works.  But I 
have not included rest in the Proxy/ReverseProxy list for Apache, so it is 
not available in the browser.  I get a 404 just like you do, George.  I do 
not want everyone to be able to use it online, so this suits me.  

I post this because these kinds of fine points can be overlooked.  I hope 
it helps someone.

Best regards,
Paul


On Monday, January 22, 2018 at 7:30:22 PM UTC+1, George Kozak wrote:
>
> Hi...
> I wrote about this back on January 8th, but didn't get any replies...so I 
> am trying again :-)
> In our DSpace 6.2 installation, if I try to access the REST API, the 
> system responds with "Page Not Found" as if I had typed in an inaccurate 
> URL.  It does this even when I try:
> curl https:///rest/test
>
> In the tomcat server.xml, I have:
>   
>
> Does anyone have any ideas why the code would not recognize the REST API?
> (PS: it worked fine in DSpace 5.5)
> Thanks!
>
> -- 
> ***
> George Kozak
> Digital Library Specialist
> Cornell University Library - IT
> 218 Olin Library
> Cornell University
> Ithaca, NY 14853
> 607-255-8924
> gs...@cornell.edu  
>

-- 
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.