java - 匹配的通配符是严格的,但找不到元素“任务:注释驱动”的声明
问题描述
每次我尝试在 Oracle WebLogic 上部署我的应用程序时都会收到此错误:
Message icon - Error weblogic.application.ModuleException: org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 28; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'task:annotation-driven'.:org.xml.sax.SAXParseException:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'task:annotation-driven'.
Message icon - Warning Errors were encountered while performing this operation
xml文件:
<?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:aop="http://www.springframework.org/schema/aop"
xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:util="http://www.springframework.org/schema/util"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.3.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<jee:jndi-lookup id="dataSource" jndi-name="test_DS" />
<task:annotation-driven />
<context:annotation-config/>
<tx:annotation-driven transaction-manager="transactionManager" />
<bean id="transactionManager" class="org.springframework.transaction.jta.WebLogicJtaTransactionManager">
<property name="transactionManagerName" value="javax.transaction.TransactionManager" />
</bean>
<bean id="baseTransactionProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
abstract="true">
<property name="transactionManager" ref="transactionManager" />
<property name="transactionAttributes">
<props>
<prop key="insert*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
</beans>
我尝试了各种解决方案,但它不存在我的 url 在顶部声明有任何问题。有任何想法吗?
解决方案
推荐阅读
- php - 从许多子文件夹中随机设置背景图像
- r - 如何检测单变量异常值并在新列中标记为 TRUE 或 FALSE
- google-apps-script - 如何使用 Google Sheets (v4) API 修改依赖于特定单元格的特定数据行?
- c# - Automapper 列表到字符串忽略奇怪的值
- javascript - Javascript cloneNode() 不能按预期使用列表?
- javascript - 使有状态的 React 组件无法协同工作
- ruby-on-rails - Rails 创建具有许多关联的活动记录
- flutter - Flutter 从父级调用子状态方法
- javascript - 将承诺分配给变量并在链中返回与仅返回承诺调用不同吗?
- php - Html 表单 - 有没有办法在 &#xHHHH; 之间进行选择 和 &#DDDD; 格式?