New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Failed to start i2ptunnel java.lang.NoClassDefFoundError: jakarta/servlet/ServletException #42
Comments
Hi, I was facing the same issue and managed to find a fix, it's just that you need to install libjakarta-servelet-api-java package using apt. Then find the jakarta jar file and copy it to i2p lib directory. While doing this make sure your i2prouter is not running. Once the said jar file is copied, start your i2prouter instance. This should fix the issue. If you still need help sorting this issue, I'm happy to share a bash script. Enjoy privacy, do good stuff. ✌🏻 |
#!/bin/bash sudo apt install -y libjakarta-servlet-api-java #this is optional sudo cp /usr/share/java/jakarta-servlet-api-5.0.0.jar /usr/share/i2p/lib/ |
My dude, thanks! |
Issue resolved by manually installing jakarta-servlet-api, and adding jar to i2p lib folder, as suggested by @themonk14 |
I previously, for version 2.0.0 I believe, followed the instructions for installation on debian here.
I built this as a docker image.
Everything worked fine.
Today I basically rebuilt it all, to pull in the latest i2p packages.
When starting i2p router, I see errors like these in the logs:
Obviously nothing works.
This feels like a missed dependency in the i2p package, but maybe I'm mistaken and there is some way to fix this from the OS/container side?
OS used: debian bookworm (
slim
base image tag)JDK: OpenJDK 17-jre (installed as dependency for i2p)
The same behaviour exist on x86 and armhf.
The text was updated successfully, but these errors were encountered: