Giter Club home page Giter Club logo

Comments (8)

JamesChenX avatar JamesChenX commented on July 20, 2024

Hi @hustlemickey, did you build the turms-service with the artifact-fat-jar maven profile? If not, please build the jar with the artifact-fat-jar profile, and run run.sh -f again to have a try.

Command example: mvn clean package -am -B -DskipUTs -DskipITs -P artifact-fat-jar -pl turms-service

Background

Turms servers are built as thin jars that contain no dependencies, so if you run run.sh -f (-f means run as a fat jar) with these thin jars, The Could not find or load main class org.springframework.boot.loader.JarLauncher error will occur.

from turms.

hustlemickey avatar hustlemickey commented on July 20, 2024

yes, I build with
mvn clean package -am -B -DskipUTs -DskipITs -P artifact-fat-jar -pl turms-gateway --no-transfer-progress
and
mvn clean package -am -B -DskipUTs -DskipITs -P artifact-fat-jar -pl turms-service --no-transfer-progress

still same error

from turms.

hustlemickey avatar hustlemickey commented on July 20, 2024

turms-service out put jar is 60M, is it correct size with fat jar?
image

from turms.

JamesChenX avatar JamesChenX commented on July 20, 2024

Yes. the jar ends with -exec.jar is the fat jar that you should run to run with run.sh -f.

from turms.

hustlemickey avatar hustlemickey commented on July 20, 2024

but still error, any possible reason?
image

from turms.

hustlemickey avatar hustlemickey commented on July 20, 2024

I found the reason in run.sh

MAIN_CLASS="org.springframework.boot.loader.JarLauncher"

should be

MAIN_CLASS="org.springframework.boot.loader.launch.JarLauncher"

from Spring Boot version 3.2.0-RC1, the class org.springframework.boot.loader.JarLauncher has been moved to org.springframework.boot.loader.launch.JarLauncher

from turms.

JamesChenX avatar JamesChenX commented on July 20, 2024

Thanks for pointing it out. I will update it later after full testing.

btw, you can use the code under the master branch to build and run for stability. The develop branch is used for development purposes, so it is not as stable as master.

from turms.

hustlemickey avatar hustlemickey commented on July 20, 2024

thanks

from turms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.