Heritrix和struts2.0或者struts1.2结合出现的奇怪问题!!求救!!

xyz2011 2009-04-15 09:30:18
单独的运行Heritrix项目(放在web上面)是没什么的,运行struts2+Hibernate+spring的项目也是没什么问题的,不会报下面的错误
关键是这两个一结合到一起,启动也是没问题的,运行项目时就出现问题。用到struts2.0标签时就出现问题(我也试了struts1.2的
标签也出现问题,用serlvet就没什么问题),

2009-04-14 16:22:31,125 WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Could not find property [org.apache.catalina.jsp_file]
2009-04-14 16:22:31,203 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SSH2]] - Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: (line 2, col 9): Document is invalid: no grammar found.
2009-04-14 16:22:31,203 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SSH2].[jsp]] - Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: File "/struts-tags" not found

web.xml我都检查了许多遍,没什么问题。

下面是我的web.xml的内容:

<?xml version="1.0" encoding="UTF-8"?>
<web-app 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:/applicationContext-resources.xml
classpath:/applicationContext-dao.xml
classpath:/applicationContext-service.xml
<!-- classpath:/application-mails.xml -->
classpath:/application-sendMail.xml
classpath*:/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>
...全文
203 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xyz2011 2009-04-15
  • 打赏
  • 举报
回复
Heritrix是一种网络爬虫,这个问题我也找了好久了。我在看看吧!
withwind_ 2009-04-15
  • 打赏
  • 举报
回复
Heritrix是撒?下我去查查, 根据我的经验这样一下贴这么多代码几乎没有人回复的
来问问题,你自己要先知道问题出在哪,然后再发上来
一点建议,
帮你顶一下

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧