首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

Internal Error: File WEB-INF web.xml not found

2014-01-26 
在Eclipse里tomcat中运行的时候,完全没有问题. 但是当export成war布置在tomcat下的时候,就会出错. 会出现 I

在Eclipse里tomcat中运行的时候,完全没有问题.
但是当export成war布置在tomcat下的时候,就会出错.
会出现 Internal Error: File WEB-INF web.xml not found 的警告.

jsp解析也出错.
这里贴出某jsp错误.
 

HTML code
org.apache.jasper.JasperException: /corporation_culture.jsp(2,0) File "/WEB-INF/page/share/taglib.jsp" not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:345) org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:378) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:486) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444) org.apache.jasper.compiler.Parser.parse(Parser.java:138) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154) org.apache.jasper.compiler.Compiler.compile(Compiler.java:315) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:282) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)



我的web.xml 在WEB-INF目录下存在着.
贴出我的web.xml
 

XML code
<?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <context-param>  <param-name>contextConfigLocation</param-name>  <param-value>classpath:beans.xml</param-value> </context-param> <!-- 对Spring容器进行实例化 --> <listener>  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>  <!-- Include this if you are using Hibernate -->  <!-- org.springframework.orm.hibernate3.support.OpenSessionInViewFilter --> <filter>  <filter-name>Spring OpenEntityManagerInViewFilter</filter-name>  <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> </filter> <filter-mapping>  <filter-name>Spring OpenEntityManagerInViewFilter</filter-name>  <url-pattern>/*</url-pattern> </filter-mapping>  <!-- 字符集转换 --> <filter>  <filter-name>codeFilter</filter-name>  <filter-class>com.sjzx.web.filter.SetCodeFilter</filter-class>  <init-param>   <param-name>charset</param-name>   <param-value>utf-8</param-value>   </init-param>  </filter> <filter-mapping>  <filter-name>codeFilter</filter-name>  <url-pattern>*.do</url-pattern> </filter-mapping> <filter-mapping>  <filter-name>codeFilter</filter-name>  <url-pattern>*.jsp</url-pattern> </filter-mapping> <!-- Struts --> <servlet>  <servlet-name>struts</servlet-name>  <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>  <init-param>  <param-name>config</param-name>  <param-value>/WEB-INF/struts-config.xml</param-value>  </init-param>  <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping>  <servlet-name>struts</servlet-name>  <url-pattern>*.do</url-pattern>  </servlet-mapping> <!-- 右侧栏数据读取 --> <filter>  <filter-name>rightPanelSessionFilter</filter-name>  <filter-class>com.sjzx.web.filter.RightPanelSessionFilter</filter-class> </filter> <filter-mapping>  <filter-name>rightPanelSessionFilter</filter-name>  <url-pattern>/*</url-pattern> </filter-mapping> <!-- 首页数据读取 --> <filter>  <filter-name>indexPageFilter</filter-name>  <filter-class>com.sjzx.web.filter.IndexPageFilter</filter-class> </filter> <filter-mapping>  <filter-name>indexPageFilter</filter-name>  <url-pattern>/index.jsp</url-pattern> </filter-mapping> <!-- 后台权限验证 -->  <filter>  <filter-name>adminAuthorityFilter</filter-name>  <filter-class>com.sjzx.web.filter.AdminAuthorityFilter</filter-class> </filter> <filter-mapping>  <filter-name>adminAuthorityFilter</filter-name>  <url-pattern>*.do</url-pattern> </filter-mapping> <!-- FCKeditor -->  <servlet>  <servlet-name>Connector</servlet-name>  <servlet-class>net.fckeditor.connector.ConnectorServlet</servlet-class>  <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping>  <servlet-name>Connector</servlet-name>  <url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern> </servlet-mapping> <!-- Web Initializaition --> <servlet>  <description>WebInitializationServlet</description>  <display-name>WebInitializationServlet</display-name>  <servlet-name>WebInitializationServlet</servlet-name>  <servlet-class>com.sjzx.web.servlet.WebInitializationServlet</servlet-class> </servlet> <servlet-mapping>  <servlet-name>WebInitializationServlet</servlet-name>  <url-pattern>/WebInitializationServlet</url-pattern> </servlet-mapping>  <error-page>   <error-code>500</error-code>   <location>/WEB-INF/page/share/error.jsp</location> </error-page> <error-page>  <error-code>404</error-code>  <location>/WEB-INF/page/share/notfound.jsp</location> </error-page>  <welcome-file-list>  <welcome-file>index.jsp</welcome-file> </welcome-file-list></web-app>        

热点排行