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 Plugin revisted.. Servlets doesn\'t work?

Discussion in 'General Discussion' started by acetate, Dec 2, 2001.

  1. acetate

    acetate Active Member

    Joined:
    Aug 16, 2001
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Hmm..

    Ok.. I\'d just installed the jsp plugin from layer1.cpanel.net and everything seems fine.. When viewing the directory listing of the account which I installed the servlet on, I see that tomcat is running. However, when trying to execute a .class file, I got an error 404. Even when using http://www.domain.com:8080/servlets/_filename_.class. What am I doing wrong?
    Also, I tried to check if .jsp files would work by loading one of the examples from tomcat and got the following errors:

    Error: 500
    Location: /servlets/examples/jsp/num/numguess.jsp
    Internal Servlet Error:

    org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta/build/tomcat/work/www.adafeng.com_8080/_0002fservlets_0002fexamples_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0.java:15: Class num.NumberGuessBean not found in import.
    import num.NumberGuessBean;
    ^
    1 error

    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:498)

    Thanks in advance.
     
  2. acetate

    acetate Active Member

    Joined:
    Aug 16, 2001
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Earth calling cpanel.net forum users?? Anyone out there?? =)
     
  3. Paulblo

    Paulblo Member

    Joined:
    May 10, 2002
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hope this helps

    I had the same problem.

    try the servlet name with out the .class at the end.

    &*_filename_& not &*_filename_.class&

    Hope this helps,

    Paulblo
     
Loading...

Share This Page