ncsa / oa4mp

Open Authorization for MyProxy

Home Page:https://cilogon.github.io/oa4mp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tomcat 10 support

jbasney opened this issue · comments

I'm running into some issues with https://github.com/ncsa/OA4MP/releases/download/v4.3/client-4.3.tar under apache-tomcat-10.0.0-M1.

First one was java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener.
Adding javax.servlet-api-3.1.0.jar to lib seemed to fix that.

Second one was java.lang.ClassCastException: edu.uiuc.ncsa.security.servlet.MyTomcatFilter cannot be cast to jakarta.servlet.Filter.

I'm going to try switching to apache-tomcat-7 for now.

Well that's annoying. My IDE does not support Tomcat 10 yet and there is probably some tweaking that has to go on at a low level (if you are getting class cast exceptions for code that hasn't changed in 5 years, it ain't me.) When Intellij supports tomcat 10, I can retry this.

https://stackoverflow.com/questions/60439712/application-server-libraries-not-found-in-intellij

And another data point, one recent survey showed that about 75% of enterprises were still running under Java 8 since the migration forward is painful. Next most popular was Java 11 and very few people used anything past that, partly because Java 11 has LTS and the next version of Java with that is probably going to be 17. (They just released Java 15). One large change is that with Java 14, they are now doing a release every 6 months, so version numbers don't correspond to anything in particular hence people are mostly ignoring anything that is not LTS.