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.

Tomcat JSP

Discussion in 'General Discussion' started by casey, Feb 17, 2003.

  1. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    I asked my provider about installing JSP on my cPanel/WHM dedicated server, and the response I received was:

    &jsp comes in the form of tomcat which if you install it will cause your server to crash all the time (its very buggy)&

    Is this true? Has anybody successfully installed jsp and not experienced difficulties with it?
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    No problems here using Tomcat 4.0.3 with Cpanel.
     
  3. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    That's great to hear. Do you see any reasons that it might cause a server to crash? I'm brand new to the hosting business, so I don't know very much. I know I'd like to offer JSP, but I also know that I don't want my server to crash...
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Server crash? no.

    Problems with response? sometimes, though rare.

    Trick? Stick with 4.0.3 do not use 4.1

    If never done it - have someone who has or get good guidance.
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Thanks for the info and your advice.
    Unfortunately, I don't know anyone who has experience, and my providers told me they wouldn't do it.

    However, I'm just starting out, so even if it crashes there won't be any sites on there to worry about. All I have to do is worry about getting it stabilized once it's been installed...

    I guess I'll go with 4.0.3

    When you say problems with response, does that mean server-wide response or just those pages? Sorry for the dumb questions...:p
     
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Only dumb questions are the ones not asked. :)

    Response on jsp pages only, but since you have a new clean server it should be a breeze.
     
  7. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    The Tomcat install doesn't cause the server to crash. Poorly written code by your customers, however, is another story. It's very easy for a Java newbie to write JSP/Servlets with memory leaks and other resource hogs, so if you don't know much about Tomcat and Java, you'd be best to stay away. It's not like offering ASP, Perl, or PHP.

    Jaz
     
  8. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    I've seen some hosts charging extra for JSP/Java servlets. Is there some way to turn it on and off for certain customers?
     
  9. orca

    orca Well-Known Member

    Joined:
    Sep 23, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Switzerland
    In WHM, you can select which sites can support jsp or not. It also suggests that you don't have more than 25 or so sites using jsp on one server.
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Cool beans!
     
  11. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Can you give a hint as to where, in WHM, that would be?
     
  12. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    If Tomcat is installed correctly, you should have an Option in WHM called Plugins with a menu pick "Install Servlets" just before the Transers option and past Account Functions.

    Now note that this allows to install NOT uninstall.

    Uninstalling must be done manually.
     
  13. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Where is DirIndex? Is it supposed to be inside httpd.conf?
    I can't find it...I did a search for it using control-w, but to no avail. Is it perhaps inside the .htaccess file?
     
  14. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    It's actually called

    DirectoryIndex

    It's around the 400 line or so in httpd.conf
     
  15. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Thank you!! I knew I wasn't crazy!;)
     
  16. remal

    remal Member

    Joined:
    Mar 19, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    how to install Tomcat :) ?
     
  17. pfmartin

    pfmartin Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    Someone have a copy of the old jsp-install for 4.03 ?? I am stuck and cannot find it anywhere. Thanks!
     
  18. Ajo

    Ajo Registered

    Joined:
    Feb 22, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Tomcat 4.1 seems to work fine, HOWEVER... with the installer comes mod_jk2 instead of mod_jk.

    mod_jk2 WILL NOT WORK PROPERLY with APACHE 1.3.27, particularly with index.jsp files, etc. mod_jk should be used with APACHE 1.x

    Why they included mod_jk2 is beyond me. Nice idea, I guess, however mod_jk2 is primarily being written for Apache 2
     
  19. mesranet

    mesranet Well-Known Member

    Joined:
    May 6, 2002
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Anybody still having a copy of Tomcat 4.0.3 from layer1 ?

    Please help.
     
Loading...

Share This Page