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.

mod_resin not installing?

Discussion in 'cPanel Developers' started by bubbles, Mar 27, 2005.

  1. bubbles

    bubbles Registered

    Joined:
    May 17, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I am running WHM 9.9.9 and cPanel 9.9.9-S15
    I tried to install modresin via the addon modules page in WHM.
    At the end I saw the message To add JSP/Servlets to a domain run /scripts/addresin, so I did. But I got this message "Sorry you must install the CPanel Resin addon module.".
    humm. I thought I just did that.

    So, I went back to the addon modules page in WHM. I uninstalled modresin. Then I installed it again. I rebooted my system and I still got the message "Sorry you must install the CPanel Resin addon module."

    I looked at the addresin script and saw it was looking for /usr/local/apache/libexec/mod_caucho.so. Further down in the script, it is looking for /usr/local/resin/conf.
    Neither of these files exist!

    I did a find / -name *resin*, and here are my results:
    /etc/chkserv.d/resin
    /etc/rc.d/init.d/resin.sh
    /scripts/addresin
    /usr/local/cpanel/modules-install/modresin-Linux-i686
    /usr/local/cpanel/modules-install/modresin-Linux-i686/addresin
    /usr/local/cpanel/modules-install/modresin-Linux-i686/resin-a.sh
    /usr/local/cpanel/modules-install/modresin-Linux-i686/resin
    /usr/src/resin-3.0.9.tar.gz
    /usr/src/resin-3.0.9
    /usr/src/resin-3.0.9/conf/resin.conf
    /usr/src/resin-3.0.9/contrib/init.resin
    /usr/src/resin-3.0.9/contrib/init.resin.in
    /usr/src/resin-3.0.9/lib/resin-jdk15.jar
    /usr/src/resin-3.0.9/lib/resin.jar
    /usr/src/resin-3.0.9/webapps/resin-doc.war
    /var/cpanel/objcache/tn_modresin.jpg
    /var/cpanel/addonmoduleversions/modresin
    /var/cpanel/cpresin
    /var/run/chkservd/resin

    It looks as if the modresin install did not complete?
    Here is my results from the modresin install:
    Updating modresin....

    receiving file list ... done
    modresin-Linux-i686/
    modresin-Linux-i686/addresin
    modresin-Linux-i686/install
    modresin-Linux-i686/installjava
    modresin-Linux-i686/resin
    modresin-Linux-i686/resin-a.sh
    modresin-Linux-i686/uninstall
    modresin-Linux-i686/version
    wrote 237 bytes read 8951 bytes 18376.00 bytes/sec
    total size is 8463 speedup is 0.92
    Verifying that Java is installed and up to date...
    Updating /scripts...Done
    Java is already up to date
    Now installing Resin
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... none
    checking for ld used by GCC... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking sys/poll.h usability... yes
    checking sys/poll.h presence... yes
    checking for sys/poll.h... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking for a sed that does not truncate output... /bin/sed
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking command to parse /usr/bin/nm -B output... ok
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for ranlib... ranlib
    checking for strip... strip
    checking for objdir... .libs
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.lo... yes
    checking if gcc supports -fno-rtti -fno-exceptions... yes
    checking whether the linker (/usr/bin/ld) supports shared libraries... yes
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking whether -lc should be explicitly linked in... no
    creating libtool
    Using shared library flags from /usr/local/apache/bin/apxs
    Using Apache configuration /usr/local/apache/conf/httpd.conf
    Using Apache CFLAGS: -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI
    checking for JAVA_HOME...

    Restarting system services
    /etc/rc.d/init.d/httpd start: httpd started
    Stopping chkservd: [ OK ]
    Starting chkservd: [ OK ]
    Done
    To add JSP/Servlets to a domain run /scripts/addresin

    Done

    Process Complete

    Anyone have any idea what I should do next?
    Oh yeah, I did check. JAVA_HOME is set correctly for the root user but not for anyone else. I am running WHM as root.

    Thanks for any help.
     
  2. destr0yr

    destr0yr Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Kelowna, BC.
    I did:
    Code:
    export JAVA_HOME="/usr/local/jdk/"
    cd /usr/local/cpanel/modules-install/modresin-Linux-i686
    ./install
    /scripts/addresin
    
    ..and it seems to be working properly. .jsp's are being processed beeeyootifully.
     
  3. bubbles

    bubbles Registered

    Joined:
    May 17, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks!
    It's working now! :)
     
  4. destr0yr

    destr0yr Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Kelowna, BC.
    np, glad it worked! since making that post, i've uninstalled mod_resin and managed to get tomcat+mod_jk to work properly. however, i'll probably switch back since its 10x easier w/resin.
     
  5. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    resin showing as failed after uninstalling

    Hello,

    When I installed and then unistalled resin, service status is showing resin as failed. Any one knows how to solve this. how can we remove it from service status.

    resin failed

    Regards,
    David
     
  6. destr0yr

    destr0yr Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Kelowna, BC.
    You can remove the appropriate file (bind, interchange, etc) from the /etc/chkserv.d directory and /var/run/chkservd. Make sure you restart chksrvd after this.
     
  7. omega00

    omega00 Member

    Joined:
    Mar 21, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sunshine Coast, QLD, Australia
    Its good

    commands for freebsd are as follows:
    Note: setenv is the same as the export command, only with different syntax (namley a space instead of the '=' sign)
    Code:
    setenv JAVA_HOME /usr/local/jdk/
    cd /usr/local/cpanel/modules-install/modresin-FreeBSD-i386
    ./install
    /scripts/addresin
    
    Just depends on which shell you are using.

    Edit: ***A reboot was required before running /script/addresin in my case***
     
    #7 omega00, Apr 5, 2006
    Last edited: Apr 5, 2006
  8. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    What FreeBSD version are you running, v5.x or v6?
     
  9. omega00

    omega00 Member

    Joined:
    Mar 21, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sunshine Coast, QLD, Australia
    v5.x Sorry, I should have mentioned it. :)
     
  10. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Thanks, omega00. Mod Resin is pain in the nick, sometimes won't even work, with earlier versions of FreeBSD such as v4.x.
     

Share This Page