tomcat7 访问静态页面,路径中出现加号报错问题,求教

星辰~ 发布于 2013/04/27 09:02
阅读 477
收藏 0

页面在tomcat6下访问正常,在tomcat7下访问报如下错误:HB+ZZJ.shtm ,是什么原因?

严重: Servlet.service() for servlet [ssi] in context with path [] threw exception
java.io.FileNotFoundException: jndi:/localhost/proDetail/HB+ZZJ.shtm
	at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:385)
	at org.apache.catalina.ssi.SSIServlet.processSSI(SSIServlet.java:203)
	at org.apache.catalina.ssi.SSIServlet.requestHandler(SSIServlet.java:182)
	at org.apache.catalina.ssi.SSIServlet.doGet(SSIServlet.java:117)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.jerehnet.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:36)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1815)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)


加载中
0
子矜
子矜
代码里写错了呗 是不是有句String xx=HB+ZZJ 写成xx="HB+ZZJ"了 哈哈哈哈哈
星辰~
星辰~
HB+ZZJ.shtm是页面路径,如:http://www.test.com/HB+ZZJ.shtm
0
星辰~
星辰~
访问 http://www.test.com/HB+ZZJ.shtm时出的错,若路径中没有加号,不会出错,在tomcat7下的问题
返回顶部
顶部