Skip to main content



      Home
Home » Newcomers » Newcomers » Embedded Jetty - Adding Context after starting Jetty Server(Adding Multiple Context after starting Jetty Server)
Embedded Jetty - Adding Context after starting Jetty Server [message #1728665] Wed, 06 April 2016 07:28 Go to next message
Eclipse UserFriend
Is it right to start a jetty instance with no context specified and no context handler, then keep adding context to it once the server has started. Although I was able to do this using mutable HandlerCollection and the logs says the Server and the Contexts are started and available, I am not able to access it the URL with the context [ Not Found error]. Or should we add at least one root context and contexthandler to the server while starting it?

Also my main thread starts the server. Post that it will spawn couple of threads which each creates WebAppContext and start them.

My jetty version is 9.3.7.v20160115

Re: Embedded Jetty - Adding Context after starting Jetty Server [message #1728694 is a reply to message #1728665] Wed, 06 April 2016 09:26 Go to previous message
Eclipse UserFriend
On 04/06/2016 06:31 AM, Plain Joe wrote:
> Is it right to start a jetty instance with no context specified and no
> context handler, then keep adding context to it once the server has
> started. Although I was able to do this using mutable HandlerCollection
> and the logs says the Server and the Contexts are started and available,
> I am not able to access it the URL with the context [ Not Found error].
> Or should we add at least one root context and contexthandler to the
> server while starting it?
>
> Also my main thread starts the server. Post that it will spawn couple of
> threads which each creates WebAppContext and start them.
> My jetty version is 9.3.7.v20160115
>
>


This isn't a good forum for Jetty; check here:

http://www.eclipse.org/jetty/
Previous Topic:Editor is faulty
Next Topic:Eclipse Mars SSL connection issue : javax.net.ssl.SSLHandshakeException: sun.security.validator.Vali
Goto Forum:
  


Current Time: Sun Jul 27 14:36:59 EDT 2025

Powered by FUDForum. Page generated in 0.08494 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top