Re: Compatibility, 32 bit ..
On 10/24/22 13:16, Mark Thomas wrote: On 24/10/2022 20:04, John Dale (DB2DOM) wrote: Mark and Chris - do you guys have a favorite flavor of Linux that has yielded good results? I use Ubuntu for my various test environments and the servers I run at home. Stuff I know well (Tomcat, Java, etc) I tend to install manually rather than using the package manager. +1000 for Ubuntu. Many years ago I used and loved Debian. I have found that Ubuntu retains all the things I love about Debian but has a much larger selection of packages available, due to Debian's strict adherence to only including software that meets DFSG requirements. I mostly use Ubuntu packages, and in some cases official project repos for Ubuntu (gitlab, zabbix, dovecot, etc), but there a few things that I prefer to use official downloads or source to install. Solr and haproxy are the top two in that category. Every time I try to do something useful on an RHEL clone, I find that most of the things I love about my Ubuntu servers don't exist. I can usually find a way to accomplish what I'm after, but it takes a lot more effort and frustration to get it working. In general, .deb packages work better than .rpm packages, and include many convenience features that make them easier to use. Getting back to the original post: has not been available in 32 bit flavors for a number of major releases. But Debian still supports it. A link to a network install ISO, which will require Internet access: https://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-11.5.0-i386-netinst.iso If the Internet requirement is a problem, you can find larger DVD images that can install a full system without Internet. SUCCESS! I built a VM and installed that Debian ISO on it. I did not install a GUI. Once I got it booted up, I was able to do "apt update && apt install -y openjdk-11-jdk" (as root) with no trouble. If you just need the JRE, you can install openjdk-11-jre instead. Once Java was installed, I downloaded the latest tomcat 10, extracted it, and started it. I was then able to access port 8080 in a browser and see the "successfully installed Tomcat" page. Note that 32 bit Java is limited to a 2GB heap. Limitations like this are one of the primary reasons that 32 bit support is rapidly disappearing from the software world. Chances are of course that your 32 bit system won't really have an issue with that limitation. The Linux kernel dropped support for 386 and 486 CPUs some time ago. So I hope your 32 bit system has at least a Pentium CPU. I am not positive that i586 support is still around in Debian, but i686 is there for sure. On the 32 bit VM: root@debian32bit:/opt/apache-tomcat-10.0.27# uname -a Linux debian32bit 5.10.0-19-686-pae #1 SMP Debian 5.10.149-2 (2022-10-21) i686 GNU/Linux elyograg@debian32bit:~$ java --version openjdk 11.0.16 2022-07-19 OpenJDK Runtime Environment (build 11.0.16+8-post-Debian-1deb11u1) OpenJDK Server VM (build 11.0.16+8-post-Debian-1deb11u1, mixed mode, sharing) On a 64-bit system: elyograg@smeagol:~$ uname -a Linux smeagol 5.17.0-1020-oem #21-Ubuntu SMP PREEMPT Fri Oct 14 09:33:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux elyograg@smeagol:~$ java -version openjdk version "11.0.16" 2022-07-19 OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu122.04) OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu122.04, mixed mode, sharing) Thanks, Shawn - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Compatibility, 32 bit ..
Java 9 dropped 32-bit so it only has 64-bit by default. Maybe you have Java 8 instead of Java 9. Check this: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04 Try using Tomcat 8.5 if you want to have 32-bit. -Harri -Original Message- From: John Dale (DB2DOM) Sent: maanantai 24. lokakuuta 2022 22.03 To: Tomcat Users List Subject: Re: Compatibility, 32 bit .. [Et saa yleensä sähköpostia jcdw...@gmail.com. Lisätietoja siitä, miksi tämä on tärkeää, on osoitteessa https://aka.ms/LearnAboutSenderIdentification ] Thank you. Would you agree with me that this should be an ubuntu bug report? I installed using apt-get. John On 10/24/22, Mark Thomas wrote: > On 24/10/2022 19:38, John Dale (DB2DOM) wrote: >> Would Tomcat 10 work with Java 8? > > No. Tomcat 10.1.x requires a minimum of Java 11. > > Details of Tomcat versions, minimum Java versions and other useful > information: > > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftomc > at.apache.org%2Fwhichversion.htmldata=05%7C01%7Charri.pesonen%40s > inch.com%7C14e753cc45db4bab086608dab5f28056%7C3b518aae89214a7b8497619d > 756ce20e%7C0%7C0%7C638022350412584072%7CUnknown%7CTWFpbGZsb3d8eyJWIjoi > MC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7 > C%7Csdata=m6n2gaXUVUU39CvV0AtbByiUWfqDCK%2F7w7pLsEzcSr8%3Dre > served=0 > > Mark > > >> >> Thinking I might downgrade the JDK. >> >> >> On 10/24/22, Mark Thomas wrote: >>> >>> >>> On 24/10/2022 17:00, John Dale (DB2DOM) wrote: Hi Mark; Thanks for taking a look. Below is more information. Sincerely, John Dale, MS MIS Spearfish, SD USA - Tomcat version: 10.0.27 (unzipped, chmod 770 on catalina.sh before cli: catalina.sh run) java version: openjdk version "9-internal" uname -m: i686 Ubuntu 18.0.4 First error in logs: 24-Oct-2022 09:52:24.411 SEVERE [main] org.apache.tomcat.util.compat.Jre9Compat. Failed to create references to Java 9 classes and methods java.lang.ClassNotFoundException: java.lang.ModuleLayer >>> >>> You appear to have a broken JRE. That class should always be present >>> in Java 9 onwards. >>> >>> Mark >>> >>> at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:384) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419) at java.lang.Class.forName0(java.base@9-internal/Native Method) at java.lang.Class.forName(java.base@9-internal/Class.java:294) at org.apache.tomcat.util.compat.Jre9Compat.(Jre9Compat.java:85) at org.apache.tomcat.util.compat.JreCompat.(JreCompat.java:72) at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:282) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:135) at org.apache.catalina.startup.Catalina.load(Catalina.java:747) at org.apache.catalina.startup.Catalina.load(Catalina.java:769) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/N ative Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:305) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475) On 10/24/22, Mark Thomas wrote: > On 24/10/2022 02:01, John Dale (DB2DOM) wrote: >> Hi Everyone; >> >> I've had a few requests to refurbish some old 32 bit dell towers. >> >> So, I'm throwing ubuntu on them and bringing up a >> MySQL->DB2DOM->Tomcat >> stack. >> >> Unfortunately, Tomcat doesn't want to start with openjdk 9 that >> is packaged with 32 bit ubuntu. > > Tomcat works happily with 32-bit and 64-bit Java. > >> Can someone give me a pointer to what works best? > Perhaps if you told us what Tomcat version you were using and > showed us what the error message was we'd be able to