Questions tagged [ops4j]

OPS4J stands for Open Participation Software for Java. OPS4J is a community that is trying to build a new, more open model for Open Source development.

OPS4J stands for Open Participation Software for Java. OPS4J is a community that is trying to build a new, more open model for Open Source development.

16 questions
3
votes
1 answer

Orientdb partitioned graph java implementation

I've got a backend Spring application and Orientdb graph database. I use Tinkerpop Frames to map orientdb vertices to java objects and OPS4J for spring transaction management. Now I want to implement there a multitenancy where several customers…
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
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
1 answer

Pax-log4j2 logging configuration ignored after OSGi stops

I have a maven project with number of OSGi bundles and I use log4j2 with pax-logging for the logging backend. When I stop the program, after the OSGi framework is shut down the rest of the logs does not follow the log4j2 configurations and so the…
Asma Zinneera Jabir
  • 801
  • 3
  • 13
  • 31
2
votes
1 answer

How to get rid of the logging startup messages in the console when using PAX logging?

I have been asked to implement PAX logging on our RCP application. Basically, I have followed this tutorial. As you may noticed, it says that when "you run your RCP application, you should see Pax ConfMan logging output to your console". Please…
AuroMetal
  • 928
  • 3
  • 14
  • 32
1
vote
0 answers

pax-logging-log4j2 is not stopping in PaxExam+Karaf

I am running test cases with paxexam+karaf, but after test execution when paxexam try to stop log42 bundle during containaer shutting it got stuck and stay on below line I am using Paxexam 4.11 DEBUG | features-2-thread-1 | util …
Zaheer
  • 45
  • 7
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

How do you set a validationQuery when using karaf + Ops4j jdbc + apache DBCP?

I've followed the tutorial here: http://www.liquid-reality.de/display/liquid/2012/01/13/Apache+Karaf+Tutorial+Part+6+-+Database+Access which explains how to set up a datasource in Karaf using apache DBCP wrapped by Ops4J JDBC. You can set properties…
david webber
  • 518
  • 1
  • 5
  • 13
1
vote
1 answer

ConversionPattern to log the hostname in JBossFuse / Apache Camel (ops4j)

Using JBoss Fuse / Apache Camel, writing to log file configured in org.ops4j.pax.logging.properties, I would like to log the host name. log4j.appender.myapp.layout.ConversionPattern=${host} %d{ISO8601} %p %X{bundle.id} %c{1} %m%n The part in the…
vikingsteve
  • 38,481
  • 23
  • 112
  • 156
0
votes
1 answer

OPS4J Pax CDI Sample1 on Karaf 4.2.9

I have a karaf server. I downloaded ops4j and try CDI in sample1. Unfortunately the servlet do not start and remains in state deploying. karaf@root()> list START LEVEL 100 , List Threshold: 50 ID │ State │ Lvl │ Version │…
Grim
  • 1,938
  • 10
  • 56
  • 123
0
votes
0 answers

Failure to find org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0.RC1

I was getting following error while running Apache Karaf through Pax-Exam [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.1.5:features-add-to-repository (features-add-to-repository) on project my-project: Error…
ImranRazaKhan
  • 1,955
  • 5
  • 33
  • 74
0
votes
1 answer

Pax-logging-log4j2 having custom appenders in two packages

I have written plugins in a package and given them as a fragment of pax-logging-log4j2 and this works perfect. Now I want to have a another fragment having another set of appenders and did the same. Both the bundles get registered as fragments of…
Asma Zinneera Jabir
  • 801
  • 3
  • 13
  • 31
0
votes
1 answer

using pax-logging properties file in classpath

I am using pax-logging with log4j2 and have custom appenders written in OSGi environemt. When I give the pax-logging properties file as a system property, the custom appenders are not read. Is there a way to use pax-logging in the classpath like…
Asma Zinneera Jabir
  • 801
  • 3
  • 13
  • 31
0
votes
1 answer

Java Log4j2 with pax logging not creating the Log4j2Plugins.dat file in maven project

I want to implement a custom plugin with Log4j2 with ops4j-pax-logging but the Log4j2Plugins.dat is not getting created. When I use just Log4j2 it gets created with no issue.
Asma Zinneera Jabir
  • 801
  • 3
  • 13
  • 31
0
votes
1 answer

pax jdbc datasource configuration variable

I'm using a connected Docker mysql instance with my docker container which contains a Karaf 4 instance configured with a Pax JDBC datasource. My problem is that my jdbc url depends on some environement variables setup by docker (as the mysql…
Jerome
  • 61
  • 9
1
2