maven 编译,启动错误 由于用到了 Alibaba dubbo2.5.3 ,里面引用依赖了 org.springframework 2.5.6...

1. org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring/resource/applicationContext-resource.xml]; nested exception is java.lang.IllegalStateException: AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher

2. java.util.zip.ZipException: invalid LOC header (bad signature)

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)

 

3.org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/resource/applicationContext-mybatis.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

 

经过判断  spring-core  一定要大于3.1

我们几个独立项目   工程有 4.2.7    ,  4.2.2   , 4.0.7     都大于3.1 

123715_mH8x_240535.png

出现这种错误,清理环境,然后再开始。

1)清理本地所有仓库内容。

2)重新下载后,发现 还是有jar冲突。

 

123353_PJGL_240535.png

123315_ajO7_240535.png

123328_L3wR_240535.png

排除掉

<!-- https://mvnrepository.com/artifact/com.alibaba/dubbo -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>dubbo</artifactId>
            <version>2.5.3</version>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

转载于:https://my.oschina.net/yizhichao/blog/794665

Dubbo 2.5.3 全部jar包下载 [INFO] dubbo-parent ...................................... SUCCESS [1.042s] [INFO] Hessian Lite(Alibaba embed version) ............... SUCCESS [4.438s] [INFO] dubbo-common ...................................... SUCCESS [9.153s] [INFO] dubbo-container ................................... SUCCESS [0.019s] [INFO] dubbo-container-api ............................... SUCCESS [1.557s] [INFO] dubbo-container-spring ............................ SUCCESS [1.378s] [INFO] dubbo-container-jetty ............................. SUCCESS [1.448s] [INFO] dubbo-container-log4j ............................. SUCCESS [1.566s] [INFO] dubbo-container-logback ........................... SUCCESS [1.775s] [INFO] dubbo-remoting .................................... SUCCESS [0.151s] [INFO] dubbo-remoting-api ................................ SUCCESS [6.705s] [INFO] dubbo-remoting-netty .............................. SUCCESS [5.750s] [INFO] dubbo-remoting-mina ............................... SUCCESS [2.109s] [INFO] dubbo-remoting-grizzly ............................ SUCCESS [0.989s] [INFO] dubbo-remoting-p2p ................................ SUCCESS [2.322s] [INFO] dubbo-remoting-http ............................... SUCCESS [3.506s] [INFO] dubbo-remoting-zookeeper .......................... SUCCESS [1.279s] [INFO] dubbo-rpc ......................................... SUCCESS [0.015s] [INFO] dubbo-rpc-api ..................................... SUCCESS [3.413s] [INFO] dubbo-rpc-default ................................. SUCCESS [4.105s] [INFO] dubbo-rpc-injvm ................................... SUCCESS [3.112s] [INFO] dubbo-rpc-rmi ..................................... SUCCESS [1.349s] [INFO] dubbo-rpc-hessian ................................. SUCCESS [1.721s] [INFO] dubbo-rpc-http .................................... SUCCESS [1.199s] [INFO] dubbo-rpc-webservice .............................. SUCCESS [0.997s] [INFO] dubbo-cluster ..................................... SUCCESS [6.085s] [IN
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值