Comments (4)
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.
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.
@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.
@mamaorha Yes we are using tomcat which is inbuild in spring boot application
from graal.
Related Issues (20)
- missing character set id 852 is not loaded at image build time HOT 1
- Error: Failed to automatically set up Windows build environment HOT 7
- Cannot pass a host custom objects to an Espresso method HOT 2
- Java Agents Support in Native Image HOT 3
- Use mx's auto-shader to dymaically shade ASM and JCODING dependencies for Truffle HOT 3
- [GR-51474] GraalVM for JDK 22 with JDK 22+31 fails the native-image generator (undefined reference to `Java_java_lang_VirtualThread_notifyJvmtiDisableSuspend') HOT 17
- Maven release of shaded icu4j-23.1.2.jar causes issues because of file name HOT 6
- [GR-51641] Compilation execution fails at the last step, Error: Id: Undefined symbols, _Java_java_lang_VirtualThread_notifyJvmtiEnd HOT 17
- cannot install scipy with graalpy-23.1.2-macos-aarch64.tar.gz HOT 6
- InternalResourceCache is hard-coded to 'user.home'. Overriding the path fails in tests. HOT 6
- Error reading tcl file - Cannot read resource "/tcl/lang/library/init.tcl" HOT 1
- Make graalnodejs-community available in `nvm-sh/nvm` and `coreybutler/nvm-windows`
- [GR-51307] Unable to collect GC data with NotificationEmitter in native build HOT 6
- orai18n dependency causes native application startup failure - Missing character set id 560 HOT 10
- UnsatisfiedLinkError: No awt in java.library.path HOT 6
- Determine the locale of Native Image executables at run-time
- [GR-51862] Native image build fails when using quarkus and protobuf HOT 5
- Native image service unable to compress image HOT 1
- Warning caused by Truffle and Polyglot HOT 4
- GraalVM native with kotlin issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graal.