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.

JSP dynamic website hosting

Discussion in 'General Discussion' started by nasix, Mar 8, 2010.

  1. nasix

    nasix Registered

    Joined:
    Mar 8, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm developping a dynamic website using JSP/Servlet and I am having a hard time trying to host it under cPanel (VPS Optimized 3).

    Here is how I do it right now:
    On my eclipse IDE, I export my project to war format, and I uplod it to my server.
    My war file's name is : TestJSP.
    The URL that I type is : http://serverIp.../TestJSP/index.html or http://serverIp.../TestJSP/index.jsp(I have two file index.jsp and index.html)
    The two files bellow are not found, I don't know if I'am on the right way or not.

    When I upload a static web site, I don't have any problem, but with a war file it doesn't work.

    Please note that I had TOMCAT installed by my host and the admin did enable servelets for my account.

    There must be something I am missing

    Thanks.
     
  2. fchang2010

    fchang2010 Registered

    Joined:
    Mar 4, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Is it an Apache 404 or Tomcat 404?
    Anyway although I love cPanel, for JAVA hosting
    we use NGASI appserver mgr. Have your hosting provider
    look at their demo at
    http://ngasi.com/
     
    #2 fchang2010, Mar 8, 2010
    Last edited by a moderator: Mar 8, 2010
  3. qwidjib0

    qwidjib0 Member
    PartnerNOC

    Joined:
    Aug 3, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago, Illinois
    I would recommend uploading your web archive an extracting it to the /servlet directory (by default cPanel only has mod_jk looking in a few places, this is one of them). It should work then.
     
Loading...

Share This Page