Resin released Spring-boot project error "Java.lang.NoSuchMethodError:org.jboss.logging.Logger.getMessageLogger"

Source: Internet
Author: User

To speak plainly or jar package conflict problem, directly say the solution:

First replace the Validation-api-1.0.0.ga.jar under Resin/lib with the package in the project Validation-api-2.0.1.final.jar

And then the Resin/webapp-jars under the

Hibernate-validator-4.3.0.final.jar Jboss-logging-3.1.0.cr2.jar is replaced with the version in the project Hibernate-validator-5.1.0.final.jar Jboss-logging-3.3.0.final.jar

To the Spring-boot project, modify the Gredle file to exclude the following

Spring-boot-starter-tomcat
Hibernate-validator

Modify the project startup class so that it inherits from the Springbootservletinitializer class, and override the Configure method, as shown in:

Project package, re-resin and publish the project.

Release command: sudo./resinctl Deploy/**/**/**.war

Resin released Spring-boot project error "Java.lang.NoSuchMethodError:org.jboss.logging.Logger.getMessageLogger"

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.