Apache wink error

I am seeing this error

SEVERE: FAIL - Application at context path /ODKAggregate could not be started
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ODKAggregate]]

snip

java.lang.UnsupportedClassVersionError: org/opendatakit/aggregate/odktables/impl/api/wink/GaeAwareContentEncodingRequestFilter : Unsupported major.minor version 51.0 (unable to load class org.opendatakit.aggregate.odktables.impl.api.wi

I downloaded and installed ODKAggregete last week so I assume latest version

I have installed on Linux and mysql 5

The app shows up in Tomcat manager but when I try to start it I see the error above.

I am not a tomcat or java specialist and so I am a bit stuck.

Hi,

What version of Tomcat are you using?

Unsupported major.minor version generally means that you are using a different version of Java than the application support.

In this case, you are using Java 7 and ODK Aggregate requires Java 8 (Java 9 support is coming soon). Please also note that Aggregate requires MySQL 5.7 (MariaDB 10.1) or greater.

You can find help on installing Aggregate in the docs at http://docs.opendatakit.org/aggregate-setup/

1 Like

Hi, I am using tomcat7, the tomcat seems to be working fine ?

Thank you, I will try to upgrade java to 8

I just checked and I am using java 8 I have

echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle/jre/bin/java

I had java-6-sun when I installed Aggregate and added Jave 8 afterwards, do I neet to uninstall and re install Aggregate ?

Seems I had to tell /etc/default/tomcat7 about JAVA_HOME, working through some new errors now :slight_smile: I expect to be back soon.

Thanks.

Just to end on a solution, I rebuilt an ubuntu 16 box with MySql 5.7 and Tomcat 7 and java 8 and it all went according to plan. I guess trying to install Aggregate on an existing platform was my underlying issue.

Thanks very much for the help along the way.

1 Like