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.
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.