问题描述
单独的运行Heritrix项目(放在web上面)是没什么的,运行struts2+Hibernate+spring的项目也是没什么问题的,不会报下面的错误关键是这两个一结合到一起,启动也是没问题的,运行项目时就出现问题。用到struts2.0标签时就出现问题(我也试了struts1.2的标签也出现问题,用serlvet就没什么问题),2009-04-1416:22:31,125WARN[com.opensymphony.xwork2.ognl.OgnlValueStack]-Couldnotfindproperty[org.apache.catalina.jsp_file]2009-04-1416:22:31,203INFO[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SSH2]]-ExceptioninitializingTldLocationsCache:XMLparsingerroronfile/WEB-INF/web.xml:(line2,col9):Documentisinvalid:nogrammarfound.2009-04-1416:22:31,203ERROR[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SSH2].[jsp]]-Servlet.service()forservletjspthrewexceptionorg.apache.jasper.JasperException:File"/struts-tags"notfoundweb.xml我都检查了许多遍,没什么问题。下面是我的web.xml的内容:<?xmlversion="1.0"encoding="UTF-8"?><web-appversion="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/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><context-param><param-name>contextConfigLocation</param-name><param-value>classpath:/applicationContext-resources.xmlclasspath:/applicationContext-dao.xmlclasspath:/applicationContext-service.xml<!--classpath:/application-mails.xml-->classpath:/application-sendMail.xmlclasspath*:/applicationContext.xml/WEB-INF/applicationContext*.xml/WEB-INF/application-scheduler.xml</param-value></context-param><filter><filter-name>cacheFilter</filter-name><filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class></filter><filter><filter-name>encodingFilter</filter-name><filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class><init-param><param-name>encoding</param-name><param-value>UTF-8</param-value></init-param><init-param><param-name>forceEncoding</param-name><param-value>true</param-value></init-param></filter><filter><filter-name>struts-cleanup</filter-name><filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class></filter><filter><filter-name>struts</filter-name><filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class></filter><filter-mapping><filter-name>encodingFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping><filter-mapping><filter-name>struts-cleanup</filter-name><url-pattern>/*</url-pattern></filter-mapping><filter-mapping><filter-name>struts</filter-name><url-pattern>/*</url-pattern></filter-mapping><!--<jsp-config><taglib><taglib-uri>/WEB-INF/struts-tags.tld</taglib-uri><taglib-location>/WEB-INF/struts-tags.tld</taglib-location></taglib></jsp-config>--><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><session-config><session-timeout>60</session-timeout></session-config><welcome-file-list><welcome-file>welcome/index.jsp</welcome-file></welcome-file-list><servlet><servlet-name>jcaptcha</servlet-name><servlet-class>com.tks.util.ImageCaptchaServlet</servlet-class><load-on-startup>0</load-on-startup></servlet><servlet-mapping><servlet-name>jcaptcha</servlet-name><url-pattern>/jcaptcha</url-pattern></servlet-mapping><error-page><error-code>500</error-code><location>/error.jsp</location></error-page><error-page><error-code>400</error-code><location>/index.jsp</location></error-page><error-page><error-code>403</error-code><location>/403.jsp</location></error-page><error-page><error-code>404</error-code><location>/404.jsp</location></error-page></web-app>
解决方案
解决方案二:
Heritrix是撒?下我去查查,根据我的经验这样一下贴这么多代码几乎没有人回复的来问问题,你自己要先知道问题出在哪,然后再发上来一点建议,帮你顶一下
解决方案三:
Heritrix是一种网络爬虫,这个问题我也找了好久了。我在看看吧!