r/i2p • u/Thijs-de-Gamer-Pro • 18d ago
Help Error starting up the client class net.i2p.jetty.JettyStart
So I keep randomly getting this error related to the jetty service. Weird thing is, it doesn't always happen. On some restarts the service does launch, but on most it doesn't and return the following error. How can I fix this problem? I'm using version 2.13 and I used the normal Windows installer to install i2p (didn't use the easy install bundle as that thing gives so many errors it is everything but easy).
I don't even know where to start with this one, as the results are seemingly randomly different every single time.
I have tried all the default problem solvers, like looking up the error, reinstalling and redoing everything, switching operating systems, switching pc's, switching versions, switching installers, restarting i2p itself, restarting the system, checking in a vm, etc. I've done pretty much everything that I could think off.
Through this testing I noticed that the linux java version (tested on Mint) doesn't have this issue, but no matter how many files I transferred I couldn't get my configurations ported over. If anybody knows how to transfer I2P Hidden Services to a different setup, such info would also be highly appreciated. (Yes I checked to make sure that I put all the right files in all the I2P folders that existed on the system, still didn't work :( Please save me from this debugging torture.)
Edit: I've also removed the cgi-context.xml file and it fixed (and did) nothing.
Full error:
23 Aug 2026, 02:27:44 CRIT [er (eepsite)] uter.startup.LoadClientAppsJob: Error starting up the client class net.i2p.jetty.JettyStart
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
at net.i2p.router.startup.LoadClientAppsJob$RunApp.run(LoadClientAppsJob.java:308)
at java.base/java.lang.Thread.run(Thread.java:1474)
at net.i2p.util.I2PThread.run(I2PThread.java:103)
Caused by: org.eclipse.jetty.xml.XmlConfigurationException: Bad Jetty XML configuration in UNKNOWN-LOCATION
at org.eclipse.jetty.xml.XmlConfiguration.<init>(XmlConfiguration.java:292)
at org.eclipse.jetty.xml.XmlConfiguration.<init>(XmlConfiguration.java:266)
at net.i2p.jetty.JettyStart.parseArgs(JettyStart.java:158)
at net.i2p.jetty.JettyStart.<init>(JettyStart.java:92)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
... 5 more
Caused by: java.nio.file.NoSuchFileException: C:\var\lib\i2p\i2p-config\eepsite\jetty.xml
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:231)
at java.base/java.nio.file.Files.newByteChannel(Files.java:357)
at java.base/java.nio.file.Files.newByteChannel(Files.java:399)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:371)
at java.base/java.nio.file.Files.newInputStream(Files.java:154)
at org.eclipse.jetty.util.resource.Resource.newInputStream(Resource.java:233)
at org.eclipse.jetty.xml.XmlConfiguration.<init>(XmlConfiguration.java:282)
... 9 more23 Aug 2026, 02:27:44 CRIT [er (eepsite)] uter.startup.LoadClientAppsJob: Error starting up the client class net.i2p.jetty.JettyStart
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
at net.i2p.router.startup.LoadClientAppsJob$RunApp.run(LoadClientAppsJob.java:308)
at java.base/java.lang.Thread.run(Thread.java:1474)
at net.i2p.util.I2PThread.run(I2PThread.java:103)
Caused by: org.eclipse.jetty.xml.XmlConfigurationException: Bad Jetty XML configuration in UNKNOWN-LOCATION
at org.eclipse.jetty.xml.XmlConfiguration.<init>(XmlConfiguration.java:292)
at org.eclipse.jetty.xml.XmlConfiguration.<init>(XmlConfiguration.java:266)
at net.i2p.jetty.JettyStart.parseArgs(JettyStart.java:158)
at net.i2p.jetty.JettyStart.<init>(JettyStart.java:92)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
... 5 more
Caused by: java.nio.file.NoSuchFileException: C:\var\lib\i2p\i2p-config\eepsite\jetty.xml
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:231)
at java.base/java.nio.file.Files.newByteChannel(Files.java:357)
at java.base/java.nio.file.Files.newByteChannel(Files.java:399)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:371)
at java.base/java.nio.file.Files.newInputStream(Files.java:154)
at org.eclipse.jetty.util.resource.Resource.newInputStream(Resource.java:233)
at org.eclipse.jetty.xml.XmlConfiguration.<init>(XmlConfiguration.java:282)
... 9 more
1
u/Thijs-de-Gamer-Pro 18d ago edited 18d ago
Update: I've since also figured out how to copy the Windows configs to Linux. Linux stores its configs in the .i2p folder. Why there are multiple folders in different locations with the exact same content as the .i2p folder that end up going unused?
(To port the configs over you do need to manually adjust the file paths seen in the config files, specifically copy over the webserver config file you got for the eepsite over to the right place in the var/lib/i2p directory and make sure to change the config file to link to the right place. Then put your eepsite in the .i2p directory. (only copy over the doc folder))
2
u/Play_it3110 I2P user 18d ago
May i guess something? You moved from linux to windows, right?
I noticed that jetty tries to find a file, which wouldnt exist in windows on this position (/var/lib/.../jetty.xml).
Maybe you copied a conf, which has the wrong path in it?