Been trying to track this one down for a bit in my own code, but this also 
happens with the whiteboard-ds samples.  Also confirmed it happens with 
standard whiteboard registration in the Activator class.  This seems to 
specifically be related to the WhiteboardContext and the use of 
HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT property in the 
servlet registration.

It does work *without* the HTTP_WHITEBOARD_CONTEXT_SELECT property on the 
servlet, but that defeats the purpose of the custom Context.

Recreate with:

   - runtime:  Karaf 4.1.0 (although this happens with Felix 5.4.0 under 
   Eclipse as well) on Java 1.8
   - feature:install pax-http-whiteboard (fails on 6.0.2 and 6.1.0.SNAPSHOT)
   - installed the whiteboard-ds samples 
   
(https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/whiteboard-ds)

Everything starts up, and 


http://localhost:8181/context/servlet


returns the expected


Hello from ServletWithContext

However, if you stop and start the whiteboard-ds sample bundle, you see 
these warnings in the log:

2017-03-13 19:50:58,412 | WARN  | qtp13338047-108  | 
HttpServiceStopped               | 119 - org.ops4j.pax.web.pax-web-runtime 
- 6.1.0.SNAPSHOT | Http service has already been stopped
2017-03-13 19:50:58,413 | WARN  | qtp13338047-108  | 
HttpServiceStopped               | 119 - org.ops4j.pax.web.pax-web-runtime 
- 6.1.0.SNAPSHOT | Http service has already been stopped
2017-03-13 19:50:58,413 | WARN  | qtp13338047-108  | 
HttpServiceStopped               | 119 - org.ops4j.pax.web.pax-web-runtime 
- 6.1.0.SNAPSHOT | Http service has already been stopped
2017-03-13 19:50:58,422 | WARN  | qtp13338047-108  | 
HttpServiceStopped               | 119 - org.ops4j.pax.web.pax-web-runtime 
- 6.1.0.SNAPSHOT | Http service has already been stopped

and while the log indicated the bundle starts, hitting the same url 
produces this:

HTTP ERROR 404 

Problem accessing /context/servlet. Reason: 

    Not Found


and continues to fail until the entire framework is restarted (tried 
refreshing the pax-web-runtime and whiteboard bundles).

Thoughts?




-- 
-- 
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to