7.6.1 upgrade - ant test_database failure

127 views
Skip to first unread message

Eric Montague

unread,
Nov 29, 2023, 1:11:06 AM11/29/23
to DSpace Technical Support, dspace-c...@googlegroups.com
I'm trying to update 7.6 to 7.6.1 on Windows.

ant update is failing at test_database (see attached file)

Anyone have an idea of why?

- eric

--------------------------------------------------------------------------

postgres --version
postgres (PostgreSQL) 15.3

mvn -version
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: C:\apache-maven-3.8.8
Java version: 17.0.2, vendor: Oracle Corporation, runtime: C:\jdk-17.0.2
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

ant -version
Apache Ant(TM) version 1.10.14 compiled on August 16 2023

java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)

AntUpdateFail.txt

DSpace Technical Support

unread,
Nov 29, 2023, 8:44:01 AM11/29/23
to DSpace Technical Support
The first thing I'd check is the existence of 'org/dspace/workflow/workflow-curation.xsd' inside `dspace/target/dspace-installer/lib/dspace-api-7.6.1.jar'.  I don't see anything else in CurationTaskConfig#loadTaskConfig that involves URLs.

Eric Montague

unread,
Nov 29, 2023, 10:57:49 AM11/29/23
to DSpace Technical Support

workflow-curation.xsd is in DSpace-dspace-7.6.1\dspace-api\src\main\resources\org\dspace\workflow

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/648a3f95-430c-4aaf-af56-034e79097314n%40googlegroups.com.

DSpace Technical Support

unread,
Dec 4, 2023, 3:48:32 PM12/4/23
to DSpace Technical Support
Have you verified that the (re)build was successful prior to running "ant update"?  

This error appears to be saying that the "workflow-curation.xsd" is missing from the final "dspace-api.jar" file (it should be embedded in that JAR file).  

So, it might be that something went wrong during the "mvn package", or you need to clear Maven's cache via "mvn -U clean package".

Tim

Eric Montague

unread,
Dec 6, 2023, 9:17:24 AM12/6/23
to dspac...@googlegroups.com

"mvn -U clean package" was successful prior to running "ant update" when it failed.

I ran both again, and this time "ant update" was successful.

Besides having rebooted several times since the previous failure, there are just a couple things that changed.
So I'm not sure why this last attempt succeeded.

  1.  I deleted the bin.bak, lib.bak, and webapps.bak files from the dspace directory
  2. I stopped Tomcat before running both commands

Thanks everyone for your help.

- eric

Reply all
Reply to author
Forward
0 new messages