也许是版本的问题,你试试把你的tomcat的server\lib里面的jar复制到jboss的server\standard\deploy\jbossweb-tomcat50.sar里面

解决方案 »

  1.   

    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,并同时包含才行.
      

  2.   

    前几天一个项目正好是在tomcat下开发,发布到jboss,打成war包没有错误的!Tomcat 5.0.28 Jboss 4.02 肯定没问题