Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jersey war file in embedded Jetty


Goffredo,

look at https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneWebApp.java
or https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/examples/embedded/src/main/java/org/eclipse/jetty/embedded/OneWebAppWithJsp.java

cheers


On 21 August 2017 at 14:55, <goffredo@xxxxxxxxxxx> wrote:

Good afternoon,

I have a very small "hello world" REST application using Jersey that runs well with Jetty, and also with an embedded Jetty server. However, I need to package my application into a .war file and load it into an embedded Jetty server. All that I have tried has failed. Is it possible to run a Jersey REST application in a .war file from an embedded Jetty server? If so, is there any example code to show the techniques needed? I have been unable to find anything relevant so far.

Thanks
Goffredo
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--

Back to the top