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 application question

Discussion in 'General Discussion' started by ialex03, Sep 22, 2004.

  1. ialex03

    ialex03 Well-Known Member

    Joined:
    May 15, 2003
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    you need to enable tomcat for the domain via the WHM and then create a WEB_INF folder inside the public_html folder of the domain and upload the files there. Then you can access it via domainname.
     
  3. ialex03

    ialex03 Well-Known Member

    Joined:
    May 15, 2003
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Yes, I know it.
    But if I want to upload my application in .war file
    So I won't be able to access this application via my domain name?
     
  4. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    i doubt it.
     
  5. ialex03

    ialex03 Well-Known Member

    Joined:
    May 15, 2003
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    It's not good :(
     
  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
    At first you said you wanted to access it via your domain name, now you say you don't want to access it by your domain name? Could you explain more clearly what you want to do?

    .war files can be deployed and they can be accessed via your domain.
     
  7. ialex03

    ialex03 Well-Known Member

    Joined:
    May 15, 2003
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
  8. bsasninja

    bsasninja Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    528
    Likes Received:
    0
    Trophy Points:
    16
    Jsp Dont Work

    How do I enable TOMCAT to a domain in WHM ?¿ I cant find the option.

    I ulopaded a example .jsp file to my my web and i doesnt work. :confused:
     
  9. ialex03

    ialex03 Well-Known Member

    Joined:
    May 15, 2003
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
  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
    If you want to access it with :8080, just don't install servlets on that domain. Deploy the .war file with the Tomcat Manager and you're all set. If you want to access it without the :8080 then add servlet support and copy the application to your public_html directory.
     
  11. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    casey; the issue is not access via 8080 or without it. the problem is that he wants to deploy a war file wrt a specific domain..

    for eg.. i have a domain xyz.com and the server ip is 1.2.3.4

    If i deploy the war file via the http://1.2.3.4:8080/manager/ ; then iam able to see it only via the ip address and not the domain name.

    The issue is deployment of a war file for a specific domain so that it is accessible via http://xyz.com/....jsp.

    i know that you shld be creating a WEB_INF and related folder to do this.. but it did be great if you can point a tutorial for the same.
     
  12. 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 don't have much experience in this area, but all "deploying" means is decompressing the archive. When you deploy it in http://ipaddress:8080/manager/ what you are doing is expanding the archive into the tomcat folder. I do not know how to get it to expand in the user's home directory, but I do know that you can simply copy the files from the tomcat folder into the user's directory. The same thing will be accomplished.
     
  13. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    ty casey; i 'll try that.
     
Loading...

Share This Page