Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Issues with java war file deployment in Cpanel server with Tomcat 7

Discussion in 'EasyApache' started by Sandeep Sasikumar, Apr 7, 2015.

  1. Sandeep Sasikumar

    Sandeep Sasikumar Registered

    Joined:
    Apr 7, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Trivandrum
    cPanel Access Level:
    Root Administrator
    Hi,

    I was trying to deploy multiple java war files in a Cpanel server but was stuck with many things. I have searched many articles and tried implementing that but none worked. Please see below.

    1) Which is the exact location that you want to deploy the java war file. Is it the '/home/user/public_html' or '/usr/local/easy/share/easy-tomcat7/webapps'?

    2) For me i have deployed the war file in '/usr/local/easy/share/easy-tomcat7/webapps' directory. We have placed the war file in this location and restarted tomcat from WHM and the file got deployed automatically. Is this how we should do?

    3) I was able to deploy a single war file and i have made the port change from 8080 to 80 in the server.xml file and it was working fine. But when i tried to deploy multiple war files it is causing issues. Please let me know we need to deploy multiple war files in a Cpanel server?

    4) Also Once the war file got deployed then we have made few code changes in the files inside the directory to change the path from local path to server path. But the war file gets deployed each time when the tomcat gets restarted.

    The war file was earlier deployed in tomcat 5.5 version and now we are trying to deploy this in tomcat 7. We have stopped the httpd service on the server and the port 80 is listened by tomcat. Also in the catalina.out file no particular errors are shown as it is mentioned that every thing loaded. Please help. Thanks in Advance.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Sandeep Sasikumar

    Sandeep Sasikumar Registered

    Joined:
    Apr 7, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Trivandrum
    cPanel Access Level:
    Root Administrator
    Thanks Michael. Thanks for the support. I was able to successfully deploy tomcat 7 on my Cpanel server.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the documentation was helpful. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice