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.

visual web javaserver faces app on cpanel

Discussion in 'General Discussion' started by theMadness, Aug 28, 2008.

  1. theMadness

    theMadness Registered

    Joined:
    Aug 21, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I'm a newbie to both cpanel and java, but I did create a .war file with a simple "hello world"-ish application, and I can't manage to make it work in my cpanel powered space.

    Simpler applications DO work (altough in a weird fashion, for starter I have to manually specify the .jsp file, the welcome-file gets ignored) so the webhost won't give any further support, blaming it on cpanel.

    Anyone ever deployed something like this? Is there some procedure to follow? Do I have to use some cpanel function? (I don't see any such a function) A collegue managed to make it work under plesk, is cpanel uncapable of running framework-based java apps?
     
  2. k.agashe

    k.agashe Member

    Joined:
    May 23, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Are you sure that your site/account is hosted on a tomcat enabled cpanel server. The war file should be uploaded to your home directory on the server and then "the tomcat has to be restarted so that the war file gets auto deployed".

    The logs for deployment can be checked at catalina.out( tomcat log file). If there are any errors then it would be listed there.

    Once the tomcat has been restarted then a directory would be created with the same name as of the war file.(eg test.war then the folder would be war/ ).

    Also ask your host whether the jsp mount points have been added within the virtualhost entry ( for apache1 ) , in apache 2 there would be a separate mod_jk file for your account (site) which should have those mount points.

    Regards.
     
  3. theMadness

    theMadness Registered

    Joined:
    Aug 21, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Well, I am pretty sure that tomcat works, in fact as I said, I uploaded a sample application (without framework), and if I browse http://domain.tld/warfilename/index.jsp it works, it does NOT work if I just go to http://domain.tld/warfilename/ altough the web.xml file has
    Code:
    <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    in it.

    Yet, you ask me if I have a "tomcat enabled cpanel server", well, beside the aforementioned test, how can I check? Is there some extra menu item in the cpanel?

    You also mention
    making it sound like it's quoted from somewhere, is there any resource I should read about this?

    Where do I find catalina.out? My server is a CentOS server powered by cpanel, I also have a reseller WHM account, if this can help.

    I have no flippin' clues of what "mount points" are, and I plan to get a clearer picture of how this works before contacting my host again.

    I mean, I had no idea that restarting was necessary to begin with. :-p
    So, thanks for the heads up and the following suggestions (if any).

    P.S.: Also, I can't find ANY way to restart tomcat, can you show me which menu does that?
     
    #3 theMadness, Aug 28, 2008
    Last edited: Aug 28, 2008
  4. theMadness

    theMadness Registered

    Joined:
    Aug 21, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Sorry about misplacing the topic.
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This would be done in WHM in the Restart Services section. If you do not have access to WHM, you will need to contact your hosting provider to do this for you.
     
Loading...

Share This Page