Issue when installing Dataverse

99 views
Skip to first unread message

SDich

unread,
Apr 11, 2018, 7:47:46 AM4/11/18
to Dataverse Users Community
Good day,

I'm trying to install Dataverse (version 4.8.6) and I'm facing the following error:

Exception while deploying the app [dataverse] : Class edu.harvard.iq.dataverse.DvObjectServiceBean has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.7.0_171]]

I did install Oracle Java JDK1.8.74 and set it up on the system.

Can anyone help with this please?

Thank you.

Philip Durbin

unread,
Apr 11, 2018, 8:07:07 AM4/11/18
to dataverse...@googlegroups.com
Hi! Thanks for trying Dataverse! You're right, Java 8 is required. Did you see this...

alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java

... over at http://guides.dataverse.org/en/4.8.5/installation/prerequisites.html#installing-java and did it help?


--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/68e56512-9845-471f-8cdf-894a12aef0bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

SDich

unread,
Apr 12, 2018, 8:51:32 AM4/12/18
to Dataverse Users Community
Hi Phil,

Thanks for your answer. Yes Java is setup correctly on my environment as following:

[dataverse@xxxdataverse dvinstall]$ java -version
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

I also setup my JAVA_HOME as :
[dataverse@xxxdataverse dvinstall]$ echo $JAVA_HOME
/u01/app/java/bin

I don't understand from where the installer get this Java version as 1.7.0_171.

Thank you.

Le mercredi 11 avril 2018 08:07:07 UTC-4, Philip Durbin a écrit :
Hi! Thanks for trying Dataverse! You're right, Java 8 is required. Did you see this...

alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java

... over at http://guides.dataverse.org/en/4.8.5/installation/prerequisites.html#installing-java and did it help?

On Wed, Apr 11, 2018 at 7:47 AM, SDich <smd...@gmail.com> wrote:
Good day,

I'm trying to install Dataverse (version 4.8.6) and I'm facing the following error:

Exception while deploying the app [dataverse] : Class edu.harvard.iq.dataverse.DvObjectServiceBean has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.7.0_171]]

I did install Oracle Java JDK1.8.74 and set it up on the system.

Can anyone help with this please?

Thank you.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.

Don Sizemore

unread,
Apr 12, 2018, 9:17:55 AM4/12/18
to dataverse...@googlegroups.com
Hello,

Just to be sure, is JAVA_ anything specified in /usr/local/glassfish4/glassfish/config/asenv.conf ?

Donald

To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.

SDich

unread,
Apr 12, 2018, 9:54:55 AM4/12/18
to Dataverse Users Community
Hi Don,

I did a customized installation/configuration as I'm preparing a POC for Dataverse to present here in my institution (university).
My Glassfish is installed under : /

/u01/app/glassfish4

I just checked the file and I updated the file as per your advice:
AS_IMQ_LIB="../../mq/lib"
AS_IMQ_BIN="../../mq/bin"
AS_CONFIG="../config"
AS_INSTALL=".."
AS_DEF_DOMAINS_PATH="../domains"
AS_DEF_NODES_PATH="../nodes"
AS_DERBY_INSTALL="../../javadb"
JAVA_HOME="/u00/app/jdk1.8.0_74/bin/"

I run the installer again and still got exactly the same error.

Thanks.

To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/68e56512-9845-471f-8cdf-894a12aef0bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.

Don Sizemore

unread,
Apr 12, 2018, 9:59:55 AM4/12/18
to dataverse...@googlegroups.com
I apologize, I mis-typed. You can try forcing AS_JAVA="/u00/app/jdk1.8.0_74" in asenv.conf, then restart Glassfish?

To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.

SDich

unread,
Apr 12, 2018, 10:54:14 AM4/12/18
to Dataverse Users Community
Thank you for your answer Don. I'll try this and get back to you.

I got another question please, can Dataverse be used with another database such as Oracle or MySql as these are the 2 kind of database we are using.

Thank you.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.

Philip Durbin

unread,
Apr 12, 2018, 11:01:15 AM4/12/18
to dataverse...@googlegroups.com
Sorry, Dataverse uses some PostgreSQL-specific code so you must run PostgreSQL.

Please keep us posted about Java and Glassfish. Thanks to Don for jumping in! You should definitely try his advice.

Other thoughts:

- Java 7 is EOL so you could just uninstall it. :)
- When you start Solr, does it run under Java 7 or Java 8?

I hope this helps,

Phil

To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Durand, Gustavo

unread,
Apr 12, 2018, 11:58:58 AM4/12/18
to dataverse...@googlegroups.com
Hi: re other dbs:

As Phil points out we do have some PostgreSQL-specific code. More recently, one thing we've considered doing is moving any PostgreSQL-specific code to stored procedures, so that you could then create stored procedures in other dbs to accomplish those same tasks. In other words, the Dataverse code would be db agnostic for these parts as it would just need to know the name of the stored procedure.

The concern here, of course, is that the maintenance / support would likely grow as some issues would now be specific to these stored procedures and not the core war file. But maybe it wouldn't be so bad.

I'd be curious to know your (and others') thoughts on this approach. Once thing that would be needed is an audit of what queries currently exist that are in fact PostgreSQL-specific. It's not currently on our radar, but if it's of particular interest to you and you have the time, we'd welcome the contribution.

Thanks,
Gustavo 

On Thu, Apr 12, 2018 at 11:01 AM, Durbin, Philip <philip...@harvard.edu> wrote:
Sorry, Dataverse uses some PostgreSQL-specific code so you must run PostgreSQL.

Please keep us posted about Java and Glassfish. Thanks to Don for jumping in! You should definitely try his advice.

Other thoughts:

- Java 7 is EOL so you could just uninstall it. :)
- When you start Solr, does it run under Java 7 or Java 8?

I hope this helps,

Phil
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/d0f503c3-f698-4440-afca-dccadbc56ce1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.

SDich

unread,
Apr 16, 2018, 11:48:32 AM4/16/18
to Dataverse Users Community
Hi Don,

I did the updates as per your advice and the Java error has gone now. But I'm now facing the following one:

"Exception while preparing the app : Invalid resource : jdbc/VDCNetDS__pm."

Do you have any idea about what is missing out there?

Thank you.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.

Philip Durbin

unread,
Apr 16, 2018, 12:04:29 PM4/16/18
to dataverse...@googlegroups.com
I'm glad you got past the Java 7 vs 8 issue.

My guess is that the "create-jdbc-resource" comand in the installer failed:

https://github.com/IQSS/dataverse/blob/v4.8.6/scripts/installer/glassfish-setup.sh#L190

Can you please send the output of the installer either here or to sup...@dataverse.org? Please also send your full "server.log" file. By default this is in /usr/local/glassfish4/glassfish/domains/domain1/logs/server.log.

Thanks,

Phil


To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.

To post to this group, send email to dataverse...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Don Sizemore

unread,
Apr 16, 2018, 2:08:47 PM4/16/18
to dataverse...@googlegroups.com
Hello,

Personally, the simplest (though probably not the best) way to get you going would be to wipe out Glassfish, remove/disable Java 7 and start with a clean install. You can step through the component creation of setup-all.sh but you're really better off starting over (or at minimum, I always was).

Donald

SDich

unread,
Apr 16, 2018, 2:18:07 PM4/16/18
to Dataverse Users Community
Thanks for your answer Don,

I'm not using Java 7 but Java 8 as per the installation guide and my glassfish is up and running fine even after the Java updates I did on the file asenv.conf as per your advice. The Java error don't come anymore but the deployment of the dataverse.war file is falling.

Thank you.

Philip Durbin

unread,
Apr 16, 2018, 2:28:07 PM4/16/18
to dataverse...@googlegroups.com
I wonder if the problem has to do with these permission denied errors:

"/u00/app/glassfish4/glassfish/domains/domain1/config/lockfile (Permission denied)"

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages