Skip to main content

Tomcat 7 and Servlet mapping

Comments

12 comments

  • cPanelMichael
    Hello :) Your access level is listed as "Reseller". Do you have root access to this system? This information will help us better determine which troubleshooting steps to provide. Thank you.
    0
  • WhiteWeedow
    Yes I have root access to the system what I need to change in configuration to enable servlet mapping?
    0
  • cPanelMichael
    To confirm, have you installed servlets for the domain name via the "WHM Home >> Account Functions >> Install Servlets" option? Thank you.
    0
  • WhiteWeedow
    [quote="cPanelMichael, post: 1488401">To confirm, have you installed servlets for the domain name via the "WHM Home >> Account Functions >> Install Servlets" option? Thank you.
    Yes I installed servlet on that way and servlet works only through jsp page but mapping does not work.
    0
  • cPanelMichael
    Feel free to open a support ticket so we can take a closer look: Submit A Ticket While our support team can not directly troubleshoot scripting issues, we can upload an example and make sure it's working as intended. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • roll-on
    Hi! Have you managed to make it work? I"m struggling with servlets as well. Thanks in advance!
    0
  • cPanelMichael
    Could you clarify what in particular is not working properly, and what steps you have taken thus far? Thank you.
    0
  • roll-on
    We're trying to migrate a site from a tomcat4 (Ensim) box to a current testing cPanel/Tomcat7 instalation. Our JSP sites seem to go fine but we can"t get servlets working. Here's a xml example on one of the servlets no working. 840 OnlineBarChart OnlineBarChart OnlineBarChart /servlet/OnlineBarChart customerexp CustomersExport customerexp /CustomersExport.jsp
    Could you give us any hint on this? Thanks in advance!
    0
  • cPanelMichael
    Have you tried installing servlets on a domain name via WHM and setting up a test JSP page to rule out any issues with the scripts you are copying over? Thank you.
    0
  • roll-on
    Yes I did. I installed servlets using command line (/usr/local/cpanel/scripts/addservlets2) and the test page worked ok. Actually the site works fine, the problem seems to be related with the servlet mapping as it's working ok in my ensim box running tomcat4. Please let me know if more information is needed to troubleshoot this issue
    0
  • cPanelMichael
    Could you elaborate more on how we can reproduce this issue? Please note that the scope of support that cPanel offers with Tomcat is to ensure it's running well and that test pages function as expected. Problems related to the script itself fall outside our scope of support. Thank you.
    0
  • KurtN.
    You should be able to access your servlets in two ways:
      ]
    • Apache (standard ports 80 or 443)
    • Tomcat (port 8080)
    If you want to access these servlets through Apache, then they must be stored in one of the following directories: [LIST]
  • /home/user/public_html/servlet
  • /home/user/public_html/servlets Hope this helps.
  • 0

Please sign in to leave a comment.