java - Struts 1.1 and Servlet 2.5 - NoClassDefFoundError for JspException during tests -
after updating servlet-api provided dependency in pom 2.3 2.5, unit tests our custom struts 1.1 requestprocessor started fail noclassdeffounderror: javax/servlet/jsp/jspexception, indeed lacking in servlet-api-2.5, compared 2.3.
i use junit 4.11 , jmockit 1.2 unit testing.
interestingly, application works fine after deploying jboss 5.1.
is struts 1.1 compatible web apps using servlet api 2.5?
maybe jboss 5.1 servlet-api different servlet-api-2.5 taken maven repository?
javax.servlet.jspexception
exception defined in jsp api. jsp api extension of servlet api.
the reason why don't experience issue in jboss 5.1 because jboss 5.1 contains jsp-api.jar
inside jboss_home\common\lib
directory.
just include same jar dependency in struts test project.
i hope helps.
Comments
Post a Comment