请大侠帮帮忙!谢谢
安装apache 2.0.48 没有问题
cp jakarta-tomcat-*.tar.gz /usr/local/
tar zxvf jakarta-tomcat-5.0.19.tar.gz
cd jakarta-tomcat-*/bin
[root@flasher bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/jdk
应该没有问题吧?
在浏览器输入http://192.168.127.178:8080 出现下面问题
o Context configured to process this request
type Status report
message No Context configured to process this request
description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.
/usr/local/jakarta-tomcat-4.1.30/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
/usr/local/jakarta-tomcat-4.1.30/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
/usr/local/jakarta-tomcat-4.1.30/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java:5: package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;
^
/usr/local/jakarta-tomcat-4.1.30/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java:7: cannot access javax.servlet.jsp.HttpJspPage
file javax/servlet/jsp/HttpJspPage.class not found
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
^
/usr/local/jakarta-tomcat-4.1.30/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java:16: cannot resolve symbol
symbol : class HttpServletRequest
location: class org.apache.jsp.index_jsp
public void _jspService(HttpServletRequest request, HttpServletResponse response)
^
/usr/local/jakarta-tomcat-4.1.30/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java:16: cannot resolve symbol
symbol : class HttpServletResponse
location: class org.apache.jsp.index_jsp
public void _jspService(HttpServletRequest request, HttpServletResponse response)
^
/usr/local/jakarta-tomcat-4.1.30/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java:17: cannot resolve symbol
symbol : class ServletException
location: class org.apache.jsp.index_jsp
throws java.io.IOException, ServletException {
^
An exception has occurred in the compiler (1.4.2_03). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.v8.comp.Check$Validator.visitSelect(Check.java:437)
at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java:1091)
at com.sun.tools.javac.v8.comp.Check.validate(Check.java:409)
at com.sun.tools.javac.v8.comp.Check.validate(Check.java:420)
at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java:1369)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1356)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1332)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:355)
at com.sun.tools.javac.v8.Main.compile(Main.java:569)
at com.sun.tools.javac.Main.compile(Main.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:9
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:976)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:45
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:24
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:68
at java.lang.Thread.run(Thread.java:534)