求助:apache+tomcat整合问题
我的系统是FREEBSD6.3,apache2.2.9,tomcat6,都是用ports装的,我用http://localhost:8180登录能够看到tomcat的页面,但是我http://localhost/index.jsp却出现下面的提示:
QUOTE:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:350) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause java.lang.IllegalStateException: No output folder org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:64 org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:197) org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:491) org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:397) org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:350) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:562) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
设置如下:
tomcat-apache.conf
QUOTE:
JkWorkersFile /usr/local/etc/apache22/Includes/workers.properties
JkLogFile /usr/local/logs/mod_jk.log
JkLogLevel info
JkMount /*.jsp ajp13
JkMount /jsp-examples/* ajp13
JkMount /servlets-examples/* ajp13
JkMount /servlet/* ajp13
workers.properties
QUOTE:
workers.tomcat_home=/usr/local/apache-tomcat60
workers.java_home=/usr/local/diablo-jdk1.6.0
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
第一次配这个,在网上也找了很多资料,但是都没有解决,只能在这里请教大家了!多谢!!!