Questions tagged [pax-web]

OSGi HttpService and Web Applications implementation using Jetty.

OSGi R4 Http Service and Web Applications (OSGi Enterprise Release chapter 128) implementation using Jetty. Pax Web extends OSGi Http Service with better servlet support, filters, listeners, error pages and JSPs and some others in order to meet the latest versions of Servlet specs. Pax Web facilitates an easy installation of WAR bundles as well as discovery of web elements published as OSGi services. All of this beside the, standard, programmatic registration as detailed in the HTTP Service specs.

50 questions
1
vote
1 answer

OPS4J Pax Web / Apache Karaf: Get dynamically selected HTTP port at runtime

Problem: I'm trying to get the dynamically selected HTTP port from OPS4J Pax Web within my application code at runtime. Setup: I have a custom Apache Karaf 4.4.0 distribution that installs the http Karaf Feature as a boot feature. The http Karaf…
IProtex
  • 13
  • 3
1
vote
0 answers

How to use Primefaces in OSGi-Framework karaf?

I want to use Primefaces in karaf. For that i combined the karaf-war-example with pax-web-primefaces-example and get a working karaf-feature which can be found at bitbucket. The example works fine, but when i want to extend the project with any…
Matthias Wegner
  • 303
  • 4
  • 18
1
vote
1 answer

Pax-web, jetty and RewriteHandler leads to 404

in jetty.xml of pax-web (pax-web 6.0.3, jetty 9.3.14), I defined a RewriteHandler like this:
Shimbawa
  • 262
  • 3
  • 12
1
vote
1 answer

Specs: OSGi HTTP Whiteboard and ServletContextHelper

I need some precision about the ServletContextHelper behavior related to the Http Whiteboard Specification when multiple bundle use the same ServletContextHelper The spec says : The Http Whiteboard implementation must create a separate …
Jérémie B
  • 10,611
  • 1
  • 26
  • 43
1
vote
1 answer

how to hot update a restful bundle to karaf when dev

everyone, I followed the karaf guide, the bundle:watch command and the remote debug is ok, but when I issue a mvn clean install command in a web project with restful service, karaf failed to update the bundle, here is the error: 2016-12-20…
xetlab
  • 11
  • 1
1
vote
1 answer

Unable to start up Pax-web

I'm playing with OSGi via the framework implementation Felix 5.4. Currently I want to install an application server on a OSGi framework as a bundle. I've look at Pax-web and it seems the perfect solution for me. However, after successfully started…
Koldar
  • 1,317
  • 15
  • 35
1
vote
1 answer

Camel cxf pax-web Handle WS-Security Username token

I'm implementing a web service using camel cxf to be deployed in Karaf. I'm using the pax web that comes with karaf. I'm using the cxf codegen plugin in pom to do wsdl to java. I'm defining the cxf uri and the routes in the RouteBuilder Java DSL.…
user127091
  • 183
  • 1
  • 1
  • 13
1
vote
1 answer

Configuring hessian service in karaf with spring dm

With the environment: Karaf 3.0.1 Spring 3.2.4 Hessian 4.0.33 I have already exposed a service via CXF and now I'm trying to expose the same service as a Hessian Service. There is no war or web.xml, just plain beans + pax-http and I have tried…
Ivan Arrizabalaga
  • 686
  • 1
  • 7
  • 22
1
vote
2 answers

Create Jetty Connectors in Pax-Web

Is there a possibility (API) to add Jetty connectors via Pax-Web programmatically. Pax-Web internally uses a nice JettyServer interface, but there seems to be no OSGi service available. The ports that must be available are not known in advance, so I…
Herr-Herner
  • 491
  • 6
  • 22
1
vote
1 answer

Pax Web on Knopflerfish on Android

I'm planning to start OSGi on Android with Web Services, wherein I will be able to run Java Server Pages (jsp) and Java Servlets on Android Browser. My initial step was installing Knopflerfish on Android. I have followed this tutorial from…
Nyahaha Wakoko
  • 51
  • 1
  • 1
  • 8
1
vote
1 answer

Servlets registered on the "wrong" OSGi HttpService

We have a problem with conflicting HttpServices in our OSGi system based on Apache Karaf embedded in a web application running in Tomcat. Some parts of our application are non-OSGi based and respond to requests directly through code in our WAR, and…
mikewse
  • 457
  • 3
  • 11
1
vote
0 answers

Serving static resources with pax-web in OSGi Felix

I'm stumped with something that should be really simple. I am using pax-web-jetty-bundle 3.0.0 and registering the following: httpService.registerResources("/", "/tmp/static",null); I am however unable to see /tmp/static/somefile.txt when accessing…
Miquel
  • 15,405
  • 8
  • 54
  • 87
1
vote
1 answer

How to access a (Blueprint) OSGi service from a Pax Web deployed web bundle?

I am currently using Pax Web to deploy an OSGi web application bundle. From this web bundle I need access to a set of OSGi services. In the rest of the system I am using Blueprint for creating and consuming services. This is great as it provides…
pillingworth
  • 3,238
  • 2
  • 24
  • 49
1
vote
2 answers

jetty osgi : securing all servlet with one securityHandler

I'm using jetty as an osgi bundle with paxweb. I would like to be sure that all the servlets and resources registered thanks to the OSGI HttpService are secured by one common SecurityHandler (moreover I would like to use the JAASLoginService). I…
guillaume
  • 6,477
  • 5
  • 17
  • 15
1
vote
1 answer

Can Pax Web Whiteboard ResourceMapping have path pointing outside the bundle?

I've tried to register the following ResourceMapping as an OSGi service: package ru.focusmedia.odp.server.poim.http; import org.ops4j.pax.web.extender.whiteboard.ResourceMapping; import ru.focusmedia.odp.server.poim.api.PoimConfig; import…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487