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
3
votes
1 answer

How to enable SSL Debug in Jetty?

I am trying to resolve an SSLHandshakeException and for that, I am trying to enable SSL to debug mode, I have tried setting -Djavax.net.debug=ssl but it doesn't work, the logger only gives me information about classes like…
Diego Ramos
  • 989
  • 4
  • 16
  • 35
3
votes
3 answers

Serving static files with jetty in karaf (outside of bundle)

we are struggling with the simple issue of serving static files from somewhere in the filesystem but outside of the web application, but we can't get it running. There are sever examples on how to do this, but none of them seem to work and so far we…
Florian
  • 53
  • 7
3
votes
1 answer

NCSA request handler doesn't work in pax-web 1.1.4

I try to enable NCSA request logging in pax-web 1.1.4. The recommended way to do it doesn't work. The file was created but it stays empty. Looking in source code I found that pax web implementation of Jetty server passes requests to…
3
votes
1 answer

Setting custom response headers for static resources served in OSGi environment

The task that we are trying to solve is to set custom response headers for static resources (e.g. Cache-Control) that are exposed in OSGi environment using HttpService.registerResources() method. What is the best away to achieve this goal given the…
Volodymyr Tsukur
  • 275
  • 1
  • 3
  • 10
3
votes
1 answer

Issues with GWT in OSGi+Pax-Web using Declarative Services

I'm migrating an existing GWT app running on OSGi (Equinox) and Pax-web to use Declarative Services instead of programmatic Service Tracker. I'm using Pax-Web in Equinox. A WAR-based GWT application is loaded with no problems by PAX-WEB War…
maasg
  • 37,100
  • 11
  • 88
  • 115
2
votes
0 answers

Servlet not getting invoked using osgi.service.http.whiteboard pattern

Currently i am working on an issue where if content-type format is invalid (type/subtype , where "/" is missing), jetty sends response back as 400. I need to customize the error message using whiteboard pattern (osgi.service.http.whiteboard). I…
ajay gupta
  • 41
  • 2
2
votes
2 answers

Publishing JAX-RS endpoints with pax-web

I have REST endpoints published in OSGi container (Karaf) using javax.ws.rs annotations. HttpService is created by pax-web, and jax-rs services are published by com.eclipsesource.jaxrs/publisher. In order to use this publisher, a quite monstrous…
9ilsdx 9rvj 0lo
  • 7,955
  • 10
  • 38
  • 77
2
votes
0 answers

How can I register JSR-356 Websocket in PAX-Web? (In bundle, not WAR)

I have a problem with the PAX-Web. I've tried to register a Websocket service as declrarative, but it is unaccessible from web. I've tried the given websocket-jsr356-6.0.3.war and it works fine. As I see the WAR file handles differently the…
2
votes
5 answers

Jetty, websocket, java.lang.RuntimeException: Cannot load platform configurator

I try to get http session in Endpoint. I followed this recomendations https://stackoverflow.com/a/17994303 . Thats why I did: public class MyConfigurator extends ServerEndpointConfig.Configurator { @Override public void…
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
2
votes
1 answer

How to specify Jetty connector for Pax Web DefaultResourceMapping

I am using Camel-CXF to publish a web service from a bundle. I use blueprint for configuration. My understanding is that this CXF configuration will dynamically create a Jetty connector on the specified port and publishes the CXF servlet at the…
Ralf
  • 6,735
  • 3
  • 16
  • 32
2
votes
1 answer

Apache Karaf Deploying .War File

My purpose is to run a JSF application on OSGI Framework. So, I am trying to deploy a WAR file to a servlet container for OSGi web applications, called PAX-WEB. I have a proper working JSF implementation working on WildFly 8.0 application server. I…
ectnky
  • 73
  • 3
2
votes
2 answers

Apache Felix with Pax Web War Extender error starting bundle

I'm developing with Osgi and Apache Felix and I have this problem. When I install and start the war of my Jersey project on my Apache Felix I get this: org.ops4j.pax.web.pax-web-extender-war[org.ops4j.pax.web.extender.war.internal.Activator] :…
João Martins
  • 1,026
  • 2
  • 14
  • 35
2
votes
1 answer

Configure authentication for servlets in OSGi

I have Karaf 3.0.2 as my container, which uses pax web (which again uses jetty, I think). I have several servlets which I register as an OSGi service under a certain alias. By default, etc/jetty.xml is configured so that I can use a…
palador
  • 37
  • 5
2
votes
1 answer

Adding OSGi fragment bundles in Felix servletbridge war

I am trying to create war hosting OSGi bundles. The complete configuration should be able to host WAB bundles, and now I try to integrate pax-web-extender-war for that. It requires some dependencies like slf4j-api and slf4j-log4j12 and here is the…
Petr Kozelka
  • 7,670
  • 2
  • 29
  • 44
2
votes
1 answer

How to get Jetty in Karaf to serve static content from file system?

I need to serve static content from outside a bundle in Karaf. Since it already has Pax Web and Jetty built in, I've thought it wouldn't be a problem, but no success so far :( I have jetty, http, http-whiteboard and war features installed. Following…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
1
2 3 4