Plugin execution not covered by lifecycle configuration...

本文解决权限系统中出现的几个异常问题,包括引入第三方插件eclipselink报错、缺失数据源依赖以及不适用的JDK版本问题,并提供了解决方案。

      

    最近在跟权限系统,导入源码后出现了很多异常,其中之一如下:引入第三方插件eclipselink报错信息:

Plugin execution not covered by lifecycle configuration: au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.3:weave (execution: default, phase: process-classes)

    直译过来大意就是插件执行没有被生命周期配置给覆盖。也就是说该插件没有被合理管理起来。

针对上述错误信息,那么给它添加一个管理就OK了。

       

JBAS014775: 新的缺失的/未满足的依赖关系:
service jboss.naming.context.java.jboss.datasources.JcMysqlDS (缺失的)依赖关系: [service jboss.persistenceunit."itoo-authority-start-ear.ear/itoo-authority-api-0.0.1-SNAPSHOT.jar#MT_HOTEL_SERVICE", service jboss.persistenceunit."itoo-authority-start-ear.ear/itoo-authority-start-web-0.0.1-SNAPSHOT.war#MT_HOTEL_SERVICE"]

仔细查看错误信息,最终原因是没有找到依赖的数据源JcMysqlDS,找到原因了那就给它配置数据源就好了。


Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

    直译过来就是这个标签只适用于jdk1.5及1.5以上的版本(注意:jdk1.8可能会有其他异常),修改项目的jdk版

本或者直接使用myeclipse自带的jdk也可以。


    如果修改后还报找不到'component-scan',则可能是spring的配置文件内部的隐性异常,将

applicatonContext.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:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:task="http://www.springframework.org/schema/task" xmlns:cache="http://www.springframework.org/schema/cache"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">


    每解决一个问题就多了一点积累,正因为有了一点点的进步才会有最终的成功,加油!




评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值