Solved Why no new version Tomcat9 in the pkg repositories

Hello everyone,
I need some advice.
I'm trying to install a new Raspberry PI 2 based web application server tonight, pkg install openjdk8 is no problem, but I can't find the latest version of Tomcat9 from pkg list(only tomcat6). but it clearly listed in my another FreeBSD server(amd64). both pkg update -f executed. I confused if the sd version image making the difference, could someone help, thank you.

20180627013456.png
 
Did you update package repository on a machine with old "tomcat"?
Try to execute # pkg update -f
I'm also using 11.1-RELEASE and I have many "tomcats" in package repo.
RtB1OlR.png
 
i got some information. i build ports and tried to install tomcat9 from ports. then i had the result as the screenshot, it mentioned daemon is not good with arm.
20180627033907.png
 
Also check /etc/pkg/FreeBSD.conf and check which repository you're using. By default the URL is set to use 'quarterly' which means just that: any significant updates will happen every 3 months or so.

Change quarterly to latest, refresh your database using # pkg update and you should be good to go. Still, considering the bizarre search results and me just verifying that Tomcat 9 is within quarterly I think you have some other issues there.

First triple check your config file(s), also cross reference against anything you might have dumped in /usr/local/etc. Then: # pkg update -f, see if that does the trick.

Could you also share the output from uname -a?
 
Change quarterly to latest
No, that's a very bad idea for armv6 where (at least for FreeBSD 11) only the quarterly repository is ever updated on https://pkg.freebsd.org!
and me just verifying that Tomcat 9 is within quarterly I think you have some other issues there.
devel/jakarta-commons-daemon (a dependency of www/tomcat9) is marked as broken on armv6 so no it's not in quarterly.

pangbuddy Can you try applying this patch to devel/jakarta-commons-daemon? https://people.freebsd.org/~tobik/jakarta-commons-daemon.diff
 
I cannot try I am on amd64, but devel/jakarta-commons-daemon:
Install.txt:
Code:
Depending on your JDK layout, configure might fail to find the JNI

machine dependant include file (jni_md.h). If that's the case use the

--with-os-type=<subdir> parameter where subdir points to the directory

within JDK include directory containing jni_md.h file.
 
No, that's a very bad idea for armv6 where (at least for FreeBSD 11) only the quarterly repository is ever updated on https://pkg.freebsd.org!

devel/jakarta-commons-daemon (a dependency of www/tomcat9) is marked as broken on armv6 so no it's not in quarterly.

pangbuddy Can you try applying this patch to devel/jakarta-commons-daemon? https://people.freebsd.org/~tobik/jakarta-commons-daemon.diff

good news, your patch is working! tomcat9 is installed and running now. problem solved , thanks to everyone!


PS: a new story. the java is running very very slow, it takes 100% CPU and spending 20 seconds to open one web page.
 
good news, your patch is working! tomcat9 is installed and running now. problem solved , thanks to everyone!


PS: a new story. the java is running very very slow, it takes 100% CPU and spending 20 seconds to open one web page.
Dunno if you still run tomcat on your arm board. I've ported openjdk11 in mixed mode, it should be faster than openjdk8. If you want to give it a try:
https://github.com/battleblow/openjdk-jdk11u/pull/74 and the required bootstrap : http://mikael.urankar.free.fr/FreeBSD/arm/bootstrap-openjdk11-arm-11.0.2.9.2.tar.xz
 
Back
Top