Hi Tyler,

I don't believe you are seeing a corrupted JAR, as under that "Error starting 
child." message, you are seeing this "Caused by" error:


Caused by: java.lang.RuntimeException: Failure during ServletContext 
initialisation: Error creating bean with name 
'org.dspace.app.sherpa.SHERPAService': Unsatisfied dependency expressed through 
field 'configurationService'; nested exception is 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.dspace.external.OpenAIRERestConnector] for bean with name 
'openAIRERestConnector' defined in file 
[/dspace/config/spring/api/external-openaire.xml]; nested exception is 
java.lang.ClassNotFoundException: org.dspace.external.OpenAIRERestConnector

What that essentially says is that DSpace can't find the 
"org.dspace.external.OpenAIRERestConnector" class....this is a new​ class in 
7.1, and it should be in the new "dspace-api-7.1.jar"file installed in your 
[dspace]/lib/ and [dspace]/webapps/server/WEB-INF/lib/ folders.

My suspicion is that this JAR simply didn't get built or installed properly 
when you ran "mvn -U clean package" followed by "ant update".  I'd recommend 
stopping your Tomcat and trying those steps again to see if it improves things. 
https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace#UpgradingDSpace-UpgradingtheBackend(ServerAPI)

Hopefully, that'll help, but if it doesn't, let us know on this list.  So far 
though, I've not heard of any other reports of a corrupt JAR, so I'm doubtful 
that's the cause here.

Tim
________________________________
From: [email protected] <[email protected]> on behalf of 
Tyler Jones <[email protected]>
Sent: Thursday, November 4, 2021 1:51 PM
To: DSpace Technical Support <[email protected]>
Subject: [dspace-tech] Dspace 7.0 -> 7.1 Upgrade Error -- tomcat returns 404

Hello,

jdk 11.0.11
maven 3.6.3
postgresql 12.8
ant 1.10.7
tomcat 9.0.54

I am upgrading from 7.0 to 7.1. All was fine until I tried to access the DSpace 
API at localhost:8080/server and was returned a 404. I've attached the error 
messaged logged in the tomcat manager gui which states, "Failed to start 
component". I've attached a screenshot. I've also attached the catalina logs 
which mention that an "Error starting child." StackOverflow seems to think the 
culprit could be a corrupt .jar file. Has anyone else encountered this issue? I 
don't know if this would involve rerunning maven or ant again?

Thanks,
Tyler

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/0fbb988b-2972-487b-838d-f316935b4e44n%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/0fbb988b-2972-487b-838d-f316935b4e44n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/DM5PR2201MB1148D575D246F0E6BCC69C02ED8D9%40DM5PR2201MB1148.namprd22.prod.outlook.com.

Reply via email to