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
0
votes
0 answers

How do I bind my LDAPLoginModule to the Jetty paths I define?

I am looking for a way to restrict access points to people and/or groups that come from my Active directory. I have managed to configure my ldap-module correctly (I hope) by dropping a ldap-module.xml file in my "deploy" directory in my Apache Karaf…
Pouissante
  • 56
  • 1
  • 5
  • 25
0
votes
2 answers

OSGi HTTP whiteboard static welcome document

Inside an OSGi standard module (jar, not a wab), I am exposing both a few web services (with the OSGi JAX-RS whiteboard) and an index.html static file using @HttpWhiteboardResource (which itself works with the OSGi HTTP whiteboard). Everything works…
Marcanpilami
  • 584
  • 3
  • 14
0
votes
1 answer

Are there examples of running Jetty 9.4 with JSP support or Pax Web with JSP support in a plain Equinox framework?

I am attempting to get Jetty 9.4 with JSP support running in our applications OSGI container. I've used the information at https://www.eclipse.org/jetty/documentation/9.4.x/framework-jetty-osgi.html to get jetty running and serving static pages.…
Jared
  • 39,513
  • 29
  • 110
  • 145
0
votes
1 answer

Failure to find org.osgi:org.osgi.service.jaxrs:jar:1.0.0-SNAPSHOT

I wanted to analyse the samples for JAX-RS for Pax-Web. However, I can't import it to Eclise or compile with Maven because the following maven dependency can't be found: org.osgi:org.osgi.service.jaxrs:jar:1.0.0-SNAPSHOT I was trying to find the…
9ilsdx 9rvj 0lo
  • 7,955
  • 10
  • 38
  • 77
0
votes
1 answer

How To test OSGi SOAP bundle in PAX-EXAM?

I am able to test normal bundle using PAX-EXAM but I can't for OSGi SOAP bunlde, it throws error before activating OSGi SOAP bundle: biz.vnc.commons.exceptions.ServiceUnavailableException: com.sun.xml.internal.ws.api.message.Header not found by…
Umesh Rajani
  • 139
  • 2
  • 13
0
votes
1 answer

CSS not working in PaxWeb Http Whiteboard

I am using PaxWeb Http Whiteboard service in Apache Karaf; while everything works, I am unable to get certain CSS styles rendered properly - for example, arrow-dropup-circle { content: "\f364"; } This is supposed to display a drop up circle…
Venkatesh Laguduva
  • 13,448
  • 6
  • 33
  • 45
0
votes
1 answer

How to change Apache Karaf / Jetty / Pax-Web default path from / to your-custom-path/?

I have a Karaf installation with some .war-files in it. Each of them is available via hostname:port/individual-context-path. How can i redirect the hostname:port/ call, which gives a 404 actually - to a given context-path? Which files defines the…
hwsw
  • 2,596
  • 1
  • 15
  • 19
0
votes
2 answers

Cannot register a filter to the CXF bundle in my bundle

I am having trouble using the Pax Web Whiteboard service to register a javax.servlet.Filter to a running JaxRS endpoint registered through CXF. I have tried a few different approaches, namely registering the Filter as a service, and using the…
Martin Nielsen
  • 1,865
  • 6
  • 30
  • 54
0
votes
1 answer

How to set jetty.xml fragment bundle property in Karaf

I created a fragment host for org.ops4j.pax.web.pax-web-jetty which contains a jetty.xml file which is perfectly picked up inside Karaf. This jetty.xml file contains a line like this:
Jerome
  • 61
  • 9
0
votes
1 answer

How to setup CDI (OpenWebBeans or JBoss Weld) for use with JSF in Apache Karaf 4.0.3 with PAX-WEB 4.2.3 / Jetty 9.2.10

I'm trying to setup Apache Karaf 4.0.3 with CDI (PAX-CDI) for using it with JSF / Primefaces. I've already tried it with Apache OpenWebBeans and JBoss Weld, but every try ended up in an Exception (see below). My current…
funfried
  • 605
  • 3
  • 14
0
votes
2 answers

Enable / disable allowed cipher suites in Apache Karaf with Pax (including Jetty)

I am using Apache Karaf to host my web service. I enabled SSL connections through the Karaf client with the commands shown below post start up since I have multiple servers running the same code but with different certificates and configurations.…
aspergillusOryzae
  • 746
  • 2
  • 9
  • 25
0
votes
1 answer

How to use @WebServlet and @Component in pax-web

I have a setup where I use the Pax-Web WAR-Extender so I can register servlets in standard-fashion. Before using the WAR-Extender the servlet was a singleton where I was able to inject other osgi-references. With the extender, the services get…
lostiniceland
  • 3,729
  • 6
  • 38
  • 50
0
votes
1 answer

Pax-Web Jetty-Bundle publishing Jersey App

I'm trying to deploy a Jersey app on Apache Felix. I have these bundles installed: ID|State |Level|Name 0|Active | 0|System Bundle (4.4.1) 1|Active | 1|Apache Felix Bundle Repository (2.0.2) 2|Active | …
João Martins
  • 1,026
  • 2
  • 14
  • 35
0
votes
1 answer

How to start OSGi bundle in different port in karaf with jetty

I have multiple OSGi bundles and would like to expose those bundles from different port. Basically bundles has REST API and I would like to run API's in different ports. My REST API bundle jars is having jaxrs:server configuration.
Srikanth Hugar
  • 385
  • 5
  • 22
0
votes
1 answer

Apache Felix + Pax Web + Primefaces: ClassNotFoundException FacesServlet

I am trying to deploy a simple primefaces (4.0) testapplicationon on the felix framework (4.2.1) with pax web (3.0.5). But I always get an ClassNotFoundException FacesServlet (and ConfigureListener). Although I have the right jar files in…