javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V

来源:百度文库 编辑:神马文学网 时间:2024/04/29 12:06:08
I‘ve just been experiencing this same problem with a simple Struts deployment running on Tomcat 5.5 and, through a few internet searches and some luck (!) managed to solve it.
It turns out that there are (at least..) two versions of the javax.servlet.jsp.tagext.TagAttributeInfo class file: one in servlet.jar and another alternative in jsp-api.jar. The one in jsp-api.jar is the method that your struts implementation is likely to be looking for.
This error occurs if the servlet.jar file is found in your classpath before the jsp-api.jar. Therefore, ensure that both of these jar files sit in the same location (whether thats within your JRE or web app - so long as your struts application can see them) so that they will both be loaded into your classpath at the same time. To make sure, search for any other copies of these two jar files and get rid of them.
This fixed the problem for me so I hope it might be some help.
但jboss 4.0.2下的javax.servlet.jar包和jsp-api.jar的版本才一致,注意删除目录下的其他servlet.jar,并同时包含才行.