Results 1 to 7 of 7

Thread: Tomcat Installation on FreeBSD

  1. #1
    Join Date
    Apr 2010
    Posts
    79

    Tomcat Installation on FreeBSD

    I want to establish of Java and running on FreeBSD, with the least amount of aggravation. I prepare to spend a day complete such a project since it will take time to assemble all the pieces and build them individually, then as a whole. We also want to know how to install Famous Servlet and JSP Jakarta Tomcat container on the system FreeBSD operating. Please help. Thanks.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Tomcat Installation on FreeBSD

    It is very easy to install Tomcat on a FreeBSD machine, after installing the required Java environment, what we have done previously. To install Tomcat on FreeBSD, follow the steps below:

    1. Follow the steps above to install the Java environment necessary.
    2. Set an environment variable JAVA_HOME pointing the directory where you installed the JDK (the following example points to a native version of the JDK). If you use as shell sh(1)You can use the following command:

    # export JAVA_HOME = / usr/local/jdk1.3.1

    If you use csh(1) or shell compatible, you must use the command:

    # setenv JAVA_HOME / usr/local/jdk1.3.1

    This environment variable should be made permanent by adding either in . Profile whether . CshrcIn depending on the shell you use. This variable is crucial for the functioning of all Java programs, including Tomcat itself.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Tomcat Installation on FreeBSD

    You need to download the binary distribution''`` Tomcat on site Jakarta, which is located http://jakarta.apache.org/. The download file is called jakarta-tomcat-4.0.3.tar.gz. The archived and compressed file that we downloaded in the previous step using Extensions of `` GNU'' special. In order to de-archive and unpack, we will need to install GNU Tar (archivers / gtar)By doing the following:
    # cd / usr / ports / archivers / gtar & & make all install clean
    # De-archive and decompress the file jakarta-tomcat-4.0.3.tar.gz the directory / Usr / local and rename the directory tomcat-4.0 for easy reference:
    # cd / usr / local
    # gtar zxvf jakarta-tomcat-4.0.3.tar.gz
    # * ls jakarta
    jakarta-tomcat-4.0.3
    # mv jakarta-tomcat-4.0.3 tomcat-4.0

    You can erase jakarta-tomcat-4.0.3.tar.gz if you want.
    Last edited by Zecho; 16-06-2010 at 12:49 AM.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Tomcat Installation on FreeBSD

    We have completed the installation of Tomcat. The following example shows how to start the Tomcat server:
    # cd / usr/local/tomcat-4.0/bin
    # . / Startup.sh (for the launch of Tomcat)

    You can check if your Tomcat server has started in visiting the following URL: http://127.0.0.1:8080 or http://localhost:8080. To stop Tomcat:
    # cd / usr/local/tomcat-4.0/bin
    # . / Shutdown.sh

    Files startup.sh and shutdown.sh are interfaces to the procedure executable catalina.sh located in the same directory; If you want to run Tomcat automatically boot made:
    # cd / usr / local / etc / rc.d
    # ln-s / usr/local/tomcat-4.0/bin/catalina.sh

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Tomcat Installation on FreeBSD

    If your port 8080 is used by another service, you can change it by editing the file server.xml in your directory conf / Tomcat. In the example below, the port will be changed to 80, assuming there is no service running on that port.
    # cd / usr/local/tomcat-4.0/conf
    # fgrep-n 8080 server.xml
    ~ 65: By default, a non-SSL HTTP/1.1 Connector on port IS Established 8080.
    ~ 89: port = "8080" minProcessors = "5" maxProcessors = "75"
    # cat server.xml | sed s/8080/80 /> server.xml

  6. #6
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Tomcat Installation on FreeBSD

    It is necessary to get the source url specified in the error of the makefile and place them in / usr / ports / distfiles / manually. To do this, you will even have you on the site engistrer sun, all because of licensing (thank you Sun) on the JDK and JRE you are installing. After that, he'll just re-running make install clean in / usr/ports/www/tomcat55 / and tadaaam. The best part is that after all this that you have a JRE and JDK functional under freebsd. Pretty cool!
    Last edited by absolute55; 16-06-2010 at 01:06 AM.

  7. #7
    Join Date
    Feb 2010
    Posts
    524

    Re: Tomcat Installation on FreeBSD

    You can "compile" javac and execute with java. Then go to: <adresse_server>: 8109, you will find the documentation on the module admin (among others) and through it you can deploy. War (WebArchive) Servlets and JSP. For more read the configuration file server.xml in the directory $ CATALINA_HOME / conf /. If you want to deploy your war in click-click mode since netbeans assisted mental, it will unfortunately have to install glassfish tomcat is a super kind that a lot of other things.

Similar Threads

  1. Mac OS X vs GNU Linux & FreeBSD
    By Iker in forum Operating Systems
    Replies: 4
    Last Post: 14-12-2010, 04:52 AM
  2. Debian GNU / Linux vs FreeBSD
    By Purshottam Y in forum Software Development
    Replies: 3
    Last Post: 14-12-2010, 03:17 AM
  3. Php on FreeBSD 8.0
    By Angelica Maria in forum Windows Software
    Replies: 4
    Last Post: 21-04-2010, 03:49 PM
  4. Use CUDA on FreeBSD
    By Beverly Archer in forum Operating Systems
    Replies: 4
    Last Post: 02-04-2010, 01:45 PM
  5. FreeBSD 7.2 released for download
    By Dr. V in forum Operating Systems
    Replies: 3
    Last Post: 04-05-2009, 01:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,135,945.84582 seconds with 17 queries