In this tutorial, user M.el Khamlichi shows us how to set up Tomcat 8 on FreeBSD 10/10.1.
Apache Tomcat is an open source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a pure Java HTTP web server environment for Java code to run in. In the simplest config Tomcat runs in a single operating system process. The process runs a Java virtual machine (JVM). Every single HTTP request from a browser to Tomcat is processed in the Tomcat process in a separate thread.
My testbox details:root@Freebsd-unixmen:~ # uname -a FreeBSD Freebsd-unixmen 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015 firstname.lastname@example.org:/usr/obj/usr/src/sys/GENERIC amd64 root@Freebsd-unixmen:~
This article has been edited from old article about install apache 7 on freebsd 9.3
Install Tomcat 8 In FreeBSD 10
I was trying to install from the ports (/usr/ports/www/tomcat7 ) then i got many issues, finally i stopped the installation and started with the pkg tool.
Now, lets start:root@Freebsd-unixmen:~ # pkg install tomcat8 Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 5 MiB 486.0kB/s 00:11 Processing entries: 100% FreeBSD repository update completed. 24086 packages processed The following 5 packages will be affected (of 0 checked): New packages to be INSTALLED: tomcat8: 8.0.18 openjdk: 7.76.13_1,1 java-zoneinfo: 2015.a javavmwrapper: 2.5 jakarta-commons-daemon: 1.0.15 The process will require 165 MiB more space. 57 MiB to be downloaded. Proceed with this action? [y/N]: