1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to auto deploy .war on cpanel server?

Discussion in 'cPanel Developers' started by colorcloud, Jul 12, 2006.

  1. colorcloud

    colorcloud New Member

    Joined:
    Aug 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi there,

    I just install CPanel's tomcat addon, but I have questions about deploy war files.

    How can we deploy war file without giving everyone access to Tomact manager?
    As I try to deploy a war file using Tomcat manager, it was uncompress at tomcat's default "webapps" dir, but not /home/username/public_html , how does everyone else dealing with this?
    Can we set CP serve to auto deploy war files?
     
  2. colorcloud

    colorcloud New Member

    Joined:
    Aug 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Any one could help?
     
  3. ukagg

    ukagg New Member

    Joined:
    Aug 14, 2002
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Did you get any solution?

    Thanks
    UKA
     
  4. colorcloud

    colorcloud New Member

    Joined:
    Aug 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Well, cpanel's developer replied:

    Can we have CP's addon module Tomcat to auto deploy a end user's war
    file after they upload their war file to the server?

    However, could someone explan me what he was talking about? :confused:
     
  5. muugii

    muugii New Member

    Joined:
    Aug 31, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    any solution?

    my jsptest file is working fine. But howto deploy WAR file? How is it working?

    thanks,
    Muugii
     
  6. nasix

    nasix New Member

    Joined:
    Mar 8, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Have you had a response to your question ? I m suffering for the same problem.

    Thanks.
     
  7. Vinayak

    Vinayak Member

    Joined:
    Jun 27, 2003
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bharat
    You will have to fix the entries at /usr/local/jakarta/tomcat/conf/server.xml

    Some time back after lot of tweaking I used this and it worked:

    There was a problem preserving the entries, for the same follow this thread
    Unable to run jsp pages with www.domain.com - cPanel Forums
     
  8. qwidjib0

    qwidjib0 New Member

    Joined:
    Aug 3, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago, Illinois
  9. Vinayak

    Vinayak Member

    Joined:
    Jun 27, 2003
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bharat
    But for that the user will need shell access, also what if it's a continuous development/updating process.

    The server.xml tweak that I had mentioned, just needs the .WAR file uploaded as any other file to /public_html folder and it's done. Now if the developers have made any changes on the dev platform, they just have to upload the new .WAR file and they are done.
     
  10. qwidjib0

    qwidjib0 New Member

    Joined:
    Aug 3, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago, Illinois
    True, though jailed shell is a nice feature to enable.

    That could present a problem (I believe the servlet would still need to be restarted, which cPanel currently does not provide a feature for short of restarting Tomcat). Although editing in a live server environment is not best practice (the ideal method would obviously be to develop and test in Eclipse with a local machine being used for development).

    Actually both methods result in that entry being added to server.xml. :)
     
  11. a24uall

    a24uall New Member

    Joined:
    Feb 4, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    Haiii,

    uploaded .war to public_html >> restarted tomcat
    Extracted folder was created in
    /usr/local/jakarta/apache-tomcat-5.5.28/work/Catalina/DOMAIN.COM/FOLDER (war file name)

    that makes the domain accessible through browser as :
    DOMAIN.COM:8080/FOLDER
    hope its clear for my friends...

    Now I just want to know how I can make this accessible as DOMAIN.com/FOLDER
    Or
    how I can make the extracted folder automatically come under my public_html folder instead of /usr/local/jakarta/apache-tomcat-5.5.28/work/Catalina/DOMAIN.COM/FOLDER

    thanks...
     
  12. Vinayak

    Vinayak Member

    Joined:
    Jun 27, 2003
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bharat
    Create the .war without the folder path, your deployment will then be in the /public_html
     
  13. victornet

    victornet New Member

    Joined:
    Jul 8, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    can u explain how to make this? im having the same problem

    my war is deploying on jakart folders and with that i can acces by site.com:8080 i want to acess as site.com too
     
  14. a24uall

    a24uall New Member

    Joined:
    Feb 4, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India

Share This Page