Dana,

On 4/10/21 16:34, dana whitelow wrote:
Thanks. I used  the migration tool.
The problem is still there.
I believe this simple *.nix shell script can do a better job
  grep -RiIl 'javax' | xargs sed -i 's/javax/jakarta/g'

That will migrate lots of APIs which haven't moved to Jakarta. It's not javax.everything. It's only javax.some-things. And this should only affect package imports or fully-qualified class names. If the text "javax" appears in some comment somewhere, you don't want to replace it with "jakarta", do you?

Quick grep explanation:

     -R - recursive search
     -i - case-insensitive

Why insensitive? 'javax' should be case-sensitive.

     -I - skip binary files (you want text, right?)

Note that the migration tool will re-write binaries.

-chris

-----Original Message-----
From: Усманов Азат Анварович <usma...@ieml.ru>
To: Tomcat Users List <users@tomcat.apache.org>; dana whitelow 
<danawhite...@aol.com>
Sent: Sat, 10 Apr 2021 20:59
Subject: RE: version change failure

#yiv8603607814 P {margin-top:0;margin-bottom:0;}Dana, Please see the migration 
-guide  (https://tomcat.apache.org/migration-10.html)  here is a quote from it "
Apache Tomcat 10 supports the Jakarta Servlet 5.0, Jakarta Server Pages 3.0, Jakarta 
Expression Language 4.0, JakartaWebSocket 2.0 and Jakarta Authentication 2.0 
specifications.There is a significant breaking change between Tomcat 9.0.x and 
Tomcat 10.0.x. The Java package used by the specification APIs has changed from 
javax... to jakarta.... It will be necessary to recompile web applications against 
the new APIs. Alternatively, users can convert an existing WAR file from Java EE 8 
to Jakarta EE 9 using the Apache Tomcat migration tool for Jakarta EE."
С уважением,Азат Усманов
Отдел разработки программного обеспечения
Казанский инновационный университет имени В.Г.Тимирясова

От: dana whitelow <danawhite...@aol.com.INVALID>
Отправлено: 10 апреля 2021 г. 22:08
Кому: users@tomcat.apache.org <users@tomcat.apache.org>
Тема: version change failure Hi ,
I changed tomcat version
from
<version>8.5.38</version>
to
<version>10.0.5</version>
The setup was running without web.xml and it was picking up index.jsp automatically
but with the new version there is a connection refused error.
what has changed  ? Thanks danawhite...@aol.com


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

Reply via email to