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 WAR files

Discussion in 'General Discussion' started by I-Web, Sep 15, 2004.

  1. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Ive installed tomcat from the WHM addons, and all appears to be well... the only problem i have is users are unable to use their WAR files, anyone got any ideas?????

    Thanks
     
  2. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    no-one know anything?
     
  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
    Same issue here. What I have done is deploy them with the Tomcat manager and copy them over from TOMCAT/webapps (where it deploys) to the client's directory.
     
  4. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    How do I do that?
     
  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
  6. 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
    dgbaker alerted me to the fact that there is a config option called autoDeploy that should be set to "true" in the user's host entry in server.xml. I did this, but it still does not appear to be working. If anyone figures it out, please enlighten the rest of us...:)
     
  7. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    That didnt work here either :(
     
  8. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    That is the correct method; however, keep in mind that enabling WAR support on a shared server can be quite dangerous as it allows a single user to deploy as many apps as they want which could quickly and easily consume all avaialable resources on the server (each app requires dedicated memory), thus potentially crashing it (OutOfMemory errors would be quite common). On the shared platform it is in your best interest not to enable WAR support and just have the customers unarchive their war into the /WEB-INF directory structure provided on their account. The use of wars are best suited for a private/dedicated JVM solution.
     
  9. 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
    jsteel makes a good point. On shared installs it may be best to offer JSP pages and Servlet support only. Even though these can cause similar issues with memory and such (especially DB calls not being closed properly) they are much easier to deal with. WAR deployment and full fledged java applications will take more resources both server and support wise. So be carefull offering this type of use.

    The one way tohelp control if you must allow it, is to use the approach Casey did and have the client come to you to have it done.
     
  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
    Thank you both for the information. No autodeploy for me, then.:)
     
  11. mrdry

    mrdry Registered

    Joined:
    Apr 21, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hmn!

    Your comments raise a number of questions that have been troubling me.

    There is only on WEB-INF directory under public_html. As I have two applications that I want to deploy, each in directory with their own WEB-INF subdirectory, lib subdirectory etc. the question is 'How do I go about deploying them both?'

    Is there a limitation that only one application can be deployed in the 'cPanel's environment that supports Tomcat'?

    Is the 'Tomcat web application manager' available for loading/managing Tomcat application
    under a cPanel environment that supports Tomcat?

    Sorry I have so many questions.

    Regards,
    Graeme
     
Loading...

Share This Page