【发布时间】:2011-07-29 13:28:00
【问题描述】:
我在尝试使用 JSTL 时遇到了一个奇怪的 maven 错误:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
我认为这是因为它不是一个具体的实现。 Glassfish 中似乎有一个具体的实现,但我不知道如何包含它。
我得到的错误是这样的:
java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/servlet/jsp/jstl/core/LoopTagSupport
或
java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/servlet/jsp/jstl/core/ConditionalTagSupport
【问题讨论】: