Re: Http Whiteboard

2018-10-23 Thread Steinar Bang
> Steinar Bang : > Here is a working example: One thing I forgot about the working example: - I need to have HTTP whiteboard loaded when I start the servlet components I accomplish this by adding a dependency to the pax-http-whiteboard feature in the template karaf feature files of the b

Re: Missing serviceloader capability in javax.websocket-api

2018-10-23 Thread Jean-Baptiste Onofré
Hi Richard, agree, fragment is another option, similar to private package approach as it goes in the same bundle classloader. Regards JB On 23/10/2018 08:24, Richard Hierlmeier wrote: > I found an example on Github that solves the problem be providing OSGI > fragment for javax.websocket-api bund

Re: Stackoverflow in feature:install on Karf 4.2.1

2018-10-23 Thread Jean-Baptiste Onofré
Hi Richard, I'm suspecting Vaadin features contained in the KAR to introduce a feature install loop. Let me check the features XML in Vaadin. I don't think it's directly a Karaf issue, but I would like to double check and fix in Vaadin (or Karaf eventually). Regards JB On 23/10/2018 09:22, Ric

Re: Http Whiteboard

2018-10-23 Thread Jean-Baptiste Onofré
Hi Scott, sorry for the later answer, I was traveling yesterday. You have an example in the Karaf distribution: https://github.com/apache/karaf/tree/master/examples/karaf-servlet-example/karaf-servlet-example-annotation We also have an example in Winegrower: https://github.com/jbonofre/winegro

Re: Http Whiteboard

2018-10-23 Thread Steinar Bang
> "Leschke, Scott" : > Thanks Tim, > That’s exactly what I thought but without it I get the following from Jetty. > HTTP ERROR 404 > Problem accessing /myApp/. Reason: > Not Found > Perhaps that’s related to something else and the presence/absence of > Web-ContextPath is triggering the ot

RE: Http Whiteboard

2018-10-23 Thread Leschke, Scott
OK, got it. Sorry I realize now that’s what you were trying to tell me but I was slow on the uptake. Thanks From: Tim Ward Sent: Tuesday, October 23, 2018 11:14 AM To: user@karaf.apache.org Subject: Re: Http Whiteboard You should be able to do: HTTP_WHITEBOARD_SERVLET_PATTERN + ‘=’ + PATTER

Re: Http Whiteboard

2018-10-23 Thread Tim Ward
You should be able to do: HTTP_WHITEBOARD_SERVLET_PATTERN + ‘=’ + PATTERN_1, HTTP_WHITEBOARD_SERVLET_PATTERN + ‘=’ + PATTERN_2, HTTP_WHITEBOARD_SERVLET_PATTERN + ‘=’ + PATTERN_3, HTTP_WHITEBOARD_SERVLET_PATTERN + ‘=’ + PATTERN_4, ... Sent from my iPhone > On 23 Oct 2018, at 18:06, Leschke,

RE: Http Whiteboard

2018-10-23 Thread Leschke, Scott
I’m a bit confused. I’m doing this with OSGi R6 so the URL pattern list has to be the latter part of the string created by: HTTP_WHITEBOARD_SERVLET_PATTERN + ‘=’ + PATTERN_LIST does it not? From: Tim Ward Sent: Tuesday, October 23, 2018 10:58 AM To: user@karaf.apache.org Subject: Re: Http Wh

Re: Http Whiteboard

2018-10-23 Thread Tim Ward
You can have multiple patterns just by adding the property as a String[]/Collection. See https://osgi.org/javadoc/osgi.cmpn/7.0.0/org/osgi/service/http/whiteboard/propertytypes/HttpWhiteboardServletPattern.html#value--

Re: Stackoverflow in feature:install on Karf 4.2.1

2018-10-23 Thread Francois Papon
Hi, I can reproduce the error on a fresh Karaf 4.2.1 and Oracle JDK9. I also tested this : 1- feature:install war 2- deploy example kar 3- feature:unistall war and I got this error : 19:49:08.903 ERROR [Karaf local console user karaf] Exception caught while executing command java.util.concur

RE: Http Whiteboard

2018-10-23 Thread Leschke, Scott
Thanks Tim, That’s exactly what I thought but without it I get the following from Jetty. HTTP ERROR 404 Problem accessing /myApp/. Reason: Not Found Perhaps that’s related to something else and the presence/absence of Web-ContextPath is triggering the other issue. I’ll see what I can figure

Re: Http Whiteboard

2018-10-23 Thread Tim Ward
I wouldn’t expect you to need anything specific in your bnd file. Web-ContextPath is part of a different OSGi specification (the Web Application Bundle spec) so there shouldn’t be any need for that at all. Best Regards, Tim > On 23 Oct 2018, at 17:06, Leschke, Scott wrote: > > Thanks Tim. T

RE: Http Whiteboard

2018-10-23 Thread Leschke, Scott
Thanks Tim. That was the problem. I noticed that just after I sent the email but hadn’t had a chance to try it yet. I pulled that from a YouTube video Ray Auge did way back in 2014 and sort of blindly regurgitated what I saw. There’s something else I noticed though. It would seem that it’s st

Stackoverflow in feature:install on Karf 4.2.1

2018-10-23 Thread Richard Hierlmeier
I ran into a stackovevflow exeception when executing the following command on Karaf 4.2.1: karaf@root()> feature:install war java.lang.StackOverflowError at java.lang.String.indexOf(String.java:1503) at org.apache.felix.utils.resource.SimpleFilter.subfilter(SimpleFilter.java:283)