Opened 2 years ago

Closed 2 years ago

#2385 closed defect (fixed)

Orchid plugin 1.2.2-0.4-b1 doesn't work with I2P in Debian sid/buster (w/ Jetty 9.4)

Reported by: Masayuki Hatta Owned by: zzz
Priority: minor Milestone: 0.9.38
Component: apps/plugins Version: 0.9.37
Keywords: orchid Cc: Masayuki Hatta, zzz
Parent Tickets: Sensitive: no


Trying to run new Orchid plugin gives:

Error starting plugin orchid: java.lang.ClassNotFoundException?: org.eclipse.jetty.webapp.WebInfConfiguration?

Debian/Ubuntu? have to use newer Jetty and Tomcat (so manually patched, see #2098), I guess that might cause this.


Change History (7)

comment:1 Changed 2 years ago by zzz

Need the full stack trace from the logs please.

comment:2 Changed 2 years ago by zzz

from OP:

    2019/01/18 0:50:05 WARN  [pdate Runner] rg.eclipse.jetty.server.Server: Failed startup of context o.e.j.w.WebAppContext@5e49c885{/orchid,null,UNAVAILABLE}{/orchid.war}: java.lang.ClassNotFoundException: org.eclipse.jetty.webapp.WebInfConfiguration
    2019/01/18 0:50:05 ERROR [pdate Runner] uter.update.PluginUpdateRunner: Error starting plugin orchid 1.2.2-0.4-b1
    java.lang.ClassNotFoundException: org.eclipse.jetty.webapp.WebInfConfiguration
    	at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(
    	at java.base/java.lang.ClassLoader.loadClass(
    	at org.eclipse.jetty.util.Loader.loadClass(
    	at org.eclipse.jetty.webapp.WebAppContext.loadConfigurations(
    	at org.eclipse.jetty.webapp.WebAppContext.preConfigure(
    	at org.eclipse.jetty.webapp.WebAppContext.doStart(
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
    	at net.i2p.router.web.WebAppStarter.startWebApp(
    	at net.i2p.router.web.PluginStarter.startPlugin(
    	at net.i2p.router.update.PluginUpdateRunner.processFinal(
    	at net.i2p.router.update.PluginUpdateRunner.processSU3(
    	at net.i2p.router.update.PluginUpdateRunner.transferComplete(
    	at net.i2p.util.EepGet.doFetch(
    	at net.i2p.util.EepGet.fetch(
    	at net.i2p.router.update.PluginUpdateRunner.update(

comment:3 Changed 2 years ago by zzz

Status: newaccepted

reproduced here using i2p.i2p.zzz.jetty94 branch

comment:4 Changed 2 years ago by zzz

Some other plugins have the same issue:
AyuDownloader?, i2pbote, and i2psnark-rpc.

Will try to find the common cause.

Note that the WebInfConfiguration? class is present in 9.4, and in the same jar jetty-webapp.jar as the class that's trying to load it (WebAppContext?), so not quite sure what's happening here.

comment:5 Changed 2 years ago by zzz

fails on java 8, 9, and 11 (yes in theory jetty 9.4 only works on java 9 but haven't seen any other issues on 8)

comment:6 Changed 2 years ago by zzz

Milestone: undecided0.9.38

I have a fix on the router side, will check it in tomorrow after some more testing, but before the 38 deadline.

comment:7 Changed 2 years ago by zzz

Resolution: fixed
Status: acceptedclosed

In a81bbe494cfc531e312f3d5c61f95a0d7e04c8af 0.9.37-18-rc, also propped to i2p.i2p.zzz.jetty94

Note: See TracTickets for help on using tickets.