安装 struts :,下载struts安装包,把struts.jar拷贝到web-inf/lib/目录下,并且把所有的*.tld也拷贝到web-inf下,修改了web.xml,启动TOMCAT(WEBLOGIC)没什么问题。
可是把 struts 提供的几个例子放到application下后TOMCAT(WEBLOGIC)屏幕上就会出现大片的提示,我以为是找不到DTD,拷贝了DTD到web-inf下并修改了xml文件不管用。
有几行是这样,高手帮忙看看是什么原因造成的?
register(-//Apache Software Foundation//DTD Struts Configuration 1.0//EN, jar
:file:/C:/tomcat/webapps/strutsTest/WEB-INF/lib/struts.jar!/org/apache/struts/re
sources/struts-config_1_0.dtd
register(-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN, jar:file:/C:
/tomcat/webapps/strutsTest/WEB-INF/lib/struts.jar!/org/apache/struts/resources/w
eb-app_2_2.dtd
register(-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN, jar:file:/C:
/tomcat/webapps/strutsTest/WEB-INF/lib/struts.jar!/org/apache/struts/resources/w
eb-app_2_3.dtd
resolveEntity(-//Apache Software Foundation//DTD Struts Configuration 1.0//EN,
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd)
Resolving to alternate DTD jar:file:/C:/tomcat/webapps/strutsTest/WEB-INF/lib/
struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd
register(-//Apache Software Foundation//DTD Struts Configuration 1.0//EN, jar
:file:/C:/tomcat/webapps/strutsTest/WEB-INF/lib/struts.jar!/org/apache/struts/re
sources/struts-config_1_0.dtd
register(-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN, jar:file:/C:
/tomcat/webapps/strutsTest/WEB-INF/lib/struts.jar!/org/apache/struts/resources/w
eb-app_2_2.dtd
register(-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN, jar:file:/C:
/tomcat/webapps/strutsTest/WEB-INF/lib/struts.jar!/org/apache/struts/resources/w
eb-app_2_3.dtd
resolveEntity(-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN, http://
java.sun.com/dtd/web-app_2_3.dtd)
Resolving to alternate DTD jar:file:/C:/tomcat/webapps/strutsTest/WEB-INF/lib/
struts.jar!/org/apache/struts/resources/web-app_2_3.dtd
Call org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.S
tring,*.do/java.lang.String)
错误我还没找出来,就是几个例子 .war不能拷贝到你的application目录中去,而是需要拷贝到tomcat/webapps下,每个war是一个应用程序,tomcat会自己展开。
你拷贝之后,是否重新启动了tomcat?
把配置一条一条的删,看看是在哪一个配置地方出现的问题
这些是正常的提示信息,好象不是什么错误信息。你那些struts的应用能正常运行吗?
第一你的struts.jar有没有放到你的classpath路径中
第二你的struts-config.xml文件是否存在,是否配置正确
关注
你说的我也碰到。
我自己猜。。。。
可能那些输出信息是tomcai姐姐使用debug来输出信息时用的。,
在正式发布时。。。tomcat姐姐她忘了设置标志位===不输出。。。
up
这好像不是错误,是正常的信息。
如果你是否用Tomcat的话,和我联系~~
QQ:503071
resin 非常简单,不用那么麻烦的配置。
我也是今天刚弄的。
请确定两点:
1.你的Struts版本是多少?
2.是哪里下载的
你试试将Struts.jar删了,再把web.xml改回来,然后再将Struts自己带的例子放到Tomcat的发布目录下试试,正常的应该不用配置也能运行的。
3.你的tomcat版本是多少?
都是正常的输出信息,不是错误
我用的jboss输出同样的信息