Hello,

On 5/18/24 23:40, DdC wrote:
Gave up on installing 9.0.88. on Win10.

Why did you give up? ZIP installation is a single command (either via CMD or UI shell). EXE installer is pretty straightforward, too. There's also a third-party installer that has a few more features including the ability to upgrade an existing installation. (I recommend against upgrading an existing installation specifically, but that's not a recommendation against that third-party installer.)

Do you mean you gave up trying to get your application running on it?

Succeeded with  10.1.23 andjdk-18.0.2.1.

Why Java 18? It's been EOL for years at this point. You should use Java 21 these days for anything new.

Did you know that Tomcat 10 is fundamentally different than previous versions?

The lib directory has j2ee.jar, which I have used in earliertomcat versions.

What does j2ee.jar contain? That seems so unspecific as to be problematic.

Compilation of a system was OK apart from some warnings because Java
has changed since the code was written.
?

There is a web.xml file in WEB-INF.

Okay...

Invoking a servlet gives a 500 error with the ominous complaint:
class su.SUlogin cannot be cast to jakarta.servlet.Servlet
(su.SUlogin is in unnamed module of loader org.apache.catalina    ...
) Looks like that my code is quite out of date.Any suggestion for a
fix?Going back to an earlier tomcat?
Did you read the migration guide for Tomcat 10.1?

I would highly recommend going back to 9.0 for the time being. If you remove j2ee.jar, does your project compile? If not, what errors do you get (missing classes, of course, but what major packages are missing)?

j2ee.jar sounds like an uber-jar with "everything we need in it" without any specificity. You should replace that with modern, separate libraries that support your application.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to