Questions tagged [pax]

100 questions
0
votes
1 answer

Bundle in Karaf using wrong pax-jdbc DataSource

We have different OSGi bundles loaded in Karaf 4.0.3 and multiple javax.sql.DataSource loaded by pax-jdbc-config. For example, there are configured two datasources to different databases: karaf@root()> service:list…
everis
  • 316
  • 4
  • 11
0
votes
1 answer

maven : getting dependency details (Equinox)

New to maven and equinox. While going through a tutorial on OSGi, I issued the following commmand. pax-provision which gave the following error. -> Provision bundle [mvn:org.compass-project/compass/2.1.1, at default start level, bundle will be…
bsr
  • 57,282
  • 86
  • 216
  • 316
0
votes
1 answer

How to Pax url mvn Handler from in the very beginning of Felix (embedded) start?

How can install the pax url handler in felix? This project is managed by maven and is starting felix as follows: FrameworkFactory frameworkFactory = ServiceLoader.load(FrameworkFactory.class).iterator().next(); framework =…
gramos
  • 67
  • 1
  • 11
0
votes
1 answer

karaf + pax-jdbc the connection pool had reached the limit

I have a problem with the pool connections of pax-jdbc in karaf, I'm trying to inject a Mysql DataSource (DS) through blueprint.xml into my project, for test it, I have built a karaf command where injects the DS into karaf command class and…
christmo
  • 351
  • 2
  • 18
0
votes
0 answers

Confgure pax-exam with --definitionURL

From Dmytro Pishchukhin's blog I learned that pax-exam's runner can configure itself from an extension xml containing platform definition in the following way: @Configuration public static Option[] configurePlatform() { return options( …
0
votes
1 answer

How do I use pax to extract to a specific directory

I am currently using tar to extract files... tail -n+$ARCHIVE_START_LINE $archiveFilename | tar -xzm -C / I need to use pax instead of tar, so something like ... tail -n+$ARCHIVE_START_LINE $archiveFilename | gzip -d | pax -r This extracts to the…
spiderplant0
  • 3,872
  • 12
  • 52
  • 91
0
votes
2 answers

OSGI+CDI: strange behaviour with system printers detecting

I have CDI+OSGI javase application. CDI-Weld,OSGI-felix and pax-cdi. And I have the following code in "CDI-main" @ApplicationScoped public class Foo{ public void postCreate(@Observes ContainerInitialized event, BundleContext ctx) throws…
user2022068
0
votes
1 answer

CDI+OSGI: bundle packages scope

I use javase and solution osgi (felix)+cdi(weld)+paxcdi. I have two bundles A and B. Bundle B is a lib bundle. In bundle A I have one class and one package. package com.example.firstpackage; import com.example.secondpackage.Class2; public class…
user2022068
0
votes
1 answer

CDI: get reference to beanManager via static method

I use weld+paxcdi on java se. I can get the reference to beanManager using @Inject BeanManager beanManager; However, it's clear that I can use this way only in objects that are managed by CDI container. How can I get reference to beanmanager in…
user2022068
0
votes
1 answer

What is the difference between weld-osgi, pax-cdi and fighterfish

As I understand these 3 projects are links between CDI and OSGI but what is difference between them?
user2022068
0
votes
2 answers

how to wrap non maven jar using pax-wrap-jar

I have a jar from an old application that I want to use in the new project I am working on. I am using OSGI with pax. I know that with pax-wrap-jar we can create a bundle with a jat from maven repo, but my jar is in my local computer so I don't see…
user1828433
  • 252
  • 2
  • 11
0
votes
1 answer

Too many copies of folders and files

I think everyone is familiar with this script: find /dir1/dir2/dir3/dir4/* -mtime +5 -exec cp -rf {} /dirA/dirB/dirC/ \; My problem is that I want the contents of dir4 that are older than 5 days, which will be more subdirectories and their…
0
votes
1 answer

Custom appender OSGI Pax logging showing error

My Requirement was to create my own Log appender for doing my logging things hence Refered the Interesting blog http://notizblog.nierbeck.de/2011/08/adding-custom-log-appender-to-pax-logging/ and created my own appender and did all the steps as it…
Balaji Kannan
  • 407
  • 6
  • 24
0
votes
1 answer

Append packages to the default exported system packages

I'm using maven-pax-plugin in my OSGI project. and I use pax-provision to run the project. In some bundles I use javafx packages. I want to add javafx packages to exported system packages but I don't find a way to do it. I found this link : specify…
user1828433
  • 252
  • 2
  • 11
0
votes
1 answer

Leak memory issue with Pax logging

I'm using Pax logging in my RAP and OSGi project. I used MAT to check and see the number of org.eclipse.swt.widgets.Display object and org.eclipse.rap.rwt.internal.service.UISessionImpl object are as much as the time I refresh web application and…
gamo
  • 1,549
  • 7
  • 24
  • 36