plesk+tomcat+mod_jk+jsp 出现 404

plesk+tomcat+mod_jk+jsp 出现 404

我尝试将 myhello-world.war 安装到 plesk tomcat5,我执行“安装 java webapp”,但是当我去http://domain.com/mytomcat-helloworld/pages/myhelloworld.js我得到:

404

/mytomcat-helloworld/pages/myhelloworld_jstl.jsp

java.io.FileNotFoundException: /mytomcat-helloworld/pages/myhelloworld_jstl.jsp
    at jrun.jsp.JSPEngine.getPageState(JSPEngine.java:330)
    at jrun.jsp.Translator.translate(Translator.java:67)
    at jrun.jsp.JSPEngine.translateJSP(JSPEngine.java:708)
    at jrun.jsp.JSPServlet.translate(JSPServlet.java:125)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:113)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:586)
    at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:555)
    at jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:64)
    at coldfusion.license.JspLicenseServlet.service(Unknown Source)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

如果我用http://domain.com:9080/mytomcat-helloworld/pages/myhelloworld_jstl.jsp 一切按预期进行,有什么想法可以解决该问题吗?

plesk 版本 10.4.4 tomcat 版本 tomcat5-5.5.23-0jpp.22.el5_7

我尝试部署的 war 文件来自:http://www.michael-thomas.com/tech/apache/tomcat/tutorial_firststeps_tomcat/mytomcat-helloworld-war.zip

答案1

我已经修复了这个问题,原来 coldfusion 处理了 jsp 文件,我将其放置在 conf/vhost.conf 中:

RemoveHandler .jsp
JRunConfig Ignoresuffixmap true

相关内容