The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JBOSS on Cpanel

Discussion in 'General Discussion' started by uneedawebsite, May 26, 2003.

  1. uneedawebsite

    uneedawebsite Active Member

    Joined:
    Apr 14, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Has anyone successfully installed JBOSS on a Cpanel server? I have been told that this is much better than Tomcat and would like to make it available to my users.

    cPanel.net Support Ticket Number:
     
  2. jdawes

    jdawes Well-Known Member

    Joined:
    Aug 7, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    did anyone find out if this was safe/possible. I will be requiring jboss for some applications being developed.

    can tomcat be installed as well as jboss?
     
  3. jdawes

    jdawes Well-Known Member

    Joined:
    Aug 7, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    adding jboss through ports seemed like a good idea but doesnt look like it will work out without some manual install.


    ===> Extracting for jboss-3.2.1_1
    >> Checksum OK for jboss-3.2.1.zip.
    ===> jboss-3.2.1_1 depends on executable: unzip - found
    ===> Patching for jboss-3.2.1_1
    /usr/bin/find /usr/ports/java/jboss3/work/jboss-3.2.1 -type f \( -name '*.ba[kt]' -or -name '*.orig' \) -print0 | /usr/bin/xargs -0 /bin/rm
    ===> jboss-3.2.1_1 depends on file: /usr/local/jdk1.3.1/bin/java - not found
    ===> Verifying install for /usr/local/jdk1.3.1/bin/java in /usr/ports/java/jdk13
    ===> jdk-1.3.1p8_2 :
    Because of licensing restrictions, you must fetch the source distribution
    manually. Please access http://www.sun.com/software/java2/download.html
    with a web browser and follow the "Download" link for the
    "Java(TM) SDK 1.3.1". You will be required to log in and register,
    but you can create an account on this page. After registration and
    accepting the Sun Community Source License, select "J2SESDK" and
    download the source file, j2sdk-1_3_1-src.tar.gz. Please place this file in
    /usr/ports/distfiles.
    .*** Error code 1

    Stop in /usr/ports/java/jdk13.
    *** Error code 1

    Stop in /usr/ports/java/jboss3.
    ===> jboss-3.2.1_1 depends on file: /usr/local/jdk1.3.1/bin/java - not found
    ===> Verifying install for /usr/local/jdk1.3.1/bin/java in /usr/ports/java/jdk13
    ===> jdk-1.3.1p8_2 :
    Because of licensing restrictions, you must fetch the source distribution
    manually. Please access http://www.sun.com/software/java2/download.html
    with a web browser and follow the "Download" link for the
    "Java(TM) SDK 1.3.1". You will be required to log in and register,
    but you can create an account on this page. After registration and
    accepting the Sun Community Source License, select "J2SESDK" and
    download the source file, j2sdk-1_3_1-src.tar.gz. Please place this file in
    /usr/ports/distfiles.
    .*** Error code 1

    Stop in /usr/ports/java/jdk13.
    *** Error code 1

    Stop in /usr/ports/java/jboss3.
    ===> Cleaning for rpm-3.0.6_7
    ===> Cleaning for unzip-5.50_2
    ===> Cleaning for zip-2.3_1
    ===> Cleaning for libiconv-1.9.1_1
    ===> Cleaning for autoconf-2.13.000227_5
    ===> Cleaning for automake-1.4.5_9
    ===> Cleaning for gettext-0.11.5_1
    ===> Cleaning for glib-1.2.10_9
    ===> Cleaning for gmake-3.80
    ===> Cleaning for imake-4.3.0_1
    ===> Cleaning for libtool-1.3.5_1
    ===> Cleaning for m4-1.4_1
    ===> Cleaning for nspr-4.3_2
    ===> Cleaning for pkgconfig-0.15.0
    ===> Cleaning for popt-1.6.4
    ===> Cleaning for linux_base-7.1_5
    ===> Cleaning for javavmwrapper-1.4
    ===> Cleaning for jdk-1.3.1p8_2===> Cleaning for linux-blackdown-jdk-1.3.1_2
    ===> Cleaning for freetype2-2.1.4_1
    ===> Cleaning for expat-1.95.6_1
    ===> Cleaning for fontconfig-2.2.90_3
    ===> Cleaning for urwfonts-1.0
    ===> Cleaning for gtk-1.2.10_9
    ===> Cleaning for open-motif-2.2.2_1
    ===> Cleaning for XFree86-libraries-4.3.0_5
    ===> Cleaning for jboss-3.2.1_1
     
  4. blenard

    blenard Active Member

    Joined:
    Feb 19, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    It's not that hard. Tomcat is included as the servlet container
     
  5. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    We run pgrep jsvc and this show 2 lines:

    28093
    28094

    Why 2 lines/tasks ?
    What is jsvc?

    And we run $ [~]# java -version
    Code:
    java version "1.5.0_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_05-b05, mixed mode)
    $ [~]#
    The correct no is JEE ?
    We need setup JEE?

    How we can know version of JEE ?

    Thanks.
     
  6. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    JBoss, which is a J2EE Application Server, needs JDK installed.

    JSVC = Java Service

    There two ways to use jsvc: via a Class that implements the Daemon interface or via calling a Class that have the required methods. For example Tomcat-4.1.x uses the Daemon interface and Tomcat-5.0.x provide a Class whose methods are called by jsvc directly.

    Jsvc uses 3 processes: a launcher process, a controller process and a controlled process. The controlled process is also the main java thread, if the JVM crashes the controller will restart it in the next minute. Jsvc is a daemon process so it should be started as root and the -user parameter allows to downgrade to an unprivileged user. When the -wait parameter is used, the launcher process waits until the controller says "I am ready", otherwise it returns after creating the controller process.

    The two JSVC processes are running are one as root and one as tomcat. The root user jsvc process is parent to the tomcat user jsvc process. You'll also notice from analysis of netstat's output that the tomcat user jsvc process is the only one listening to ports. The one running as root is just there to spawn the true tomcat process with access to privileged ports. I'm sure the root user jsvc process is also the one that takes a kill signal and sends a normal shutdown command to the other.

    Only the unprivileged child will handle incoming requests. The privileged parent just sits there and waits for signals normally. It is the same way that Apache httpd works. It works around the fact that most JVM vendors on *nix systems register their own signal handler for SIGTERM and SIGHUP.

    You don't need to have cPanel installed to run JBoss, it can be run on a standalone machine/server too..

    Try downloading just about any Linux version of JBoss, and give it a try.

    Simply go to http://sourceforge.net/projects/jboss/ or http://www.jboss.org/jbossweb/downloads/ and download it.

    Here are the installation reference links:
    Link1 Link2 Link3 Link4
     
    #6 viraj, Jun 5, 2008
    Last edited: Jun 5, 2008
  7. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Thanks viraj.

    Please patience. :eek:

    This machine RUN JAVA and JDK.

    We need install JEE or JEE is running ?
    How we can confirm?
     
Loading...

Share This Page