You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/09/18 05:49:20 UTC

[GitHub] wangning1015 commented on issue #50: 2.5.4-SNAPSHOT dubbo admin error

wangning1015 commented on issue #50: 2.5.4-SNAPSHOT dubbo admin error
URL: https://github.com/apache/incubator-dubbo/issues/50#issuecomment-422263440
 
 
   > 我使用的是JDK 1.8.0_05,dubbo-admin版本是2.5.4-SNAPSHOT,也遇到了一样的问题。解决方案如@ddatsh:
   > 
   > 1,WEBX的依赖改为3.1.6版;
   > 
   > ```
   >     <dependency>
   >         <groupId>com.alibaba.citrus</groupId>
   >         <artifactId>citrus-webx-all</artifactId>
   >         <version>3.1.6</version>
   >     </dependency>
   > ```
   > 2,添加速度的依赖,我用了1.7;
   > 
   > ```
   >     <dependency>
   >         <groupId>org.apache.velocity</groupId>
   >         <artifactId>velocity</artifactId>
   >         <version>1.7</version>
   >     </dependency>
   > ```
   > 3,对依赖项达博添加排斥,避免引入旧弹簧
   > 
   > ```
   >     <dependency>
   >         <groupId>com.alibaba</groupId>
   >         <artifactId>dubbo</artifactId>
   >         <version>${project.parent.version}</version>
   >         <exclusions>
   >             <exclusion>
   >                 <groupId>org.springframework</groupId>
   >                 <artifactId>spring</artifactId>
   >             </exclusion>
   >         </exclusions>
   >     </dependency>
   > ```
   > 4,webx已有spring 3以上的依赖,因此注释掉dubbo-admin里面的spring依赖
   > 
   > ```
   >     <!--<dependency>-->
   >         <!--<groupId>org.springframework</groupId>-->
   >         <!--<artifactId>spring</artifactId>-->
   >     <!--</dependency>-->
   > ```
   > 确定war包解压后lib目录没有spring 3以下的依赖就行。然后运行正常了。
   
   
   
   按照这个修改pom.xml,启动服务还是报错Could not open ServletContext resource [/WEB-INF/applicationContext.xml]……

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org