QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 756|回复: 3

配置apache+tomcat出现问题

[复制链接]
发表于 2004-3-17 21:53:23 | 显示全部楼层 |阅读模式
请大侠帮帮忙!谢谢
安装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.


Apache Tomcat/4.1.30

请看截图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2004-3-18 12:12:14 | 显示全部楼层
换了tomcat 5.0.19问题依旧
下面是错误的详细报告。大侠帮帮忙,看那里出错了?谢谢
HTTP Status 500 -


type Exception report


message


description The server encountered an internal error () that prevented it from fulfilling this request.


exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Compiling 1 source file

/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)


        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
        org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:45
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:24
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.


Apache Tomcat/5.0.19
回复

使用道具 举报

 楼主| 发表于 2004-3-18 18:41:17 | 显示全部楼层
ding
回复

使用道具 举报

 楼主| 发表于 2004-3-18 19:46:23 | 显示全部楼层
此贴作废了~~~~~~~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-9 09:52 , Processed in 0.079919 second(s), 17 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表