将我的应用程序部署到 glassfish 3.1 服务器时出现以下错误,

加载应用程序时出现异常:

最佳答案

  • 你的问题读起来很痛苦。当您想获得帮助时,请努力让自己理解。
  • 您的 applicationContexnt.xml 文件可能缺少 JMS 命名空间声明(请参阅 Spring JMS documentation )。

  • 从 Spring 文档来看,您的 XML 文件头至少需要是(注意 JMS 部分):
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:jms="http://www.springframework.org/schema/jms"
           xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd">
    
    <!-- <bean/> definitions here -->
    
    </beans>
    

    您可能有其他命名空间声明,例如 aoputilcontext 等。

    关于spring - cvc-complex-type.2.4.c : The matching wildcard is strict, 但找不到元素 'jms:listener-container' 的声明,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17487770/

    10-12 00:37
    查看更多