Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:28 Go to next message
Plain Joe is currently offline Plain JoeFriend
Messages: 1
Registered: April 2016
Junior Member
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 13:26 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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: Mon Oct 26 09:45:39 GMT 2020

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

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

Back to the top