You might find it helpful to look at the embedded jetty code examples here:
https://github.com/eclipse/jetty.project/tree/jetty-9.4.x/examples/embedded/src/main/java/org/eclipse/jetty/embedded

Jan

On 19 September 2017 at 00:08, <[email protected]> wrote:

> Hi,
>
> Hoping someone can help with a problem I have not been able to solve.
> I have a simple GWT application, with a simple Jersey REST server. I am
> able to compile and succesfully run it on Eclipse IDE using SuperDev Mode.
> I am able to created a .war file from my project, and drop this .war file
> into an unmodified stand-alone Jetty (9.4.6) webapps folder, and again it
> runs as expected. The .war File Size is 95981747 bytes containing the
> appropriate GWT and Jersey jars (if that is relevant).
>
> But when I try to load the .war file into an Embedded Jetty (9.4.2), the
> server-side programs will not work at all, as if the server side programs
> did not exist. The welcome page is however available, just that it appears
> there is no backend. (I am able as well to write and run simple Jersey REST
> applications with no dependency on GWT; also able to run simple GWT apps in
> embedded mode.) GWT's JettyLauncher.java (which starts embedded Jetty in
> Dev Mode) provides no clue. From my reading of the documentation a .war
> file should just work with embedded Jetty. I can't understand why one .war
> file works in embedded Jetty and another fails, or why a .war file works in
> Jetty stand-alone mode, but seriously fails in Jetty embedded mode. Maybe
> it's a configuration problem? If so is there a document that shows how to
> configure embedded Jetty to work like the stand-alone Jetty?
>
> Regards
> Goffredo
>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



-- 
Jan Bartel <[email protected]>
www.webtide.com
*Expert assistance from the creators of Jetty and CometD*
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to