This article continues to explain the deployment of J2EE distributed framework development environment:

  1. The local library directory where the Maven installation directory and Setting file are loaded is configured in Eclipse

11. Import Maven project

File Import Existing Maven Projects next step

Select your local Maven project (jeesz-Project root) and click OK

When all the projects are loaded, click Finish

Note: this import process will take some time, because I have a local connection to the network, so I will download all the JAR packages required by the project from the remote central library, please be patient.

You don’t need to wait long if you’re using a local library, and you won’t have to wait long if you’re using a company private server.

Imported project information

The package for the local library has been downloaded

12. After downloading all jars, update the Maven project:

1) Select all projects 2) right-click Maven “Update Project”, select All “Select Associated Items” and click OK

If the project still has a red X error, it must be missing the relevant JAR package. You can use:

Window showView Problem View exception information in the problem Window

If the JAR package is missing, you can copy the JAR package we provide directly to your specified directory

The next step can be carried out only after all errors in the project are cleared (as shown in the picture below).

Select all projects and clean them: Project clean

  1. Try compiling and packaging the project to see if there is a problem:

Note: Normally we package compilations against the root project because all dependencies are configured there. Jeesz-project “Run As” Maven build…

Enter clean Install -x in the dialog box that pops up and check Skip Tests, Run…

Note: If you are not familiar with maven commands, you may want to look them up

Here’s a quick explanation: Clean install -x means to clean up all projects and pack jars into the local library, where -x represents the output information. (Generally, you can use -x to locate problems with Maven.)

At this point the console starts compiling and loading all packages. This process is a bit long, please be patient

The following results indicate that the project is normal.

The generated packages (including war and JAR) are stored in the target folder. The screenshot below shows the example of jeesz-web-admin.

14.Tomcat release jeesz project (release process is not detailed, everyone will do) :

The following is an introduction to the different projects:

Jeesz-web-admin: Can be deployed independently (background management platform)

Jeesz-web-service: Can be independently deployed (REST service platform, customers can expand REST services according to their own business, which has written related instances)

Dubbo service is provided by Jeesz-service-bookmark and Jeesz-service-Task. Dubbo service is provided by Jeesz-service-Bookmark and Jeesz-service-Task. Dubbo service is provided by Jeesz-service-Task and jeesz-service-Task. It can also be deployed separately.)

Jeesz-web-bookmark and Jeesz-Web-Task are Dubbo consumer platforms. The exposed service interfaces of Dubbo are jeesz-facade – Bookmark and Jeesz-FA? Ade-task (this describes how the Dubbo client invokes the Dubbo service provider through favorites and to-do items only. The client can populate the Dubbo consumer in different projects with a few simple configurations.)

Deployment conditions:

  1. Execute mysql database script: jeesz.sql

You can refer to the JDBC configuration items of the database

  1. Jeesz-web-admin can be deployed using Tomcat

Login username and password: jeesz/admin

  1. Jeesz-web-service: can be independently deployed using Tomcat

Login username and password: jeesz/admin

The following conditions are required to deploy a Dubbo-related project

Install dubbo management platform, decompress war package to Tomcat, replace the directory with the root directory, and directly start Tomcat (The development environment provides Windows).

Zookeeper registry installation, I provide ZooKeeper-3.4.5 version (the development environment provides Windows), go to the installation directory to start

Note: I have provided relevant programs, in which dubbo management and control platform needs to be independently deployed on Tomcat server, which does not require high availability configuration and can be started directly by starting Tomcat. The Zookeeper registry has related commands that you can run and start directly. If you want to deploy on a Linux system, you can see the documentation we provide

  1. After the Dubbo console and registry are ok, the Jeesz-service-Bookmark and Jeesz-service-Task projects can be deployed to Tomat as dubbo service providers simultaneously (independently)

  2. Log in to dubbo Control Console to check the relevant service information, and you can see that the service you published has been controlled by the control Console:

http://localhost:8080/root

This is accessible directly by address because the package name was changed to Root

User name Password: root/root

  1. The partial deployment of the Jeesz-Web-Bookmark, Jeesz-Web-Task Dubbo consumer project is designed to let developers know how the service is invoked.

Here is the installation process of the whole project, please developers after installing the project into development, all business directly servitization, because the project is based on driver development, so design your table, Through the Gen code generation module of jeesz-Web-admin project, all the controller, Service, DAO, XML, JSP interfaces are automatically generated, and the business is written and processed directly. We will continue to improve the document in the near future, please pay attention to it.

Source code source welcome to study the relevant technology together, source code access please add :2670716182