Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    25

    Default JSP Plugin revisted.. Servlets doesn\'t work?

    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. #2
    Member
    Join Date
    Aug 2001
    Posts
    25

    Default

    Earth calling cpanel.net forum users?? Anyone out there?? =)

  3. #3
    Member
    Join Date
    May 2002
    Posts
    16

    Default 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

Similar Threads & Tags
Similar threads

  1. JSP but not Servlets (!?) question
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-13-2004, 01:42 PM
  2. mod_userdir and JSP/Servlets
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-02-2004, 05:26 AM
  3. index.JSP as deafult page doesn't work
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 05-27-2004, 04:37 PM
  4. Java Servlets and JSP
    By mclehner in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-20-2002, 08:09 AM
  5. Anybody install the JSP plugin? How\'s it work?
    By shaun in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-04-2002, 03:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube