Tomcat

plesk+ tomcat + mod_jk + jsp 給出 404

  • August 24, 2012

我試圖將 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

我試圖部署的戰爭文件來自: http: //www.michael-thomas.com/tech/apache/tomcat/tutorial_firststeps_tomcat/mytomcat-helloworld-war.zip

已經修復了自己,原來是coldfusion處理了jsp文件,我放置在conf/vhost.conf中:

RemoveHandler .jsp
JRunConfig Ignoresuffixmap true

引用自:https://serverfault.com/questions/420733