Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Packaging a Restlet app into a native binary image #1412

Unanswered
kerbymart asked this question in Q&A
Discussion options

Hello there! I wanted to let you know that I have created a simple POC for a native image that uses Restlet resources. You can find it on GitHub here: github.com/kerbymart/restlet-native-image.

Please note that I'm still working on writing the README, but I have managed to build the binary successfully. However, when I tried to access a resource with http://localhost:8080/hello, which should be available, I encountered a 405 error. Interestingly, the uber jar works fine, but for the "native image", I'm not sure what is causing the route to not be mapped. The build process had no errors.

You must be logged in to vote

Replies: 2 comments

Comment options

Just run mvn clean package and it should build the example binary.

You must be logged in to vote
0 replies
Comment options

@kerbymart That's really cool you are exploring this. This is something I'd like to officially support in Restlet 3.0. I don't have time yet to play with your code and help debug, but once 2.5. is more advanced, I'd love to explore this PoC further.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /