Chinaunix

标题: 求助:apache+tomcat整合问题 [打印本页]

作者: hp6325    时间: 2008-09-23 10:39
标题: 求助:apache+tomcat整合问题
我的系统是FREEBSD6.3,apache2.2.9,tomcat6,都是用ports装的,我用http://localhost:8180登录能够看到tomcat的页面,但是我http://localhost/index.jsp却出现下面的提示:
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
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
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


第一次配这个,在网上也找了很多资料,但是都没有解决,只能在这里请教大家了!多谢!!!
作者: kuro_0505    时间: 2008-12-26 12:58
我也是这个问题啊~你决解了没啊???
作者: kuro_0505    时间: 2008-12-26 13:17
晕,这么都没有人遇到这个问题吗???




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2