Dubbo-admin Management Platform Construction

Source: Internet
Author: User
First, preface

Dubbo use, in fact, only need to have a registration center, consumers, the provider of these three can be used, but can not see which consumers and providers, in order to better debug, find problems, solve problems, so introduced dubbo-admin. Consumers and providers can be managed through dubbo-admin. Second, download and configuration packaging

Dubbo-admin download, can go to the official website to download: Https://github.com/alibaba/dubbo
Of course, here the small Bao also uploaded to the csdn, ape friends can download here, more convenient and fast oh:
http://download.csdn.net/detail/u013142781/9375988

Download down is such a directory structure:

But here we only care about dubbo-admin this folder.

In fact, the following so-called configuration is to get the war package, the war package on the Internet, but there are a lot of downloads will be problematic, the reason may be everyone's computer JDK version or other environment is different, so we pack a war.

Pack the war package and go to dubbo-admin this file directory to run the command:

MVN package-dmaven.skip.test=true
1 1

If you see the following results, the package is successful:

If you pack and then put the Tomcat boot error: 1. BUG: Error context. Contextloader-context initialization failed Org.springframework.beans.factory.BeanCreationException:
2. Main reasons: mainly because the JDK8 can not run normally, switch to JDK8 to run
3.jdk8 Workaround:

1
2
3
4
5
6
7
8
9
29 of each of the above
Change the dependency of Pom.xml file 1, webx to 3.1.6; <dependency> <groupId>com.alibaba.citrus</groupId> & Lt;artifactid>citrus-webx-all</artifactid> <version>3.1.6</version> </dependency> 2 , adding the velocity of dependence, I used the 1.7; <dependency> <groupId>org.apache.velocity</groupId> <arti Factid>velocity</artifactid> <version>1.7</version> </dependency> 3, adding excl to Dependencies Dubbo Usion, avoid introducing old spring <dependency> <groupId>com.alibaba</groupId> <artifactid>dub
            Bo</artifactid> <version>${project.parent.version}</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactid&gt ;spring</artifactid> </exclusion> </exclusions> </dependency> refer to: https:// Github.com/alibaba/dubbo/issues/50
 
my pom.xml file

Modify the Dubbo-admin pom file, this file can be properly packaged, support jdk1.7,jdk1.8

1
2
3
4
5
6
7
8
9
30 of each of the above. The all-in-a
-
------
57 All-in-a
-
The all-in-a-
84
94
------ 98
101
102
103
104
109 106 107
108
111
113
117
118
119
120
121
122
123
124
126 127
131 129
134
135
136 137 138
139 133
141
142
143
144
145
146
147
148
149
150
<project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xsi: schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" > <modelversion >4.0.0</modelVersion> <parent> <groupId>com.alibaba</groupId> <artifactId> dubbo-parent</artifactid> <version>2.5.4-SNAPSHOT</version> </parent> <artifactId> Dubbo-admin</artifactid> <packaging>war</packaging> <name>${project.artifactid}</name > <description>the Admin Module of Dubbo project</description> <properties> <wtpversion>1.5 </wtpversion> <wtpContextName>/</wtpContextName> <eclipse.useProjectReferences>false<
	/eclipse.useprojectreferences> <skip_maven_deploy>false</skip_maven_deploy> </properties> <dependencies> <dependency> <groupid>com.alibaba</groupid> <artifactId>dubbo</artifactId> <version>2.5.3</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifacti d>spring</artifactid> </exclusion> </exclusions> </dependency> <depe Ndency> <groupId>com.alibaba.citrus</groupId> <artifactid>citrus-webx-all</artifactid > <version>3.1.6</version> </dependency> <dependency> <groupid>org.javassist&l t;/groupid> <artifactId>javassist</artifactId> </dependency> <dependency> <groupid >org.jboss.netty</groupId> <artifactId>netty</artifactId> </dependency> <dependency > <groupId>org.apache.mina</groupId> <artifactId>mina-core</artifactId> </dependenc Y> <dependency> <Groupid>org.glassfish.grizzly</groupid> <artifactId>grizzly-core</artifactId> </ dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactid>http Client</artifactid> </

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.