Eclipse Project transfer to idea and idea Tomcat error (idea comes with Tomcat version too high) with war package deployed to win server with idea commit git summary

Source: Internet
Author: User
Tags openssl binaries apache tomcat

When eclipse exports the project to idea, do not export target;

When idea opened the Eclipse project, there was a problem that JUnit could not find because the jar package was missing and the lower version of JUnit for the MAVEN configuration showed that the workaround was not found:

        <!--Https://mvnrepository.com/artifact/junit/junit -        <Dependency>            <groupId>Junit</groupId>            <Artifactid>Junit</Artifactid>            <version>4.12</version>        </Dependency>

Use the high version of JUnit to

The lack of SERVLET-API is because eclipse comes with this jar, and idea does not, so you need to import the jar package in the idea project, or configure Maven dependency

Idea Tomcat Error:

Original source: https://www.timbotetsu.com/blog/spring-boot-2-tomcat-incompatible-version/

Spring Boot 2.0 running a continuous error solution under Windows 7 system

Yesterday Spring Boot 2.0 was officially released, and the milestone and RC versions took a long time to develop on their own MacOS machine.

The new project started yesterday, directly with Spring Boot 2.0, the code was submitted, the colleague checked out the Windows 7 machine, and the runtime threw a bunch of errors:

2018-03-01 20:34:45.025 ERROR 9632 --- [nio-8080-exec-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2018-03-01 20:34:45.025 ERROR 9632 --- [nio-8080-exec-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]

Since it has been developed in MacOS, Linux, and has never been used with Undertow, Tomcat has not encountered this problem and only knows that spring Boot 2.0 has upgraded Tomcat to 8.5.28, not very understanding APR based Apache Tomcat Native Library is something, ran to the official website to check, there is a dedicated Apr page, Apr all called Apache Portable runtime (Apache Portable runtime), encapsulated a layer, the difference between the different operating system platform, Externally providing a stable interface, TOMCAT native uses Apr to invoke various system-level files, network interfaces to provide higher performance and better stability, for Windows says:

Windows binaries are provided for tcnative-1, which is a statically compiled .dll which includes OpenSSL and APR. It can be downloaded from here as 32bit or AMD x86-64 binaries. In security conscious production environments, it is recommended to use separate shared dlls for OpenSSL, APR, and libtcnative-1, and update them as needed according to security bulletins. Windows OpenSSL binaries are linked from the Official OpenSSL website (see related/binaries).

To go to the download page, find the DLL for Windows (Binaries for Microsoft windows) download back and throw it to Windows/system and windows/syswow64.

=============================

I am using the win8.1 Enterprise Edition 64-bit, so only in System32 under the x64 version of the DLL has been successfully resolved,: http://tomcat.apache.org/download-native.cgi

War package deployment aspects: can be directly under the project root MVN package packaging can be, first build in idea, otherwise will prompt missing files, after packaging default is not the project name, need to manually modify, the project after the function is normal, and then through the Tomcat configuration good/ manager/html manually upload the war package and then start or restart the Tomcat server to run the project properly.

Idea Submission Code Cloud:

Need to provide the code cloud user name and password, it is best not to establish a readme, you can directly push success after commit, otherwise, you need to download the Readme file to the local project root directory (same as the project directory on the Code cloud), and then pull, then push.

Eclipse Project transfer to idea and idea Tomcat error (idea comes with Tomcat version too high) with war package deployed to win server with idea commit git summary

Related Article

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.