I'm trying to run your petstore-example and made it up to the building and running the server via mvn install exec:exec ... but now I'm trying to do the docker part: Where I wonder since you only ADD the petstore.jar to the docker-image, but not all the other dependency jar's (like the server). Therefore the Main-Class com.networknt.server.Server can not be found in the docker-container.
1
There are 1 best solutions below
Related Questions in LIGHT-4J
- I'm planning to develop an OAuth server in a monolith, can we use light-oauth2 as libraries in our app instead of microservices?
- Add aditional information to json-schema and get it when validate through the networknt json validator
- How to validate array item types with networknt/json-schema-validator?
- How to validate against an OpenAPI schema with $refs using json-schema-validator
- How to validate JSON with schema which contains a reference to another schema?
- Light4J Oauth2 docker-compose error's saying Cannot locate specified Dockerfile
- How to Add Custom Json Schema Validators
- Is there any real light 4j examples for mapping json request to Java POJO objects?
- Is Light-4j similar to the AOP programming?
- Printing query parameters in access log for light-4j application?
- How to create light-4j fatjar for Docker
- How do we integrate access log in logback.xml for light-4j app?
- Light-oauth hazelcast purpose
- Light-OAuth2 Refresh Tokens live forever? (Must be explictly deleted)
- when starting light-oauth2 images, it shows no route handler provider available in service.yml
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is build.sh in the generated project that is used to build a docker image and publish it to the docker hub. You need to change the docker organization in the file thought. To build a fat jar in the command line, you can use
mvn install -PreleaseIf you are generating the project with the light-codegen, you can update the config.json to specify the docker hub organization instead of the default networknt.
Please be aware that some of the examples generated in the past might have a build.sh with command line
mvn clean installinstead ofmvn clean install -PreleasePlease let us know and we can regenerate them.