Hi,

at first I thought we already had a issue for that, which should actually
be fixed by now.
But I couldn't find it, could you a) please verify with the latest 6.0.3
snapshot
b) if it still fails, open an issue for it?

Regards, Achim


2017-03-14 1:02 GMT+01:00 Eben Stewart <[email protected]>:

> 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
>    
> <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 - [email protected]
>
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to