Git Product home page Git Product logo

Comments (4)

mamaorha avatar mamaorha commented on June 2, 2024

Exception in thread "main" java.lang.IllegalStateException: No application context available after calling main method of 'com.kpit.tf2.configuration.Application'. Does it run a SpringApplication?

do you have tomcat or anything else that will actually run your app? (make sure its compile level rather than runtime)

from graal.

fernando-valdez avatar fernando-valdez commented on June 2, 2024

Hello @abhijeeta94, can you please provide a reproducer so we can see the error locally? also, please share the exact steps you took to build and execute that project

from graal.

abhijeeta94 avatar abhijeeta94 commented on June 2, 2024

@fernando-valdez
Please clone project provided by graalvm demo - https://github.com/graalvm/graalvm-demos/tree/master/spring-native-image

Then I have installed graalvm version which has jdk version 17.0.9.
Added one plugin in pom.xml
<build> <plugins> <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifactId> <executions> <execution> <id>build-native</id> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> <configuration> <verbose>true</verbose> <quickBuild>true</quickBuild> <buildArgs combine.children="append"> <buildArg>-H:+ReportExceptionStackTraces</buildArg> <buildArg>-H:-CheckToolchain</buildArg> </buildArgs> </configuration> </plugin> </plugins> </build>

I have tried tried to hit command mvnw native:compile -Pnative
Expectation is it should create exe file which I can run and hit provided api - http://localhost:8080/jibber

from graal.

abhijeeta94 avatar abhijeeta94 commented on June 2, 2024

@mamaorha Yes we are using tomcat which is inbuild in spring boot application

from graal.

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.