Hello Tim, We did some updates. Now I get no error message about Jetty-server. But handle-server still does not start. Below is a part from dspace.log.
2022-09-26 13:31:47,687 WARN unknown unknown org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean by name or id=dsprop. Will try to look up bean by type next. org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'dsprop' available at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:872) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1344) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:309) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1160) ~[spring-context-5.3.20.jar:5.3.20] at org.dspace.servicemanager.DSpaceServiceManager.getServiceByName(DSpaceServiceManager.java:426) [dspace-services-7.3.jar:7.3] at org.dspace.scripts.ScriptServiceImpl.getScriptConfiguration(ScriptServiceImpl.java:33) [dspace-api-7.3.jar:7.3] at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:125) [dspace-api-7.3.jar:7.3] at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98) [dspace-api-7.3.jar:7.3] below is related lines from start-handle-server file # Read parameters from DSpace config DSPACEDIR=`$BINDIR/dspace dsprop --property dspace.dir` HANDLEDIR=`$BINDIR/dspace dsprop --property handle.dir` Both parameters exist in dspace.cfg. Do you have any idea why I still cannot start handle-server? On Monday, 22 August 2022 at 18:03:31 UTC+3 Tim Donohue wrote: > Hi Fatih, > > That error is basically saying that (at least part of) "jetty-server" is > missing, when that's a core dependency in the main DSpace 7 POM: > https://github.com/DSpace/DSpace/blob/main/pom.xml#L1392-L1396 > > So, this implies to me that your build/install is somehow not valid. I'm > not sure why that is...maybe you have an old version of that "jetty-server" > hanging around? Maybe you've somehow customized this POM? > > At the very least, you may want to try a rebuild using "mvn -U clean > package" (-U will tell maven to try to update all your dependencies) and > then redeploy via "ant update". > > Hopefully, that'll help fix it. If not, you may want to look closely at > your upgrade and see if somehow you have old versions of JARs (from DSpace > 6) in your DSpace 7 installation (if so, you should remove them and update > everything to what DSpace 7 expects). > > Tim > ------------------------------ > *From:* [email protected] <[email protected]> on behalf > of Fatih Güneş <[email protected]> > *Sent:* Saturday, August 20, 2022 1:13 AM > > *To:* DSpace Technical Support <[email protected]> > *Subject:* Re: [dspace-tech] Handle-server cannot start > > Dear Tim, > This is an upgraded instance from 6.x to 7.3 > We have OpenJDK 11.0.16 and Maven 3.6.3. These seems compliant with > prerequisites. > The log output in my previous mail is from handle-server.log. In standard > log files I see no errors. > How can I dig more to find out what is missing? > > On Friday, 19 August 2022 at 17:16:14 UTC+3 Tim Donohue wrote: > > Hi Fatih, > > You haven't given us enough information to help. What version of DSpace > is this? Are there any other errors in your DSpace logs? > > Based on what you've provided, my best guess is you may have had a build > or install error which resulted in this. Missing classes > (NoClassDefFoundError) tend to result from a build problem, or maybe an > upgrade problem... it's essentially saying that a class which DSpace > depends on is missing from your DSpace installation. You also should > verify your basic prerequisites are correct...e.g. that you are running a > supported version of Java & Maven. > > Good luck and let us know on this list if you find any more clues or error > messages. > > Tim > ------------------------------ > *From:* [email protected] <[email protected]> on behalf > of Fatih Güneş <[email protected]> > *Sent:* Friday, August 19, 2022 4:48 AM > *To:* DSpace Technical Support <[email protected]> > *Subject:* [dspace-tech] Handle-server cannot start > > Hi, when I start handle-server I get the error below. Any idea is > appreciated. > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/eclipse/jetty/servlet/ServletContextHandler > at net.handle.server.Main.configureDefaultRootWebApp(Main.java:373) > at net.handle.server.Main.initEmbeddedJetty(Main.java:348) > at net.handle.server.Main.initialize(Main.java:273) > at net.handle.server.Main.main(Main.java:122) > Caused by: java.lang.ClassNotFoundException: > org.eclipse.jetty.servlet.ServletContextHandler > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) > ... 4 more > > -- > 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/1351d5b9-cb03-40ba-a414-b47e03786f5cn%40googlegroups.com > > <https://groups.google.com/d/msgid/dspace-tech/1351d5b9-cb03-40ba-a414-b47e03786f5cn%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/61b7f689-1a1b-4f64-b1ef-a96d21fbe558n%40googlegroups.com > > <https://groups.google.com/d/msgid/dspace-tech/61b7f689-1a1b-4f64-b1ef-a96d21fbe558n%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/49e636ff-ce74-44b5-adff-40e8bc862eaen%40googlegroups.com.
