我有一个在Tomcat中运行得很好的程序。但是,我们希望将其转换为Weblogic。然而,当我尝试部署它时,我收到以下错误消息:
java.lang.IllegalStateException:AnnotationTransactionAttributeSource仅适用于Java 1.5及更高版本
问题是,我正在运行Java 1.8。我读到类似的问题可能是由Spring 2.5引起的(它显然不能识别1.7以上的任何内容),但我使用3.2.13,我尝试降级到Java 1.7,只是为了安全,但我得到了相同的错误消息
编辑:我正在运行WebLogic Server 10.3.6
还有其他人遇到过这个吗?
答案 0 :(得分:0)
您没有写下您使用的weblogic版本。
请注意Weblogic 12.1.3+ does not support Spring 3.2.x
WebLogic Server中的WebLogic Server / Spring集成功能 12.1.3支持Spring Framework版本3.0.x,3.1.x和4.0.x. (请注意,不支持Spring Framework 3.2.x版。)
因此请确保您不使用Weblogic提供的Spring实现。 您必须在部署中override the Weblogic libraries,因为提供的库通常是首选,并且在类路径中排在第一位。
有关详细信息,请参阅Weblogic documentation获取Spring支持。