On 7/29/2013 1:45 PM, Sam Ottenhoff wrote:
> DSpace 3.x documentation seems JDK-agnostic, it points to using Oracle
> or OpenJDK, version 6 or 7:
>
> https://wiki.duraspace.org/display/DSDOC3x/Installation
>
> But the new OAI module seems to depend on running Tomcat using JDK 7.
>   Here is the commit I see that targeted JDK 1.7 and effectively dropped
> support for JDK 6:
>
> https://github.com/lyncode/xoai/commit/a25cf93b1861608d8ed2d52b224b243fb0aca511
>
> Am I mis-reading this?  Is JDK 7 a requirement to run DSpace 3.2+?

Hmmm.. I didn't notice this (mostly cause that code is maintained 
outside of DSpace by Lyncode). DSpace uses that module for it's new 
OAI-PMH interface, but doesn't actually control (or monitor for that 
matter) that particular source code in https://github.com/lyncode/xoai

I agree with Sam's analysis. This Maven POM change is effectively 
targeting JDK 1.7. The code is being compiled for Java 7 or above.

> Here is the stack trace I observed:
>
> Caused by: java.lang.UnsupportedClassVersionError:
> com/lyncode/xoai/dataprovider/exceptions/ConfigurationException :
> Unsupported major.minor version 51.0 (unable to load class
> com.lyncode.xoai.dataprovider.exceptions.ConfigurationException)
>          at
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2892)

This error is saying that the compiled code requires Java 7 (51.0), but 
it's unsupported by your local java version.

http://java67.blogspot.com/2012/10/how-to-fix-javalangunsupportedclassversionerror-major-minor-version-49-50-51.html

So, as far as I can tell, this looks like it is requiring Java 7 (not 
sure how helix84 is able to run it on Java 6 to be honest, unless I'm 
missing something here..or helix84 is somehow running a different 
version of this lyncode/xoai codebase).

As mentioned, that XOAI code is a third-party module (maintained by 
Lyncode & João Melo), which is why we didn't notice this sooner -- it's 
not code that's actually in the DSpace GitHub codebase.

I've copied in João to see if he knows more, since he maintains that code.

- Tim

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to