Re: web whiteboard construction order?

2019-01-13 Thread Steinar Bang
> "'Achim Nierbeck' via OPS4J" 
> :

> yes please open an issue for it ;)

Here is the issue:
 https://ops4j1.jira.com/browse/PAXEXAM-925

-- 
-- 
--
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.


Re: web whiteboard construction order?

2019-01-09 Thread Steinar Bang
> "'Achim Nierbeck' via OPS4J" 
> :

> Hi Steinar,
> yes please open an issue for it ;)

Will do! It looks like self service is switched off again. Could you
create a user for me.  This email address is fine.

Thanks!

-- 
-- 
--
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.


Re: web whiteboard construction order?

2019-01-09 Thread Steinar Bang
> "'Achim Nierbeck' via OPS4J" :

> Hi Steinar,
> yes please open an issue for it ;)

Will do! It looks like self service is switched off again. Could you
create a user for me.  This email address is fine.

Thanks!

-- 
-- 
--
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.


Re: web whiteboard construction order?

2019-01-08 Thread 'Achim Nierbeck' via OPS4J
Hi Steinar,

yes please open an issue for it ;)

regards, Achim


Am Mi., 9. Jan. 2019 um 07:43 Uhr schrieb Steinar Bang :

> > Nhut Thai Le :
>
> > I had some REST api hosted by jersey running on a stand alone version of
> > jetty but when we moved to paxweb, i was not able to make it work
> anymore,
> > so i end up switching to aries-jax-rs-whiteboard.
>
> I have Jersey in Karaf working in two different places:
>  https://github.com/steinarb/ukelonn/tree/master/ukelonn.web.services
>  https://github.com/steinarb/jersey-demo
>
> The jersey-demo is a minimal example of how to do jersey in karaf, there
> is also a PR in progress to turn the jersey-demo into an example in
> karaf:
> https://github.com/apache/karaf/pull/633
>
> I was able to load and run the project with the problem in karaf actual,
> but the pax exam test of the bundle failed.
>
> The reason for the test startup failure was that this maven dependency
> in the pax exam test project, had transitive dependencies to bundles in
> karaf 4.1.1 and that caused pax exam to fail on startup:
> 
> org.ops4j.pax.jdbc
> pax-jdbc-features
> 1.3.1
> xml
> features
> 
>
> Adding an  for the root transitive dependency made the pax
> exam test start without failing:
> 
> org.ops4j.pax.jdbc
> pax-jdbc-features
> 1.3.1
> xml
> features
> 
> 
> org.apache.karaf
> org.apache.karaf.client
> 
> 
> 
>
> This is the same as the other pax exam issue I had, ie. that just having
> a maven dependency to something affect the way pax exam starts (or:
> affects the way karaf starts in pax exam (I'm not sure exactly what the
> problem is?)).
>
> Ie. it's not a dependency *in* the features repository the maven
> dependency loads, that is the problem.  It's the maven dependency
> *itself* that causes the pax exam startup problems.
>
> (And this is unexpected and can be tricky to find)
>
> Perhaps I should open a JIRA for this?
>
> --
> --
> --
> 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.
>


-- 

Apache Member
Apache Karaf  Committer & PMC
OPS4J Pax Web  Committer &
Project Lead
blog 
Co-Author of Apache Karaf Cookbook 

Software Architect / Project Manager / Scrum Master

-- 
-- 
--
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.


Re: web whiteboard construction order?

2019-01-08 Thread Nhut Thai Le
I had some REST api hosted by jersey running on a stand alone version of
jetty but when we moved to paxweb, i was not able to make it work anymore,
so i end up switching to aries-jax-rs-whiteboard.

Thai

On Mon, Jan 7, 2019 at 2:57 PM Steinar Bang  wrote:

> > Nhut Thai Le :
>
> > I had this question a few months ago. You don't need to control the
> > registration order of ServletContextHelper and ServletFilter. Just use
> > osgi.http.whiteboard.context.select propery to wire the servlet, filter
> to
> > the context.
>
> Ok.  Thanks!   My problem is probably something else then...?
>
> --
> --
> --
> 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.
>

-- 
-- 
--
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.


Re: web whiteboard construction order?

2019-01-07 Thread Steinar Bang
> Nhut Thai Le :

> I had this question a few months ago. You don't need to control the
> registration order of ServletContextHelper and ServletFilter. Just use
> osgi.http.whiteboard.context.select propery to wire the servlet, filter to
> the context.

Ok.  Thanks!   My problem is probably something else then...?

-- 
-- 
--
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.


Re: web whiteboard construction order?

2019-01-07 Thread Steinar Bang
> Steinar Bang :

> When using pax web whiteboard, is it necessary for a
> ServletContextHelper creating a webcontext to be created before any
> servlets or filters using it?

> If so: is there a way of enforcing construction order when the
> ServletContextHelper, a shiro filter using the context, and a jersey
> servlet both using the context all reside in the same bundle and are
> instantiated as DS components?

> Can the ServletContextHelper expose a service and the servlet and filter
> @Reference this service? (what can be used as the service?)

I tried adding a @Reference to ServletContextHelper to the servlet (the
ServletContextHelper exposed this as a service already).

But adding ServletContextHelper as a @Reference didn't help with the
issue I'm seeing, so I'm guessing the construction order isn't the issue
with the problem I'm seeing (which is a problem with the Jersey servlet:
2019-01-07T19:12:52,045 | WARN  | paxweb-config-1-thread-1 | authservice
  | 87 - org.eclipse.jetty.util - 9.3.21.v20170918 | unavailable
org.glassfish.jersey.server.internal.scanning.ResourceFinderException: The URI 
scheme bundleentry of the URI 
bundleentry://26.fwk843/no/priv/bang/authservice/web/security/resources/AuthserviceResource.class
 is not supported. Package scanning deployment is not supported for such URIs.
Try using a different deployment mechanism such as explicitly declaring root 
resource and provider classes using an extension of javax.ws.rs.core.Application
at 
org.glassfish.jersey.server.internal.scanning.PackageNamesScanner.addResourceFinder(PackageNamesScanner.java:285)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.internal.scanning.PackageNamesScanner.init(PackageNamesScanner.java:199)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.internal.scanning.PackageNamesScanner.(PackageNamesScanner.java:155)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.internal.scanning.PackageNamesScanner.(PackageNamesScanner.java:111)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ResourceConfig.scanClasses(ResourceConfig.java:893) 
~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ResourceConfig._getClasses(ResourceConfig.java:863) 
~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ResourceConfig.getClasses(ResourceConfig.java:772) 
~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.(ResourceConfig.java:1199)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.(ResourceConfig.java:1172)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1168)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ApplicationHandler$RuntimeConfigConfigurator.init(ApplicationHandler.java:205)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$0(ApplicationHandler.java:313)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at java.util.Arrays$ArrayList.forEach(Arrays.java:3880) ~[?:?]
at 
org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:313)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:282)
 ~[108:org.glassfish.jersey.core.jersey-server:2.27.0]
at 
org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:335) 
~[105:org.glassfish.jersey.containers.jersey-container-servlet-core:2.27.0]
at 
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:178) 
~[105:org.glassfish.jersey.containers.jersey-container-servlet-core:2.27.0]
at 
no.priv.bang.authservice.web.security.AuthserviceServlet.init(AuthserviceServlet.java:77)
 ~[26:no.priv.bang.authservice.web.security:1.0.0.SNAPSHOT]
at 
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:370) 
~[105:org.glassfish.jersey.containers.jersey-container-servlet-core:2.27.0]
at javax.servlet.GenericServlet.init(GenericServlet.java:244) 
~[19:javax.servlet-api:3.1.0]
at 
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:643) 
~[85:org.eclipse.jetty.servlet:9.3.21.v20170918]
at 
org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:422) 
~[85:org.eclipse.jetty.servlet:9.3.21.v20170918]
at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:892) 
~[85:org.eclipse.jetty.servlet:9.3.21.v20170918]
at 

Re: web whiteboard construction order?

2019-01-07 Thread Nhut Thai Le
Hello,

I had this question a few months ago. You don't need to control the
registration order of ServletContextHelper and ServletFilter. Just use
osgi.http.whiteboard.context.select propery to wire the servlet, filter to
the context.

Thai

On Mon, Jan 7, 2019 at 1:09 PM Steinar Bang  wrote:

> When using pax web whiteboard, is it necessary for a
> ServletContextHelper creating a webcontext to be created before any
> servlets or filters using it?
>
> If so: is there a way of enforcing construction order when the
> ServletContextHelper, a shiro filter using the context, and a jersey
> servlet both using the context all reside in the same bundle and are
> instantiated as DS components?
>
> Can the ServletContextHelper expose a service and the servlet and filter
> @Reference this service? (what can be used as the service?)
>
> Thanks!
>
>
> - Steinar
>
> --
> --
> --
> 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.
>


-- 
Castor Technologies Inc
460 rue St-Catherine St Ouest, Suite 613
Montréal, Québec H3B-1A7
(514) 360-7208 o
(514) 798-2044 f
n...@castortech.com
www.castortech.com

CONFIDENTIALITY NOTICE: The information contained in this e-mail is
confidential and may be proprietary information intended only for the use
of the individual or entity to whom it is addressed. If the reader of this
message is not the intended recipient, you are hereby notified that any
viewing, dissemination, distribution, disclosure, copy or use of the
information contained in this e-mail message is strictly prohibited. If you
have received and/or are viewing this e-mail in error, please immediately
notify the sender by reply e-mail, and delete it from your system without
reading, forwarding, copying or saving in any manner. Thank you.
AVIS DE CONFIDENTIALITE: L’information contenue dans ce message est
confidentiel, peut être protégé par le secret professionnel et est réservé
à l'usage exclusif du destinataire. Toute autre personne est par les
présentes avisée qu'il lui est strictement interdit de diffuser, distribuer
ou reproduire ce message. Si vous avez reçu cette communication par erreur,
veuillez la détruire immédiatement et en aviser l'expéditeur. Merci.

-- 
-- 
--
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.


web whiteboard construction order?

2019-01-07 Thread Steinar Bang
When using pax web whiteboard, is it necessary for a
ServletContextHelper creating a webcontext to be created before any
servlets or filters using it?

If so: is there a way of enforcing construction order when the
ServletContextHelper, a shiro filter using the context, and a jersey
servlet both using the context all reside in the same bundle and are
instantiated as DS components?

Can the ServletContextHelper expose a service and the servlet and filter
@Reference this service? (what can be used as the service?)

Thanks!


- Steinar

-- 
-- 
--
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.