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!

JSP and Cpanel

Discussion in 'General Discussion' started by georgiabill, Mar 5, 2003.

  1. georgiabill

    georgiabill Member

    Joined:
    Mar 4, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    I have a customer who wants to use JSP on his account. I enabled servlets for him, but the page wants to download rather than display. His page is name

    library.jsp

    This is the content of the page.

    <%@ include file="path.jsp" %>
    <%@ include file="xml.jsp" %>
    <%
    xslt(basepath + "xml/mylibrary.xml", basepath + "xml/library.xsl", response, out);
    %>

    I told him he could use JSP with the understanding that I know nothing about JSP and my support would be minimal. But, I do need to know that JSP is, at least, working. Any comments?
     
  2. georgiabill

    georgiabill Member

    Joined:
    Mar 4, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Anyone? Can anyone provide any helpful info about JSP on Cpanel?
     
  3. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    JSP works fine IF Tomcat is installed properly. I would check your tomcat setup and verify that servlet and jsp support have been added to his account through WHM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. georgiabill

    georgiabill Member

    Joined:
    Mar 4, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Thanks.

    Yes, I did a re-install of Tomcat (4.1), and I did not get any error messages. I also installed servlets on the customer's domain. I have also heard that .jsp pages have to be chmod executable on a linux server, so I did this.

    Now, I get a "JSP generated" 404 page saying that the .jsp page I am calling cannot be found. However, it is there.

    I am somewhat encourage that at least the JSP server is serving its own 404 page eventhough I dont know why it says it cant find the page, which is there.
     
  5. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Try this code.

    <%@ page session="true" language="java" isThreadSafe="true"
    import="javax.servlet.*,
    java.io.*,
    java.sql.*,
    java.util.Date.*"
    %>
    <%= new java.util.Date() %>


    Call it test.jsp and see what happens. Make sure ownership of file is correct. Also jsp's do NOT need to be executable to be used, chmod 644 is enough.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. ameen

    ameen Member

    Joined:
    Apr 27, 2002
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    301
    Does the tomcat server scan for new libraries when added?
     
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