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.

Addon Module: mod_resin

Discussion in 'cPanel Developers' started by cPanelBilly, Oct 15, 2004.

  1. cPanelBilly

    cPanelBilly Guest

    The addon module mod_resin is an alternative to Tomcat.
    Due to issues with Tomcat we have also released mod_resin. They both run jsp and servlets however from what we have found mod_resin seems to be less, well touchy about system setup.
    As some have noticed Tomcat will just not run correctly on all systems. We have done tests, taken 5 systems, exact same HW and software, ran the install and on 1 it will not work. We do not experience these issues (or at least up until this point have not) with mod_resin.
    To add servlets/jsp to an account run:
    /scripts/addresin
    after install the addon module.

    Please not tomcat and mod_resin cannot be installed at the same time and all accounts that currently have tomcat will NOT have mod_resin by default, you will need to re add them.
     
  2. Sheldon

    Sheldon Well-Known Member

    Joined:
    Jun 7, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    yay for mod resin.
     
  3. manghooli

    manghooli Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    i installed mod_resin and active that on my own site.
    after that, when i run something like this -> http://mysitename.com:8080 -> i see all of my files and folders!!!!

    am i wrong?!
     
  4. Sheldon

    Sheldon Well-Known Member

    Joined:
    Jun 7, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    submit bug report.
     
  5. VCServer

    VCServer Active Member

    Joined:
    Nov 19, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Good work!
    Mod_Resin is very nice and work perfect :)
     
  6. zeker5

    zeker5 Member

    Joined:
    Oct 24, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Mod_Resin won't start. How do I shut it down or uninstall it completely? I have uninstalled it through WHM, but it is still trying to start. What do I need to do?

    Thank you,
    Zeker5
     
  7. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    I have not got Resin to work either. It has to be said that the same box would not run Tomcat 5 either. But I'm no giving up yet ;)

    Zeker5, to remove Resin, I think you simply need to open the Addon Modules page again in your WHM and uncheck Resin. If your box continues to attempt restarting Resin (after the uninstall), it is likely a chkservd issue. Try:
    rm /etc/chkserv.d/resin
    service chkservd restart

    Hope this helps.
     
  8. VCServer

    VCServer Active Member

    Joined:
    Nov 19, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    To Fix resin go in your WHM, uninstall Resin.
    Then install the Tomcat AdOn an uninstall it.
    Then can you install the Resin again and its work fine. :)
     
  9. zeker5

    zeker5 Member

    Joined:
    Oct 24, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I have tried the above to replies. In /etc/chkserv.d/ there is no resin listed. I tried to install then uninstall Tomcat and then re-install Resin. With results being the same, only now I have a listing in Server Status for Tomcat as being failed also. :confused:

    Current Setup: (if this helps)
    Operating system Linux
    Kernel version 2.4.25
    Apache version 1.3.32 (Unix)
    PERL version 5.8.1
    PHP version 4.3.9
    cPanel Build 9.9.8-RELEASE 5


    While installed, I removed service for Tomcat and Resin in WHM, under Service Manager. Then uninstalled them both, as apache fails with either one being installed, now that both have been installed at one time. Could it be my Apache Build config?


    Thank you,
    Zeker5
     
  10. stevieb

    stevieb Member

    Joined:
    Oct 31, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I have the exact same problem!
    Anyone know how we can fix this?

    Regards

    Steven Billings
     
  11. AlphaWebspace

    AlphaWebspace Well-Known Member

    Joined:
    May 1, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kindom
    You cannot run, Mod_Resin and TomCat at the same time both services won't work.
    As it says in the 'Addon Modules' for mod_resin descriptions.

    have you tried typing in SSH as root:

    chkservd resin

    ?
     
  12. stevieb

    stevieb Member

    Joined:
    Oct 31, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi, i have removed tomcat, and i just have resin installed, but i still get an error, which is tomcat is failed, although it is uninstalled?

    How do i stop it from saying this?

    Regards

    Steven Billings
     
  13. RedFutura

    RedFutura Well-Known Member

    Joined:
    Jun 11, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    I was using tomcat before, and it worked, but I wanted to try Resin.

    I uninstalled tomcat and installed Resin. Then I added the domain with the /scripts/addresin domain.com tool.

    After that I went to the website with the jsp file and it doesn't work. It asks me if I want to download the file instead of showing it.

    What can I do?

    Thank you
     
  14. RedFutura

    RedFutura Well-Known Member

    Joined:
    Jun 11, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    It seems cPanels script to uninstall tomcat is not working fine. I did not completely uninstall tomcat and it was conflicting with Resin.

    Can you check this, cPanelBilly?
     
  15. cPanelBilly

    cPanelBilly Guest

    I just did a couple ot tests back and forth, what are you showing is not being removed?
     
  16. RedFutura

    RedFutura Well-Known Member

    Joined:
    Jun 11, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    First I uninstalled Tomcat and then installed Resin. I added Resin support for the domain and found it wasn't working. I went to service status in WHM and Tomcat was shown as "running" but Resin said "failed". That is what led me to think that maybe tomcat was not being uninstalled correctly.

    I have tried reinstalling and uninstalling Tomcat many times, and then installing Resin, but I cannot get it to work.
     
  17. cPanelBilly

    cPanelBilly Guest

    Can you run
    /etc/init.d/chkservsd restrart
    and see if they go away?
     
  18. RedFutura

    RedFutura Well-Known Member

    Joined:
    Jun 11, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    I really don't mind that the chkservd for tomcat doesn't get deleted (I can delete it myself manually), but the problem is that Resin wont work.

    As I explained in my first post, I installed Resin, ran the script to activate it for a domain and then went to the domain, but instead of executing the jsp file it asked me if I wanted to download it.
     
    #18 RedFutura, Nov 17, 2004
    Last edited: Nov 17, 2004
  19. RedFutura

    RedFutura Well-Known Member

    Joined:
    Jun 11, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    I have managed to get it working by updating cpanel.

    Now I have another problem. There is a process which is running for too long:

    26915 root 15 0 77820 73M 15396 S 99.9 7.3 484:28 0 java

    How do I restart resin to kill this process?

    Why does this happen?

    Thank you
     
  20. Jones

    Jones Well-Known Member

    Joined:
    Jul 10, 2004
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Those who want to uninstall tomcat completely

    First stop it:

    /usr/sbin/stoptomcat

    Then /etc/httpd/conf

    pico httpd.conf and find all occurances of the word mod_jk. Comment out all the mod_jk lines. Then find the includes line and comment that out. Now find index.jsp and remove that if installed.

    Exit out, save and restart apache /etc/rc.d/init.d/httpd restart

    Now load ntsysv

    /usr/sbin/ntsysv

    Scroll down until you find tomcat and toggle the star to blanks, [ ]

    Save, exit out. You have now disabled it from starting at bootup.

    If you added it to services for monitoring then remove it from /etc/chkserv.d and also from /var/run/chkservd/ then restart chkserver.

    Your done!
     
Loading...

Share This Page