Hi all,

Thanks for your patience.  It took me a while to get back to this thread, 
but I think you all have found a bug.  It appears that during a recent 
update, we accidentally filtered out several of the Jetty JARs from being 
included in DSpace.

I've just created a small PR to try and fix this 
bug: https://github.com/DSpace/DSpace/pull/8498

If any of you are interested in trying this PR out locally, I *think* it 
might fix this bug with the handle-server not starting properly.   I have 
not had a chance to fully test it yet, but I can verify that with this PR 
the missing Jetty JARs are now a part of DSpace again.

Tim

On Tuesday, September 27, 2022 at 2:07:30 PM UTC-5 [email protected] 
wrote:

> Hi Gabi,
> We made our handle-server work with your help. Thank you very very much. 
> The link to download missing jars is 
> https://mvnrepository.com/artifact/org.eclipse.jetty
> I add a screenshot of all jetty jars in our server and  two screenshots 
> showing how to download the correct files.
>
> I also want to thank Mark and Tim for their attention. 
> [image: download-jar.png][image: jetty-version.png][image: 
> jetty-jars_list.png]
>
>
>
> On Tuesday, 27 September 2022 at 21:37:14 UTC+3 Gabriella Harangi wrote:
>
>> Hi!
>>
>> As I wrote in my previous e-mail, you need 6 jars. Beside the 
>> jetty-servlet, you need jetty-deploy, jetty-security,, jetty-servlets, 
>> jetty-xml, jetty-webapp
>> Download these jar files also, and copy them to the lib directory.
>>
>>
>> Gabi
>>
>> Olayiwola Lawal <[email protected]> ezt írta (időpont: 2022. szept. 
>> 27., K 20:14):
>>
>>> Hello, I am facing the same issue on a fresh 7.3 installation. we just 
>>> got our prefix today. when I run the script to start the Handle-Server I 
>>> get no confirmation prompt or errors. CNRI says they can't reach our handle 
>>> server. From the handle-server/log I got this error after I have copied the 
>>> jetty-servlet to the lib directory.
>>>
>>> Anny further assistance please?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *"2022-09-27 18:07:11.300Z" 25 Started new run."2022-09-27 
>>> 18:07:11.304Z" 25 Handle.net Server Software version 9.3.0Exception in 
>>> thread "main" java.lang.NoClassDefFoundError: 
>>> org/eclipse/jetty/security/SecurityHandler        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.security.SecurityHandler        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*
>>>
>>> On Tuesday, 27 September 2022 at 14:18:03 UTC+1 Mark H. Wood wrote:
>>>
>>>> On Tue, Sep 27, 2022 at 03:20:04AM -0700, Gabriella Harangi wrote: 
>>>> > I've tried to start the handle server on our production server, which 
>>>> is a 
>>>> > fresh 7.3 install, and it doesn't work, it throws the same exception 
>>>> as 
>>>> > mentioned above. Then I've tried it on our test server, which is also 
>>>> a 
>>>> > dspace 7.3, but upgraded from dspace 7.2. The handle server doesn't 
>>>> start 
>>>> > there either (same exception). I've also tried it in docker with no 
>>>> success. 
>>>> > Always got the same error: 
>>>> > Exception in thread "main" java.lang.NoClassDefFoundError: 
>>>> > org/eclipse/jetty/servlet/ServletContextHandler 
>>>> > 
>>>> > Please, give me any suggestion, how can I fix the handle server. 
>>>>
>>>> It seems that the JAR which contains this class is not installed by 
>>>> 7.3. That class is found in the 'jetty-servlet' artifact. I think 
>>>> that if you add 'jetty-servlet-9.4.44.v20210927.jar' to the 'lib' 
>>>> directory, this problem will be fixed. You can find it here: 
>>>>
>>>> https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlet/9.4.44.v20210927/jetty-servlet-9.4.44.v20210927.jar
>>>>  
>>>> It may already be in your local repository (~/.m2/repository). 
>>>>
>>>>
>>>> I haven't figured out why the JAR is not installed. I can't find it 
>>>> in my development/test instances. 
>>>>
>>>> The 'log/handle-server.log' is probably the best place to be looking 
>>>> for clues, should there be further problems. 
>>>>
>>>> > Mark H. Wood a következőt írta (2022. szeptember 26., hétfő, 16:55:18 
>>>> > UTC+2): 
>>>> > 
>>>> > > On Mon, Sep 26, 2022 at 03:43:40AM -0700, Fatih Güneş wrote: 
>>>> > > > 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. 
>>>> > > 
>>>> > > I think this is not related to the problem. The command line tool 
>>>> has 
>>>> > > two ways of discovering which commands exist. It first tries the 
>>>> new 
>>>> > > "script"s, apparently using the command's name itself. If not found 
>>>> > > that way, it looks the command up in the older 'launcher.xml' which 
>>>> > > maps it to the implementing class. 
>>>> > > 
>>>> > > So the ServiceManager will always log this warning for a command 
>>>> which 
>>>> > > is defined in launcher.xml. 
>>>> > > 
>>>> > > If the real issue is logged, it is probably after this entry. 
>>>> > > 
>>>> > > -- 
>>>> > > Mark H. Wood 
>>>> > > Lead Technology Analyst 
>>>> > > 
>>>> > > University Library 
>>>> > > Indiana University - Purdue University Indianapolis 
>>>> > > 755 W. Michigan Street 
>>>> > > Indianapolis, IN 46202 
>>>> > > 317-274-0749 <(317)%20274-0749> <(317)%20274-0749> 
>>>> > > www.ulib.iupui.edu 
>>>> > > 
>>>> > 
>>>> > -- 
>>>> > 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/c9602b1f-5639-4e39-8e8f-06e889a079d9n%40googlegroups.com.
>>>>  
>>>>
>>>>
>>>>
>>>> -- 
>>>> Mark H. Wood 
>>>> Lead Technology Analyst 
>>>>
>>>> University Library 
>>>> Indiana University - Purdue University Indianapolis 
>>>> 755 W. Michigan Street 
>>>> Indianapolis, IN 46202 
>>>> 317-274-0749 <(317)%20274-0749> 
>>>> www.ulib.iupui.edu 
>>>>
>>> -- 
>>> 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 a topic in the 
>>> Google Groups "DSpace Technical Support" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/dspace-tech/lr7kfeLLEjg/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/dspace-tech/51b7a11a-b0bf-4864-ad1d-a81be1e0633cn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/dspace-tech/51b7a11a-b0bf-4864-ad1d-a81be1e0633cn%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/6588875b-92be-431f-8559-cdb521ede9e3n%40googlegroups.com.

Reply via email to