[email protected]
Dear Chuck Caldarale,
THANKS for your help/ rolling up the sleeves now.
Some of us have just given up on Windows entirelySure.I have installed
tomcat also on two unix boxes among which ubuntu,2019 before the transition now
required.Dealing here with a legacy situation.[[[ For your chuckles:: j2ee.jar
was used in tomcat4.04 ]]]
THANKS AGAIN.{{{ Purpose of life: helping other people ----- you did it. }}}
dennis de champeaux
--------------------------------------------------------------
Home page: rs6.risingnet.net/~ddccMarketing site: www . OntoOO.comKindle
books: Side Effects: Impacts on the 21st
Century::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09MHJ5W48
Even if not
true::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09Y4WR9J7 9/11::
They had the Sun in their
Eyeshttps://www.amazon.com/11-They-had-their-Eyes-ebook/dp/B0CMQ2WSK9https://www.amazon.nl/dp/B0CMQ2WSK9
On Saturday, May 18, 2024 at 10:11:09 PM PDT, Chuck Caldarale
<[email protected]> wrote:
> On May 18, 2024, at 22:40, DdC <[email protected]> wrote:
>
> Gave up on installing 9.0.88. on Win10.
Some of us have just given up on Windows entirely…
> Succeeded with 10.1.23 andjdk-18.0.2.1.The lib directory has j2ee.jar, which
> I have used in earliertomcat versions.
Not lately. I can’t recall when j2ee.jar was last useful, but I’m pretty sure
it’s been well over a decade. You most likely need to delete it.
> Compilation of a system was OK apart from some warnings because Java
> haschanged since the code was written.There is a web.xml file in
> WEB-INF.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 ... )
First, look at the Tomcat migration guides:
https://tomcat.apache.org/migration.html
You’ll need to review each one, starting with the last version of Tomcat you
were using, up to the one for 10.1. In particular, when Oracle gave control of
the Java EE spec to Eclipse, the classes were renamed from javax to jakarta for
legal reasons, so all code using the old class names must be updated to the
revised ones. This can be done with a migration tool supplied by Tomcat:
https://tomcat.apache.org/download-migration.cgi
or by placing old apps in the webapps-javaee directory rather than webapps and
letting Tomcat convert them automatically. Look at the documentation for the
legacyAppBase attribute of the <Host> element:
https://tomcat.apache.org/tomcat-10.1-doc/config/host.html#Common_Attributes
- Chuck