Installing DSpace 8 rc1 Backend: Deploying JAR Application Step

15 views
Skip to first unread message

Peter

unread,
Apr 17, 2024, 3:29:45 PMApr 17
to DSpace Developers
Hi,

I'm just in the process of installing DSpace 8 rc1 locally (Debian 12). I decided to deploy JAR application for backend. Running:

java -jar [dspace-source]/dspace/modules/server-boot/target/server-boot-[DSpace-version].jar

resulted in Spring Boot outputting:

ANTLR Tool version 4.13.0 used for code generation does not match the current runtime version 4.5.1. ANTLR Runtime version 4.13.0 used for parser compilation does not match the current runtime version 4.5.1.

and multiple apparently related errors in DSpace log. Couldn't continue the installation (which froze at creating admin account).


Running "mvn dependency:tree -Dverbose -Dincludes=org.antlr" gave:

[INFO] --- maven-dependency-plugin:3.6.1:tree (default-cli) @ server-boot ---
[INFO] org.dspace:server-boot:jar:8.0-rc1
[INFO] +- org.dspace:dspace-api:test-jar:tests:8.0-rc1:test
[INFO] |  \- org.hibernate.orm:hibernate-core:jar:6.4.4.Final:compile (version managed from 6.4.4.Final)
[INFO] |     \- (org.antlr:antlr4-runtime:jar:4.13.0:runtime - omitted for conflict with 4.5.1-1)
[INFO] \- org.apache.solr:solr-core:jar:8.11.3:test
[INFO]    \- org.antlr:antlr4-runtime:jar:4.5.1-1:runtime (scope not updated to runtime)

So I aligned with the ANTLR version Hibernate prefers by adding this to pom.xml at the server-boot module level:

        <dependency>
            <groupId>org.antlr</groupId>
            <artifactId>antlr4-runtime</artifactId>
            <version>4.13.0</version> <!-- Enforcing version used by Hibernate -->
        </dependency>

Then rebuilt the project. The warning had gone and I could continue installation with the rest of the steps (well, for now I am receiving browser 503 error as I am trying to add HTTPS support).

Not sure if this is of any relevance, just wanted to share my experience with the new version so far.

Best,
Peter

DSpace Developers

unread,
Apr 18, 2024, 12:43:18 PMApr 18
to DSpace Developers
Hi Peter,

This sounds like the bug reported here: https://github.com/DSpace/DSpace/issues/9476

If you have found a way to fix this bug, would you be willing to submit a PR?  Or add your comments to the ticket (so that someone else can create a PR from it)

Thanks for helping to test DSpace 8 rc1!

Tim

Reply all
Reply to author
Forward
0 new messages