Hi,

we have an appliation that uses Jetty in an embedded way since "the
begin of the world" (the configuration files have had a DTD-declaration
for Jetty 6... ;-)

I'm in the process of migrating from 9.4 to 10.0 and after going the
simple way by replacing the 9.4-jars with the jars of 10.0 the server
is starting up, programmatically added servlets are executed but
WARs loaded by the DeploymentManager lead to errors. I assume that
this simple approach is the reason. When starting up the following
messages show up:

Starting HTTP-server 'Main Server'
16:36:21.005+0200 [main] INFO  org.eclipse.jetty.server.Server - jetty-10.0.9; 
built: 2022-03-30T16:46:32.527Z; git: a9eaf8d5d73369acf610ce88f850c0d56c4b1113; 
jvm 11.0.14+9-LTS
16:36:21.008+0200 [main] INFO  o.e.jetty.server.RequestLogWriter - Opened 
D:\ISDW_4_5\logs\2022_04_27.request.log
16:36:21.037+0200 [main] INFO  o.e.j.d.p.ScanningAppProvider - Deployment 
monitor [file:///D:/ISDW_4_5/webapps/]
16:36:21.103+0200 [main] INFO  o.e.j.a.AnnotationConfiguration - Error:  for 
o.e.j.w.WebAppContext@32f1fafe{root,/,file:///D:/ISDW_4_5/webapps/root/,STARTING}{D:\ISDW_4_5\webapps\root}
16:36:21.107+0200 [main] INFO  o.e.j.a.AnnotationConfiguration - Error:  for 
o.e.j.w.WebAppContext@32f1fafe{root,/,file:///D:/ISDW_4_5/webapps/root/,STARTING}{D:\ISDW_4_5\webapps\root}
16:36:21.112+0200 [main] INFO  o.e.j.w.StandardDescriptorProcessor - NO JSP 
Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
16:36:21.129+0200 [main] WARN  org.eclipse.jetty.servlet.BaseHolder - Unable to 
load class org.eclipse.jetty.servlet.listener.ELContextCleaner
java.lang.ClassNotFoundException: 
org.eclipse.jetty.servlet.listener.ELContextCleaner
        at 
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:531)
[...]
16:36:21.133+0200 [main] WARN  o.eclipse.jetty.webapp.WebAppContext - Failed 
startup of context 
o.e.j.w.WebAppContext@32f1fafe{root,/,file:///D:/ISDW_4_5/webapps/root/,UNAVAILABLE}{D:\ISDW_4_5\webapps\root}
javax.servlet.UnavailableException: Class loading error for holder 
org.eclipse.jetty.servlet.listener.ELContextCleaner@7061622{src=DESCRIPTOR:file:///D:/ISDW_4_5/etc/webdefault.xml}
        at org.eclipse.jetty.servlet.BaseHolder.doStart(BaseHolder.java:104)
[...]
16:36:21.159+0200 [main] INFO  o.e.jetty.server.AbstractConnector - Started 
ServerConnector@5d152bcd{HTTP/1.1, (http/1.1)}{0.0.0.0:80}
16:36:21.183+0200 [main] INFO  org.eclipse.jetty.server.Server - Started Main 
Server @30804ms

I'm wondering about the claim that JettyJspServlet and ELContextCleaner can't be
found. Both are in the classpath and can be found in the class starting the 
server
(checked with Class.forName).

What's the best way to embed Jetty 10? Resources online I've found only
cover Jetty up to version 9. The online documentation (Operation
and Programming don't mention Embedding at all - at least in the TOC).


Thanks and best regards,

Lothar Kimmeringer
_______________________________________________
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to