Getting the maven plugin to fill in versions of bundles

2016-11-01 Thread Benson Margulies
Folks, I had this idea that I could set up a template in a src/main/feature.xml and have the karaf-maven-plugin fill in the versions. This idea is suggested, but not precisely promised, by the documentation. Something like: mvn:org.ops4j.pax.logging/pax-logging-api/ and the version would

Re: karaf build

2016-10-14 Thread Benson Margulies
I suggest that you actually look at the RAT output file and see of what it complains. On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider wrote: > I just ran this with no problems. > > git checkout karaf-4.0.7 > mvn clean install -DskipTests > > mvn -v > Apache Maven

Re: Scripting installation of features - Command not found: feature:repo-add (was Re: feature:repo-add -i broken in 4.0.4?)

2016-10-08 Thread Benson Margulies
Have you considered just making a karaf assembly? On Oct 8, 2016 11:22 AM, "emets...@gmail.com" wrote: > Hi Guillaume, > > After digging a bit more, the apparent disparity between the client and the > interactive console seems to be related to timing: > > bin/start && \ >

Re: Prerequisites amongst boot features

2016-09-29 Thread Benson Margulies
On Thu, Sep 29, 2016 at 10:36 AM, Guillaume Nodet <gno...@apache.org> wrote: > > > 2016-09-29 16:22 GMT+02:00 Benson Margulies <ben...@basistech.com>: >> >> On Thu, Sep 29, 2016 at 10:12 AM, Guillaume Nodet <gno...@apache.org> >> wrote: >> >

Re: Prerequisites amongst boot features

2016-09-29 Thread Benson Margulies
order, is 'prerequisite' even what I'm supposed to do? Thanks, benson > > > 2016-09-29 16:08 GMT+02:00 Benson Margulies <ben...@basistech.com>: >> >> On Thu, Sep 29, 2016 at 10:05 AM, Jean-Baptiste Onofré <j...@nanthrax.net> >> wrote: >> > Act

Re: Prerequisites amongst boot features

2016-09-29 Thread Benson Margulies
hat while still using the karaf-maven-plugin to write this file for me? Do I have to give up and manually maintain that property? Would the syntax be (a,b,c,d),e,g,f? thanks, benson > > Regards > JB > > > On 09/29/2016 03:54 PM, Benson Margulies wrote: >>

Re: Prerequisites amongst boot features

2016-09-29 Thread Benson Margulies
On Thu, Sep 29, 2016 at 10:04 AM, Benson Margulies <ben...@basistech.com> wrote: > rosapi-worker-flinx-sdk to be clear, rosapi-worker-flinx-sdk is the name of the feature that I listed as a prerequisite of another feature. And the featuresBoot when this failure is happening is: fea

Re: Prerequisites amongst boot features

2016-09-29 Thread Benson Margulies
d you mind pasting the stack trace of the error you have please ? > > > 2016-09-29 15:54 GMT+02:00 Benson Margulies <ben...@basistech.com>: >> >> Hi JB, >> >> I let the maven plugin write org.apache.karaf.features.cfg, so I don't >> know, to be hone

Re: Prerequisites amongst boot features

2016-09-29 Thread Benson Margulies
-Baptiste Onofré <j...@nanthrax.net> wrote: > Hi Benson, > > do you use multi-stage in featuresBoot ? > > Regards > JB > > > On 09/29/2016 03:33 PM, Benson Margulies wrote: >> >> Folks, >> >> I build an assembly in which all the feature ar

Prerequisites amongst boot features

2016-09-29 Thread Benson Margulies
Folks, I build an assembly in which all the feature are boot features, because they are all going to be used. When I try to make one of them a prerequisite of another, I get a wiring error, because, apparently, the dependency tree at the package level is not being respected in wiring the

Karaf 4.0.6 / pax-exam 4.8.0 hangs

2016-09-25 Thread Benson Margulies
Folks, Since we upgraded to 4.0.6 of Karaf, our integration tests sometimes hang. The karaf log is uninformative. Here is a thread-dump of Karaf, https://gist.github.com/benson-basis/99c51ad89c2358a08b7255b7d20db47a And here is one of the surefire JVM that is supposed to test it. If anyone

Re: Creating features.xml files

2016-09-20 Thread Benson Margulies
On Tue, Sep 20, 2016 at 8:19 AM, <t...@quarendon.net> wrote: > >> On 20 September 2016 at 12:52 Benson Margulies <ben...@basistech.com> wrote: >> >> >> I build all my features with the karaf-maven-plugin. >> > > I don't use Maven, I use eclipse a

Re: How do I resolve resolution problems in Karaf

2016-09-20 Thread Benson Margulies
Tom, if you drop them _as bundles_, karaf works like any other osgi container -- you have to drop in all the bundles you need. You might need to set serviceRequirements to disable in org.apache.karaf.features.cfg if your bundle manifests are not fully informative on the topic of service

Re: Creating features.xml files

2016-09-20 Thread Benson Margulies
I build all my features with the karaf-maven-plugin. On Sep 20, 2016 3:12 AM, wrote: > Up until now I've been developing code using bndtools in eclipse, writing > bndrun > files, resolving them, and running my application that way. The resolution > step > resolves all the

Re: Karaf, gogo shell?

2016-09-19 Thread Benson Margulies
What version of karaf? Did you install the shell-compat feature, which is required for gogo commands? On Mon, Sep 19, 2016 at 12:06 PM, wrote: > I'm trying to get started with Karaf, and am having a few issues. > > I have created a simple OSGi enroute project using

Re: configuration admin files with property references in the values: how's it done?

2016-09-16 Thread Benson Margulies
Never mind, I worked out for myself that fileinstall does the job. On Fri, Sep 16, 2016 at 11:17 AM, Benson Margulies <ben...@basistech.com> wrote: > I've been asked to try an experiment in moving some of the code we run > in Karaf into a minimal Felix container deployment. I've

configuration admin files with property references in the values: how's it done?

2016-09-16 Thread Benson Margulies
I've been asked to try an experiment in moving some of the code we run in Karaf into a minimal Felix container deployment. I've run into one snag: Some of my .cfg files in Karaf take advantage of writing values that contain system property references, like ${karaf.etc}/something/something. I had

Re: DS and immediate and configurationPolicy == REQUIRE

2016-09-14 Thread Benson Margulies
by @Reference, they don't even list any service interfaces. I have been asked to make it easier to configure the overall package to run only a subset. > > david jencks > >> On Sep 14, 2016, at 2:15 PM, Benson Margulies <ben...@basistech.com> wrote: >> >> I'm hoping I know

Re: Invalid Bundle Context errors with 4.0.6, unpredictably

2016-09-14 Thread Benson Margulies
up > stage somehow to avoid the refreshes.. > > 2016-09-14 20:54 GMT+02:00 Benson Margulies <ben...@basistech.com>: >> >> Folks, >> >> One of my pax-exam tests _sometimes_ fails with the backtrace below; >> to be more precise, it hangs after showing this back

Invalid Bundle Context errors with 4.0.6, unpredictably

2016-09-14 Thread Benson Margulies
Folks, One of my pax-exam tests _sometimes_ fails with the backtrace below; to be more precise, it hangs after showing this backtrace on the console. It seems as if this only happens when all of my ITs run; if I tell failsafe to just run one, it seems never to happen. Any ideas? TIA

Re: Running Karaf assembly from Maven

2016-09-14 Thread Benson Margulies
hell script forks another process and this is no longer > debuggable in that same session. > > Sure you can set up remote debugging and everything that comes with that. > But having a direct debugger without the need to set this all up is way > easier. > > On Wed, Sep 14, 2016 at 2:30 PM, Ben

Re: Running Karaf assembly from Maven

2016-09-14 Thread Benson Margulies
wrote: > >> call karaf debug and attach eclipse to the opened port is an alternative >> >> 2016-09-14 13:57 GMT+02:00 Jens Reimann <jreim...@redhat.com>: >> >>> Yes, that is then not executed by the Eclipse maven runner .. just a >>> shell script. So de

Re: Running Karaf assembly from Maven

2016-09-14 Thread Benson Margulies
Some problem with typing: target/assembly/bin/karaf ? On Wed, Sep 14, 2016 at 6:48 AM, Benson Margulies <ben...@basistech.com> wrote: > Is your goal to start one up and then run tests against it? If so, I have > some other suggestions. > > On Wed, Sep 14, 2016 at 5:17 AM, J

Re: Running Karaf assembly from Maven

2016-09-14 Thread Benson Margulies
Is your goal to start one up and then run tests against it? If so, I have some other suggestions. On Wed, Sep 14, 2016 at 5:17 AM, Jens Reimann wrote: > Hi, > > There seems to be a goal for maven "karaf:run" which can run a single > bundle. But is there some way to run a

Doc on embedded mode?

2016-09-13 Thread Benson Margulies
Folks, other than the reference at the very beginning of https://karaf.apache.org/manual/latest/, is there any doc on how to go about embedding Karaf? If not, off to the source code, of course. thanks

Re: Component configuration pid

2016-09-09 Thread Benson Margulies
On Fri, Sep 9, 2016 at 10:00 PM, David Jencks wrote: > Well, either > 1. you didn’t actually succeed in creating a bundle with a different pid > for your component. Look in the (I hope generated) xml configuration in > the bundle you’ve created and see if it’s what you

Re: Can't uninstall shell-compat?

2016-09-05 Thread Benson Margulies
> So to get back to the initial problem, "feature:uninstall" does not go > through the list of bundles and uninstalling them anymore. It removes the > requirement from the list of input requirements and run the resolver again. > If the feature is not needed anymore, its bundles wi

Can't uninstall shell-compat?

2016-09-05 Thread Benson Margulies
I install shell-compat by including 'standard' in my assembly. If I try to uninstall it, I get the following complaint that it is not installed. karaf@root>feature:uninstall shell-compat/4.0.6 2016-09-05 14:59:20,611 | ERROR | nsole user karaf | ShellUtil | 191 -

Re: Is blueprint missing from the 'minimal' feature?

2016-09-05 Thread Benson Margulies
gt; > Regards > JB > > On Sep 5, 2016, at 19:02, Benson Margulies <ben...@basistech.com> wrote: >> >> shell-compat, via the shell 'console', depends on blueprint. Proof >> below. shell does not. Minimal includes shell, not shell-compat. This >> is sad, as s

Re: Is blueprint missing from the 'minimal' feature?

2016-09-05 Thread Benson Margulies
annotations, > it doesn't use blueprint. > > Regards > JB > > On 09/05/2016 05:46 PM, Benson Margulies wrote: >> >> That error I sent is from karaf 4.0.6. it seems to me to be saying that >> the shell requires blueprint. Am I misreading it? >> >>

Re: Is blueprint missing from the 'minimal' feature?

2016-09-05 Thread Benson Margulies
gt; > Regards > JB > > On 09/05/2016 05:07 PM, Benson Margulies wrote: > >> Achim, Yes, I understand the principle. What I don't understand is how >> anyone uses 'minimal'. Minimal includes shell, and shell requires >> blueprint, and blueprint isn't 'minimal'. Or is

Re: Is blueprint missing from the 'minimal' feature?

2016-09-05 Thread Benson Margulies
5, 2016 at 11:05 AM, Achim Nierbeck <bcanh...@googlemail.com> wrote: > yep it's minimal so only the minimal required bundles are there. > Blueprint is part of standard, as that isn't minimal anymore ... > > regards, Achiim > > > 2016-09-05 16:45 GMT+02:00 Benson Marg

Is blueprint missing from the 'minimal' feature?

2016-09-05 Thread Benson Margulies
Folks, When I try to run an assembly that lists 'minimal' as a boot feature, I get this error, indicating that (If I read it correctly) the shell requires blueprint. Is this intended? I can switch to 'standard' easily enough. 2016-09-05 10:42:36,560 | ERROR | pool-6-thread-1 |

Re: What does effective:=active mean?

2016-08-31 Thread Benson Margulies
Hi Benson, >> >> I agree: we had a long discussion with Guillaume about that in the >> past ;) >> >> As a workaround, you can use the feature capability definition (and >> it can be done at runtime using feature:* commands). So your DS >> c

Re: What does effective:=active mean?

2016-08-31 Thread Benson Margulies
Nodet <gno...@apache.org> wrote: > > > 2016-08-31 15:00 GMT+02:00 Benson Margulies <ben...@basistech.com>: >> >> On Wed, Aug 31, 2016 at 5:50 AM, Jean-Baptiste Onofré <j...@nanthrax.net> >> wrote: >> > So, I will explain a new time (for the thi

Re: What does effective:=active mean?

2016-08-31 Thread Benson Margulies
eatures xmlns 1.3.0 NOT for 1.4.0 (it was a bug). This bug has > been fixed in Karaf 4.0.6. That's why when you upgraded from 4.0.4 to 4.0.6, > the feature resolver is now "active" for your features XML and check the > service enforcement. > > Regards > JB > &g

What does effective:=active mean?

2016-08-31 Thread Benson Margulies
I just tried the experiment of moving our platform from 4.0.4 to 4.0.6, changing nothing but the karaf version. I received in return a resolution error that I've never seen the like of before, complaining that a particular service is missing with 'effective:=active'. Since Karaf does not come to

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Benson Margulies
wrote: > Hi Benson, > > would be great to get some feedback about your experiences using dOSGi. As > we are approaching the 2.0 version now is the best time to get important > features in. > > Christian > > 2016-08-15 19:24 GMT+02:00 Benson Margulies <ben...@ba

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Benson Margulies
y in any way for the REST service > implementation object? You are directly registering the component instance > with CXF, and there is no need for it to expose any service interfaces at all? > > thanks > david jencks > >> On Aug 15, 2016, at 10:10 AM, Benson Margulies <

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread Benson Margulies
I do this by making DS @Activate methods call the CXF API to publish REST services. On Mon, Aug 15, 2016 at 1:08 PM, Scott Lewis wrote: > Hi Marc, > > The OSGi Remote Services specification (and the associated Remote Service > Admin sepc) defines a standardized way to

Re: How do mvn: urls end up in classpaths in Karaf 4.0.5?

2016-08-15 Thread Benson Margulies
g 15, 2016 at 10:34 AM, Benson Margulies <ben...@basistech.com> wrote: > Folks, > > I just upgraded my build to use pax-exam 4.9.1. And I got a very > strange problem. > > If I run a single function test method: > > mvn > -Dit.test=com.basistech.ws.itest.AnvilsRe

How do mvn: urls end up in classpaths in Karaf 4.0.5?

2016-08-15 Thread Benson Margulies
Folks, I just upgraded my build to use pax-exam 4.9.1. And I got a very strange problem. If I run a single function test method: mvn -Dit.test=com.basistech.ws.itest.AnvilsRealComponentIT"#complexEntityRouting" my code dies, because an mvn: URL leaks out. This happens when Guice is

Re: transitive dependencies of feature descriptors

2016-08-05 Thread Benson Margulies
in servicemix), and I mark it provided, I have to then redeclare the OSGi dependences at scope compile. It may be the least messy solution. thanks. > > On 5 Aug 2016, at 13:33, Benson Margulies <ben...@basistech.com> wrote: > > > > On Fri, Aug 5, 2016 at 8:32 AM, Jean-Baptist

Re: transitive dependencies of feature descriptors

2016-08-05 Thread Benson Margulies
On Fri, Aug 5, 2016 at 8:32 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > You mean that you use the karaf-maven-plugin to generate the features.xml ? > JB, Yes, I always use the plugin. Regards, benson > > Regards > JB > > On 08/05/2016 02:28 PM, Bens

Re: transitive dependencies of feature descriptors

2016-08-05 Thread Benson Margulies
tand your point ;) > > You have an "uber" bundle containing packages, and this bundle is in a > feature. > > This feature can be used as an inner feature. > > So what's the point ? > > Regards > JB > > > On 08/05/2016 02:03 PM, Benson Margulies

transitive dependencies of feature descriptors

2016-08-05 Thread Benson Margulies
Folks, I wonder if someone else has found a way out of this. Consider a project that builds an OSGi bundle by aggregating some non-OSGi jar Maven dependencies. Those dependencies are in the dependency tree of the resulting bundle. Now, consider what happens if you generate a feature to contain

Re: More entropy on bundle startup.

2016-07-14 Thread Benson Margulies
;ja...@carmanconsulting.com> wrote: > You are using featuresBoot? Do you have featuresBootAsynchronous=false in > your org.apache.karaf.features.cfg file? > > > On Thu, Jul 14, 2016 at 9:33 AM Benson Margulies <ben...@basistech.com> > wrote: >> >> I d

Re: More entropy on bundle startup.

2016-07-14 Thread Benson Margulies
without clearing out the data directory. On Thu, Jul 14, 2016 at 1:39 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > Hi Benson, > > I guess you are using the deploy folder, so the fileinstall deployer, right > ? > > Regards > JB > > > On 07/13/2016 10:56 PM,

More entropy on bundle startup.

2016-07-13 Thread Benson Margulies
Folks, We've had a couple of incidents of latent problems stemming from invalid assumptions on bundle start order. Everything seems to be fine, then some trivial change reveals that we've failed to ensure that service 'a' is available before component 'b' needs it. by and large, we use DS to get

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread Benson Margulies
SIgh. I can't repro the problem that's interesting to you, and the more CXF-ish problem needs to be chased at CXF. On Wed, Jul 6, 2016 at 12:29 PM, Benson Margulies <ben...@basistech.com> wrote: > If I can repro it, I'll endeavor to produce. > > > On Wed, Jul 6, 2016 at 12:2

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread Benson Margulies
gt; On Jul 6, 2016, at 9:20 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> I can dump a bunch of wiring. But I'd have to repro the problem. >> which, after being quite reproducible for some time, has gone into >> hiding to be replaced by a differ

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread Benson Margulies
a gogo command, so maybe > only the command is the wrong one rather than the DS implementation, but > something appears really different on restart. > > david jencks > >> On Jul 6, 2016, at 9:18 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> Here's

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread Benson Margulies
ring if in the non working case DS gets wired > correctly to config admin. > > thanks > david jencks > >> On Jul 6, 2016, at 9:10 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> com.basistech.worker.service.cfg exists. >> >> And

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread Benson Margulies
onents appear to be alive. and But a swath of my CXF services stop working, even though their components are activated and they have made the call to start the service. On Wed, Jul 6, 2016 at 12:10 PM, Benson Margulies <ben...@basistech.com> wrote: > com.basistech.worker.ser

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread Benson Margulies
t configuration. > > thanks > david jencks > >> On Jul 6, 2016, at 8:52 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> Folks, I have a service that isn't starting, and I cannot see why. Any >> clues? >> >> >> karaf@root&

What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread Benson Margulies
Folks, I have a service that isn't starting, and I cannot see why. Any clues? karaf@root>scr:details com.basistech.ws.worker.service.WorkerService Component Details Name: com.basistech.ws.worker.service.WorkerService State : UNSATISFIED Properties :

Re: JAX-RS Annotations and Apache Karaf 4.0.5

2016-07-01 Thread Benson Margulies
I have a ton of working JAX-RS in 4.0.4 with CXF 3.1.x. I didn't see the start of this thread. What's the problem? On Fri, Jul 1, 2016 at 1:12 PM, Markus Rathgeb wrote: > Hi Scott, > > my knowledge about ECF, CXF, JAX-RS is very very small. > In the past I need to get the

Re: Can't start assembly twice -- CXF bundle dependency management

2016-06-13 Thread Benson Margulies
On Mon, Jun 13, 2016 at 1:47 PM, Benson Margulies <ben...@basistech.com> wrote: > Folks, > > Using Karaf 4.0.4, I've managed to create an assembly with a problem. The > problem is that it cannot be started more than once without emptying the > data directory. > > T

Can't start assembly twice -- CXF bundle dependency management

2016-06-13 Thread Benson Margulies
Folks, Using Karaf 4.0.4, I've managed to create an assembly with a problem. The problem is that it cannot be started more than once without emptying the data directory. This assembly is has several closely related assemblies that don't exhibit this pathology, and, in fact, this one didn't until

Re: Slf4j usage in a library

2016-06-02 Thread Benson Margulies
2:00 Guillaume Nodet <gno...@apache.org >> <mailto:gno...@apache.org>>: >> >> It should be safe if you don't export the packages. They will be >> available from the system class loader, but they won't be available >> to bundles if they are not exported b

Re: Slf4j usage in a library

2016-06-02 Thread Benson Margulies
ds > JB > > > On 06/01/2016 08:02 PM, Benson Margulies wrote: >> >> Hello there. >> >> I'm trying to put a jar file into the karaf lib dir. Some classes in >> there use SLF4J for logging. >> >> Those encounter class-not-found errors for SLF4J. &g

Slf4j usage in a library

2016-06-01 Thread Benson Margulies
Hello there. I'm trying to put a jar file into the karaf lib dir. Some classes in there use SLF4J for logging. Those encounter class-not-found errors for SLF4J. Is it safe for me to add slf4j to the lib directory? I'm concerned about disrupting pax-logging, but perhaps all of that is happening

Re: Is there a way to insert a jar into the lib directory as part of pax-exam-karaf configuration?

2016-06-01 Thread Benson Margulies
provision any file > before container startup. > > Regards > JB > > On 06/01/2016 05:36 PM, Benson Margulies wrote: >> >> (See subject) >> > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com

Is there a way to insert a jar into the lib directory as part of pax-exam-karaf configuration?

2016-06-01 Thread Benson Margulies
(See subject)

Adding some things to the system bundle/classpath in a karaf assembly

2016-06-01 Thread Benson Margulies
I'm reading: The plugin accepts the element where you can add containing the URL of the library. For instance: mvn:org.postgresql/postgresql/9.3-1102-jdbc41;type:=endorsed My goal is to get NIO file system providers into place; they tend to have dependencies. Does this chase a

Can't use 'tac' to capture output of alias with many commands

2016-05-17 Thread Benson Margulies
'licenses' is an alias that runs a series of bundle commands. Is this surprising? Should I make a jira? karaf@root>licenses | tac -f /tmp/licenses.txt 2016-05-17 10:30:21,226 | ERROR | nsole user karaf | ShellUtil | 174 - org.apache.karaf.shell.core - 4.0.4 | Exception caught

Re: Licence inventory

2016-05-17 Thread Benson Margulies
ype java.util.Collection On Tue, May 17, 2016 at 10:01 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > https://karaf.apache.org/manual/latest/#_scripting_2 > > Regards > JB > > > On 05/17/2016 06:57 PM, Benson Margulies wrote: >> >> On Tue, May 17, 2016 at 8:07 A

Re: Licence inventory

2016-05-17 Thread Benson Margulies
any examples sitting around to look at? > > Regards > JB > > > On 05/17/2016 03:41 PM, Benson Margulies wrote: >> >> Anyone know a way to get karaf to list bundles and their licenses ( when >> known ) >> > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com

Licence inventory

2016-05-17 Thread Benson Margulies
Anyone know a way to get karaf to list bundles and their licenses ( when known )

Re: Can a karaf command be a DS service?

2016-05-05 Thread Benson Margulies
On Thu, May 5, 2016 at 12:56 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > Short answer: no. Oh, well, conventional service lookup for moi. > > You can do gogo command but not karaf command. > > Regards > JB > > > On 05/04/2016 09:52 PM, Benson Margul

Can a karaf command be a DS service?

2016-05-04 Thread Benson Margulies
Can I @Component something annotated with org.apache.karaf.shell.api.action.lifecycle.Service?

Disabling JMX altogether

2016-04-27 Thread Benson Margulies
I'm using pax-exam to test a karaf assembly that contains the management feature. Is there some way to disable all the JMX without uninstalling the feature, or do I need to just randomize the ports?

Re: Many pax-exam test classes -> misery

2016-04-21 Thread Benson Margulies
:1.1.2.v20160421042819] On Thu, Apr 21, 2016 at 12:36 PM, Benson Margulies <ben...@basistech.com> wrote: > Karaf 4.0.4. pax-exam 4.8.0. > > I need to test a Karaf application with a number of different > configurations (as specified in cfg files). So, I have about 10 pax > exam c

Re: Proper way to setup a features.xml

2016-04-19 Thread Benson Margulies
istech.rosette/rosette-api-model/1.0.100 Code in common for Rosette API Web Service 1.5 bean-validation-support mvn:com.basistech.ws/rosapi-common/1.0.100-SNAPSHOT mvn:com.basistech/adm-model/1.16.0 > > John > > On Tue, Apr 19, 20

Re: Proper way to setup a features.xml

2016-04-19 Thread Benson Margulies
I have the plugin in each of my modules making a feature, and then an aggregator project that uses the plugin again to combine them into a single xml file that makes up the library of features. On Tue, Apr 19, 2016 at 9:07 PM, John D. Ament wrote: > I'm looking to get

Diagnosing config problems concisely

2016-03-31 Thread Benson Margulies
I have one or two cases where the failure to set a config parameter or copy a file into etc makes the system unusable. These are diagnosed, today, by throws from activation methods, which results in a very noisy spew of log messages -- the actual problem can get lost in the noise. Is there any

Re: The default jetty configuration

2016-03-30 Thread Benson Margulies
j/org.ops4j.pax.web/blob/master/pax-web-features/src/main/resources/features.xml#L91-L96 > > > > 2016-03-30 22:34 GMT+02:00 Benson Margulies <ben...@basistech.com>: > >> We just noticed another fact. >> >> When Karaf starts up, pax-web or something

Re: The default jetty configuration

2016-03-30 Thread Benson Margulies
The jetty.xml is just available for convenience for specialized > configurations. The same applies to the other two supported containers, > Tomcat and Undertow. > > regards, Achim > > > 2016-03-30 21:34 GMT+02:00 Benson Margulies <ben...@basistech.com>: > >> OK, t

Re: The default jetty configuration

2016-03-30 Thread Benson Margulies
ually being used. >> >> >> On Wed, Mar 30, 2016 at 12:10 PM, Jean-Baptiste Onofré <j...@nanthrax.net> >> wrote: >> >>> Correct. >>> >>> You can add in etc/org.ops4j.pax.web.cfg: >>> >>> org.ops4j.pax.web.config.file

Re: The default jetty configuration

2016-03-30 Thread Benson Margulies
s4j.pax.web.cfg: > > org.ops4j.pax.web.config.file=${karaf.base}/etc/jetty.xml > > to provision your own jetty.xml. > > Regards > JB > > > On 03/30/2016 06:07 PM, Benson Margulies wrote: > >> Am I correct that none of the jetty.xml files in the Karaf source tree >> are

The default jetty configuration

2016-03-30 Thread Benson Margulies
Am I correct that none of the jetty.xml files in the Karaf source tree are live in the standard package, and that the config falls back to pax-web?

Re: problem with SSH when launched in Tanuki

2016-03-29 Thread Benson Margulies
I found my mistake in the endorsed dir config in wrapper.conf. On Tue, Mar 29, 2016 at 5:02 PM, Benson Margulies <ben...@basistech.com> wrote: > What does it look like in there? I bet you I do not. > > > On Tue, Mar 29, 2016 at 4:36 PM, Jean-Baptiste Onofré <j...@

Re: problem with SSH when launched in Tanuki

2016-03-29 Thread Benson Margulies
What does it look like in there? I bet you I do not. On Tue, Mar 29, 2016 at 4:36 PM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > Check if you have JCE in your wrapper.conf. > > Regards > JB > > > On 03/29/2016 02:08 PM, Benson Margulies wrote: > >>

problem with SSH when launched in Tanuki

2016-03-29 Thread Benson Margulies
When I 'wrap' my karaf container, I lose the ability to ssh to it at 8101: In java, I get a backtrace like the following. At the shell, I see ➜ package git:(master) ssh -p 8101 karaf@localhost Unable to negotiate with ::1: no matching cipher found. Their offer: It works fine when I launch the

Getting rid of basic auth for additional content via jetty.xml

2016-03-29 Thread Benson Margulies
When I access '/doc', it asked me to log in. I don't think it was doing that when I set this up the other day, but then again, browser caching can mislead. How can I turn it off? http://www.eclipse.org/jetty/configure_9_0.dtd;> https 32768 8192 8192 true

static content apparently not working in Karaf 4.0.4 via jetty config

2016-03-20 Thread Benson Margulies
/doc ../../doc true jvm 1| 2016-03-16 08:08:39,183 | WARN | tp1085327538-940 | Response | 217 -

Re: static content apparently not working in Karaf 4.0.4 via jetty config

2016-03-19 Thread Benson Margulies
This is only a problem for errors. On Wed, Mar 16, 2016 at 8:11 AM, Benson Margulies <ben...@basistech.com> wrote: > > > > > /doc > >class="org.eclipse.jetty.server.handler.ResourceHandl

Re: static content apparently not working in Karaf 4.0.4 via jetty config

2016-03-19 Thread Benson Margulies
f Pax-Web are you using? > And did you check if that bug is already been fixed with Pax-Web? > > regards, Achim > > > 2016-03-18 11:54 GMT+01:00 Benson Margulies <ben...@basistech.com>: > >> >> On Fri, Mar 18, 2016 at 6:46 AM, Achim Nierbeck <

Re: Substitutions in jetty.xml

2016-03-19 Thread Benson Margulies
Thanks. On Wed, Mar 16, 2016 at 8:48 AM, Philipp Marx <smi...@googlemail.com> wrote: > You can do something like this: > > /keystore > > Cheers, > > Philipp > > Benson Margulies <ben...@basistech.com> schrieb am Di., 15. März 2016 um > 22:46 Uhr:

Substitutions in jetty.xml

2016-03-15 Thread Benson Margulies
Can I use any ${...} in there to pass in the pathname of static content? ${karaf.etc} etc would work fine.

embedded testing and classpath management

2016-03-07 Thread Benson Margulies
So, I had my stuff working in IntelliJ with runEmbedded(true). Then I modified the pom of the itest project to include the CXF JAXRS runtime, since I needed to launch a CXF service (mocking something) in a test. That was the end of running embedded, as I got class cast errors from multiple

Karaf shutdown management

2016-03-03 Thread Benson Margulies
I would like it to be so that when someone runs 'stop', some work in progress finishes. This would seem to require the @Deactivates to run in 'the right order'. Presumably, the order is based on the graph of dependencies. I'm thinking that I should create my own shutdown service and invoke it

Re: Problem with sevices using karaf 4.0.4 and cxf 3.1.4

2016-03-03 Thread Benson Margulies
I'm in production with 4.0.4 + CXF 3.1.4. I don't use blueprint, I call the CXF API to publish my services. On Thu, Mar 3, 2016 at 1:48 PM, Leandro Andrade wrote: > Do somebody know something about it? > > 2016-02-29 17:12 GMT-03:00 Leandro Andrade

Tanuki

2016-02-27 Thread Benson Margulies
We've reached the conclusion that we need to get into the tanuki business; we've had a karaf process die without a trace (possibly a native code debacle, but we don't know). We already have a tanuki license. Does anyone have some breadcrumbs for running Karaf 4.0.x under Tanuki on Linux? I can

Re: Thread dump for pax-exam embedded getting stuck

2016-02-26 Thread Benson Margulies
ork-5.4.0.jar:] at java.lang.Thread.run(Thread.java:745)[:1.8.0_60] > > > > 2016-02-26 18:16 GMT+01:00 Benson Margulies <ben...@basistech.com>: >> >> Oh, never mind. Dumb mistake >> >> On Fri, Feb 26, 2016 at 12:12 PM, Benson Margulies <ben...@basistech

pax-exam karaf succeeding, but with connection refused backtraces stopping bundles.

2016-02-26 Thread Benson Margulies
--- T E S T S --- Running com.basistech.ws.itest.AnvilsRealComponentIT Feb 26, 2016 1:00:08 PM org.apache.karaf.main.Main launch INFO: Installing and starting initial bundles Feb 26, 2016

Re: Thread dump for pax-exam embedded getting stuck

2016-02-26 Thread Benson Margulies
Oh, never mind. Dumb mistake On Fri, Feb 26, 2016 at 12:12 PM, Benson Margulies <ben...@basistech.com> wrote: > It does not seem to matter what I put in logback-test.xml, I get: > > 12:06:48.959 [main] INFO o.o.pax.exam.spi.DefaultExamSystem - Pax > Exam System (Version: 4.8.0

Re: Thread dump for pax-exam embedded getting stuck

2016-02-26 Thread Benson Margulies
/T/1456506408962-0 On Fri, Feb 26, 2016 at 12:02 PM, Benson Margulies <ben...@basistech.com> wrote: > That did it. All I have to do is figure out how to shut up the DEBUG logging. > > On Fri, Feb 26, 2016 at 11:41 AM, Achim Nierbeck > <bcanh...@googlemail.com> wrote: >

Re: Thread dump for pax-exam embedded getting stuck

2016-02-26 Thread Benson Margulies
; > Regards, Achim > > sent from mobile device > > Am 26.02.2016 5:20 nachm. schrieb "Benson Margulies" <ben...@basistech.com>: >> >> I am failing to come up with a working set of pom dependencies for the >> karaf pax-exam container with karaf 4.0.4 once I st

Re: Thread dump for pax-exam embedded getting stuck

2016-02-26 Thread Benson Margulies
org.apache.karaf.features:standard:xml:features:3.0.3:test. On Fri, Feb 26, 2016 at 9:20 AM, Benson Margulies <ben...@basistech.com> wrote: > I see why. > > /Users/benson/.m2/repository/org/eclipse/birt/runtime/org.eclipse.osgi/3.10.2.v20150203-1939/org.eclipse.osgi-3.10.2.v20150203-1939.jar > > is in the classpa

  1   2   3   >