How to use ProGuard to securing Jakarta EE web application .war

I have issue with using ProGuard in my Jakarta EE web application. After execute my web application functionalities is disappear. Please if someone here know what’s happens, what am I missing, please tell me. Thank you very much.

Hi @edhimurwanto ,

ProGuard can break functionalities where you’re application relies on reflection. Typically you will see ClassNotFoundException, NoSuchMethodException, or NoSuchFieldException in your logs, indicating a missing class, method, or field. You need to add -keep rules for parts of code that rely on reflection, that way ProGuard will preserve them.

More information can be found on our troubleshooting manual page.

Best regards,

Jonas

1 Like