Re: Can Pax CDI scans WAB + lib

2016-02-04 Thread Charles Moulliard
There is something that I don't understand

My project contains a web.xml file located here

gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/web.xml

including a Listener and Servlet



io.apiman.gateway.platforms.war.listeners.WarGatewayBootstrapper
  

  
  
GatewayServlet

io.apiman.gateway.platforms.war.servlets.WarGatewayServlet
  
  
GatewayServlet
/*
  

but the Servlet or Listener are never called by Pax Web (tested with remote
debugger)

[  90] [Active ] [] [   ] [   30] OPS4J Pax Web - API
(3.2.5)
[  91] [Active ] [] [   ] [   30] OPS4J Pax Web -
Service SPI (3.2.5)
[  92] [Active ] [] [   ] [   30] OPS4J Pax Web -
Runtime (3.2.5)
[  93] [Active ] [] [   ] [   30] OPS4J Pax Web - Jetty
(3.2.5)
[  94] [Active ] [] [   ] [   30] OPS4J Pax Web - Jsp
Support (3.2.5)
[  95] [Active ] [] [   ] [   30] OPS4J Pax Web -
Extender - Whiteboard (3.2.5)
[ 244] [Active ] [] [   ] [   30] OPS4J Pax Web -
Extender - WAR (3.2.5)
[ 245] [Active ] [] [   ] [   30] OPS4J Pax Web -
FileInstall Deployer (3.2.5)
[ 246] [Active ] [] [   ] [   30] OPS4J Pax Url - war
(2.4.2)

[ 281] [Active ] [] [   ] [   80] Apiman :: OSGI ::
Gateway Module (1.2.2.SNAPSHOT)

:karaf@root> web:list
   ID   State Web-State   Level  Web-ContextPath   Name
[ 281] [Active ] [Deploying  ]  [   80] [/gateway]
Apiman :: OSGI :: Gateway Module (1.2.2.SNAPSHOT)

and of course no error is reported within the log file

Here is the packaging

lr target/gateway-osgi-1.2.2-SNAPSHOT
target/gateway-osgi-1.2.2-SNAPSHOT
target/gateway-osgi-1.2.2-SNAPSHOT/META-INF
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/META-INF
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/META-INF/MANIFEST.MF
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarEngineAccessor.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarEngineConfig.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarGateway.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarPlatform.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarPlatformAccessor.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/filters
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/filters/HttpRequestThreadLocalFilter.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/i18n
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/i18n/Messages.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/listeners
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/listeners/WarGatewayBootstrapper.class
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/servlets
target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/servlets/WarGatewayServlet.class

headers 281

Apiman :: OSGI :: Gateway Module (281)
--
Archiver-Version = Plexus Archiver
Web-ContextPath = /gateway
Embed-Transitive = true
Created-By = Apache Maven Bundle Plugin
Manifest-Version = 1.0
Bnd-LastModified = 1454581354797
Build-Jdk = 1.8.0_45
Embed-Dependency = *;artifactId=!junit|mockito-all
Embedded-Artifacts =
WEB-INF/lib/apiman-common-config-1.2.2-SNAPSHOT.jar;g="io.apiman";a="apiman-common-config";

Embed-Directory = WEB-INF/lib
Built-By = chmoulli
Tool = Bnd-2.3.0.201405100607
Webapp-Context = /gateway

Bundle-ManifestVersion = 2
Bundle-SymbolicName = io.apiman.gateway-osgi
Bundle-Version = 1.2.2.SNAPSHOT
Bundle-Name = Apiman :: OSGI :: Gateway Module
Bundle-Description = Open Source API Management
Bundle-ClassPath =
.,WEB-INF/classes,WEB-INF/lib/apiman-common-config-1.2.2-SNAPSHOT.jar,WEB-INF/lib/apiman-common-util-1.2.2-SNAPSHOT.jar,...

Require-Capability =
org.ops4j.pax.cdi.extension;filter:=(&(extension=pax-cdi-extension)(version>=0.11)(!(version>=0.12))),
osgi.extender;filter:=(osgi.extender=pax.cdi),
osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))

Import-Package =
com.codahale.metrics;resolution:=optional,
com.codahale.metrics.health;resolution:=optional,
com.google.protobuf;resolution:=optional,

Re: Can Pax CDI scans WAB + lib

2016-02-04 Thread Charles Moulliard
Here is more info in debug mode

2016-02-04 11:43:55,795 | DEBUG | l Console Thread | WebEventDispatcher
  | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 | Sending
web event WebEvent [replay=false, type=DEPLOYING,
bundle=io.apiman.gateway-osgi [281],
extenderBundle=org.ops4j.pax.web.pax-web-extender-war [244], cause=null,
timestamp=1454582635795, contextPath=/gateway, collisionIds=null,
httpService=null, httpContext=null] for bundle io.apiman.gateway-osgi
2016-02-04 11:43:55,795 | DEBUG | EventExecutor: 1 | pax-web-extender-war
  | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 |
org/osgi/service/web/DEPLOYING
2016-02-04 11:43:55,801 | DEBUG | l Console Thread | WebAppParser
  | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 | version
found in web.xml - 2.5
2016-02-04 11:43:55,801 | DEBUG | l Console Thread | WebAppParser
  | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 |
metadata-complete is: false
2016-02-04 11:43:55,801 | DEBUG | l Console Thread | WebAppParser
  | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 | scanning
for ServletContainerInitializers
2016-02-04 11:43:55,802 | DEBUG | l Console Thread | WebAppParser
  | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 | found
container initializers by SafeServiceLoader ... skip the old impl.
2016-02-04 11:43:56,737 | DEBUG | l Console Thread | Activator
   | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 |
Scheduling start of extension for bundle io.apiman.gateway-osgi
asynchronously
2016-02-04 11:43:56,738 | DEBUG | pool-7-thread-1  | WebAppPublisher
   | 244 - org.ops4j.pax.web.pax-web-extender-war - 3.2.5 |
Publishing web application
[WebApp{displayName=null,contextName=gateway,m_httpContext=null}]

On Thu, Feb 4, 2016 at 11:34 AM, Charles Moulliard  wrote:

> There is something that I don't understand
>
> My project contains a web.xml file located here
>
> gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/web.xml
>
> including a Listener and Servlet
>
> 
>
> io.apiman.gateway.platforms.war.listeners.WarGatewayBootstrapper
>   
>
>   
>   
> GatewayServlet
>
> io.apiman.gateway.platforms.war.servlets.WarGatewayServlet
>   
>   
> GatewayServlet
> /*
>   
>
> but the Servlet or Listener are never called by Pax Web (tested with
> remote debugger)
>
> [  90] [Active ] [] [   ] [   30] OPS4J Pax Web - API
> (3.2.5)
> [  91] [Active ] [] [   ] [   30] OPS4J Pax Web -
> Service SPI (3.2.5)
> [  92] [Active ] [] [   ] [   30] OPS4J Pax Web -
> Runtime (3.2.5)
> [  93] [Active ] [] [   ] [   30] OPS4J Pax Web -
> Jetty (3.2.5)
> [  94] [Active ] [] [   ] [   30] OPS4J Pax Web - Jsp
> Support (3.2.5)
> [  95] [Active ] [] [   ] [   30] OPS4J Pax Web -
> Extender - Whiteboard (3.2.5)
> [ 244] [Active ] [] [   ] [   30] OPS4J Pax Web -
> Extender - WAR (3.2.5)
> [ 245] [Active ] [] [   ] [   30] OPS4J Pax Web -
> FileInstall Deployer (3.2.5)
> [ 246] [Active ] [] [   ] [   30] OPS4J Pax Url - war
> (2.4.2)
>
> [ 281] [Active ] [] [   ] [   80] Apiman :: OSGI ::
> Gateway Module (1.2.2.SNAPSHOT)
>
> :karaf@root> web:list
>ID   State Web-State   Level  Web-ContextPath   Name
> [ 281] [Active ] [Deploying  ]  [   80] [/gateway]
> Apiman :: OSGI :: Gateway Module (1.2.2.SNAPSHOT)
>
> and of course no error is reported within the log file
>
> Here is the packaging
>
> lr target/gateway-osgi-1.2.2-SNAPSHOT
> target/gateway-osgi-1.2.2-SNAPSHOT
> target/gateway-osgi-1.2.2-SNAPSHOT/META-INF
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/META-INF
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/META-INF/MANIFEST.MF
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarEngineAccessor.class
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarEngineConfig.class
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarGateway.class
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarPlatform.class
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/WarPlatformAccessor.class
>
> target/gateway-osgi-1.2.2-SNAPSHOT/WEB-INF/classes/io/apiman/gateway/platforms/war/filters
>
> 

Re: [ANN] New Karaf website online

2016-02-04 Thread Tom Barber
Haha, very true!

I suspect that word isn't required, and instead of a dual polymorphic
container, what the author tried to say was "Karaf provides polymorphic
container and application bootstrapping paradigms to the Enterprise."

Of course, I still don't know what a single polymorphic container is
either, but I clearly use one! ;)

On Thu, Feb 4, 2016 at 10:15 PM, Raman Gupta  wrote:

> Congrats!
>
> Now, if someone could only explain to me what a "dual polymorphic
> container" is! :-)
>
> Regards,
> Raman
>
>
> On 02/04/2016 10:31 AM, Jean-Baptiste Onofré wrote:
> > Hi all,
> >
> > as you may have seen that the new Karaf website is now online.
> >
> > Don't hesitate to create Jira (with website component) if you see some
> > broken links and rendering issue.
> >
> > Thanks !
> > Regards
> > JB
>


Re: [ANN] New Karaf website online

2016-02-04 Thread Raman Gupta
Congrats!

Now, if someone could only explain to me what a "dual polymorphic
container" is! :-)

Regards,
Raman


On 02/04/2016 10:31 AM, Jean-Baptiste Onofré wrote:
> Hi all,
> 
> as you may have seen that the new Karaf website is now online.
> 
> Don't hesitate to create Jira (with website component) if you see some
> broken links and rendering issue.
> 
> Thanks !
> Regards
> JB


Re: Karaf stays blocked when it shutdowns

2016-02-04 Thread Charles Moulliard
Yes I can do that with jmap. Here is a screenshot -
https://www.dropbox.com/s/9nns0coyue9j6zt/Screenshot%202016-02-04%2022.48.56.png?dl=0

On Thu, Feb 4, 2016 at 9:31 PM, Jean-Baptiste Onofré 
wrote:

> Can you take a thread dump ?
>
> Regards
> JB
>
>
> On 02/04/2016 09:00 PM, Charles Moulliard wrote:
>
>> Hi,
>>
>> My Karaf 2.4.4 container stays blocked when it shutdowns and reports
>> this error
>>
>> Exception in thread "Karaf Shell Console Thread"
>> java.lang.NullPointerException
>> at java.io.Writer.write(Writer.java:157)
>> at java.io.BufferedWriter.newLine(BufferedWriter.java:243)
>> at java.io.PrintStream.newLine(PrintStream.java:544)
>> at java.io.PrintStream.println(PrintStream.java:824)
>> at jline.console.history.FileHistory.flush(FileHistory.java:90)
>> at
>>
>> org.apache.karaf.shell.console.jline.KarafFileHistory.flush(KarafFileHistory.java:65)
>> at org.apache.karaf.shell.console.jline.Console.close(Console.java:163)
>> at org.apache.karaf.shell.console.jline.Console.run(Console.java:216)
>> at
>>
>> org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)
>>
>> How can I investigate why the thread is blocked and that I must kill the
>> process to restart it
>>
>> Regards,
>>
>> --
>> Charles Moulliard
>> Apache Committer & PMC / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> 
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io


Re: Using bundle start="false" in features.xml

2016-02-04 Thread Alex Soto
I worked around this problem by rearranging the features so that the bundles I 
did not want are in a separate feature.

Best regards,
Alex Soto


> On Feb 4, 2016, at 11:32 AM, Alex Soto  wrote:
> 
> I am not  sure what "install mode” is.
> I want some of the bundles to automatically start, but not others.
> 
> I am not sure it is a bug,  most likely it is my poor understanding of how 
> the features.xml and the karaf-maven-plugin work.
> 
> In case it helps, I’ll try to explain my scenario better:
> 
> I have two features, feature A and feature B.  
> Feature B depends on feature A.
> 
> In the karaf-maven-plugin configuration I added both features A and B under 
> the bootFeatures section.
> 
> The issue is that I don’t want some of the feature from A to start but they 
> do, even when I added the mailto:j...@nanthrax.net>> wrote:
>> 
>> Hi Alex,
>> 
>> I guess that when you do feature:install, the bundle is started anyway.
>> 
>> Do you define the install mode at feature level ? Or you want to start some 
>> bundles but not all, correct ?
>> 
>> AFAIR, we have a Jira about that. Let me check.
>> 
>> Regards
>> JB
>> 
>> On 02/04/2016 05:08 PM, Alex Soto wrote:
>>> Hello,
>>> 
>>> I have a features.xml in which I don’t want to auto start some of the
>>> bundles.  So I use this declaration:
>>> 
>>> 

Re: pax-jdbc-pool-aries

2016-02-04 Thread Christian Schneider
Unfortunately there does not seem to be any documentation about aries 
transaction pool.
Guillaume Nodet explained to me that aries transaction pool supports the 
transaction recovery feature of geronimo transaction manager.

So that might be a reason to use it.

I myself till now only ever used the dbcp2 pooling.

Christian

On 04.02.2016 20:24, Cheung, Pauline wrote:


We are currently using dbcp2 and was curious about aries and how it 
works and if there are any advantages to using it.


Is there any documentation on it?

Thanks,

Pauline




--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: Karaf stays blocked when it shutdowns

2016-02-04 Thread Charles Moulliard
When I reboot Karaf, here is the info that I get also

dabou:~/Fuse/servers/karaf-2.4.4.$ ll data/cache/bundle324/version0.0/
total 51680
drwxr-xr-x   5 chmoulli  staff   170 Feb  4 22:53 .
drwxr-xr-x   4 chmoulli  staff   136 Feb  4 22:53 ..
-rw-r--r--   1 chmoulli  staff  26453746 Feb  4 22:53 bundle.jar
drwxr-xr-x  42 chmoulli  staff  1428 Feb  4 22:53 bundle.jar-embedded
-rw-r--r--   1 chmoulli  staff41 Feb  4 22:53 revision.location

dabou:~/Fuse/servers/karaf-2.4.4.$ ./bin/karaf

ERROR: Error reloading cached bundle, removing it:
/Users/chmoulli/Fuse/Fuse-servers/jboss-fuse-6.2.1.redhat-084/data/cache/bundle324
(java.lang.NumberFormatException: null)
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:542)
at java.lang.Integer.parseInt(Integer.java:615)
at
org.apache.felix.framework.cache.BundleArchive.readBundleInfo(BundleArchive.java:959)
at
org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:182)
at
org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:247)
at org.apache.felix.framework.Felix.init(Felix.java:713)
at org.apache.karaf.main.Main.launch(Main.java:344)
at org.apache.karaf.main.Main.main(Main.java:561)

On Thu, Feb 4, 2016 at 10:49 PM, Charles Moulliard  wrote:

> Yes I can do that with jmap. Here is a screenshot -
> https://www.dropbox.com/s/9nns0coyue9j6zt/Screenshot%202016-02-04%2022.48.56.png?dl=0
>
> On Thu, Feb 4, 2016 at 9:31 PM, Jean-Baptiste Onofré 
> wrote:
>
>> Can you take a thread dump ?
>>
>> Regards
>> JB
>>
>>
>> On 02/04/2016 09:00 PM, Charles Moulliard wrote:
>>
>>> Hi,
>>>
>>> My Karaf 2.4.4 container stays blocked when it shutdowns and reports
>>> this error
>>>
>>> Exception in thread "Karaf Shell Console Thread"
>>> java.lang.NullPointerException
>>> at java.io.Writer.write(Writer.java:157)
>>> at java.io.BufferedWriter.newLine(BufferedWriter.java:243)
>>> at java.io.PrintStream.newLine(PrintStream.java:544)
>>> at java.io.PrintStream.println(PrintStream.java:824)
>>> at jline.console.history.FileHistory.flush(FileHistory.java:90)
>>> at
>>>
>>> org.apache.karaf.shell.console.jline.KarafFileHistory.flush(KarafFileHistory.java:65)
>>> at org.apache.karaf.shell.console.jline.Console.close(Console.java:163)
>>> at org.apache.karaf.shell.console.jline.Console.run(Console.java:216)
>>> at
>>>
>>> org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)
>>>
>>> How can I investigate why the thread is blocked and that I must kill the
>>> process to restart it
>>>
>>> Regards,
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer & PMC / Architect @RedHat
>>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>> 
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbono...@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer & PMC / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io


Re: Karaf stays blocked when it shutdowns

2016-02-04 Thread Jean-Baptiste Onofré

Hi Charles,

What's this bundle ? Do you do something special in the stop() method of 
the activator ?


Regards
JB

On 02/05/2016 08:02 AM, Charles Moulliard wrote:

When I reboot Karaf, here is the info that I get also

dabou:~/Fuse/servers/karaf-2.4.4.$ ll data/cache/bundle324/version0.0/
total 51680
drwxr-xr-x   5 chmoulli  staff   170 Feb  4 22:53 .
drwxr-xr-x   4 chmoulli  staff   136 Feb  4 22:53 ..
-rw-r--r--   1 chmoulli  staff  26453746 Feb  4 22:53 bundle.jar
drwxr-xr-x  42 chmoulli  staff  1428 Feb  4 22:53 bundle.jar-embedded
-rw-r--r--   1 chmoulli  staff41 Feb  4 22:53 revision.location

dabou:~/Fuse/servers/karaf-2.4.4.$ ./bin/karaf

ERROR: Error reloading cached bundle, removing it:
/Users/chmoulli/Fuse/Fuse-servers/jboss-fuse-6.2.1.redhat-084/data/cache/bundle324
(java.lang.NumberFormatException: null)
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:542)
at java.lang.Integer.parseInt(Integer.java:615)
at
org.apache.felix.framework.cache.BundleArchive.readBundleInfo(BundleArchive.java:959)
at
org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:182)
at
org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:247)
at org.apache.felix.framework.Felix.init(Felix.java:713)
at org.apache.karaf.main.Main.launch(Main.java:344)
at org.apache.karaf.main.Main.main(Main.java:561)

On Thu, Feb 4, 2016 at 10:49 PM, Charles Moulliard > wrote:

Yes I can do that with jmap. Here is a screenshot -

https://www.dropbox.com/s/9nns0coyue9j6zt/Screenshot%202016-02-04%2022.48.56.png?dl=0

On Thu, Feb 4, 2016 at 9:31 PM, Jean-Baptiste Onofré
> wrote:

Can you take a thread dump ?

Regards
JB


On 02/04/2016 09:00 PM, Charles Moulliard wrote:

Hi,

My Karaf 2.4.4 container stays blocked when it shutdowns and
reports
this error

Exception in thread "Karaf Shell Console Thread"
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at java.io.BufferedWriter.newLine(BufferedWriter.java:243)
at java.io.PrintStream.newLine(PrintStream.java:544)
at java.io.PrintStream.println(PrintStream.java:824)
at jline.console.history.FileHistory.flush(FileHistory.java:90)
at

org.apache.karaf.shell.console.jline.KarafFileHistory.flush(KarafFileHistory.java:65)
at
org.apache.karaf.shell.console.jline.Console.close(Console.java:163)
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:216)
at

org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)

How can I investigate why the thread is blocked and that I
must kill the
process to restart it

Regards,

--
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io



--
Jean-Baptiste Onofré
jbono...@apache.org 
http://blog.nanthrax.net
Talend - http://www.talend.com




--
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io





--
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Karaf stays blocked when it shutdowns

2016-02-04 Thread Charles Moulliard
I just remove the ServiceReference of the
org.ops4j.pax.web.service.WebContainer

public void stop(BundleContext bc) throws Exception {
if (webContainerRef != null) {
bc.ungetService(webContainerRef);
webContainerRef = null;
}
}

On Fri, Feb 5, 2016 at 8:37 AM, Jean-Baptiste Onofré 
wrote:

> Hi Charles,
>
> What's this bundle ? Do you do something special in the stop() method of
> the activator ?
>
> Regards
> JB
>
>
> On 02/05/2016 08:02 AM, Charles Moulliard wrote:
>
>> When I reboot Karaf, here is the info that I get also
>>
>> dabou:~/Fuse/servers/karaf-2.4.4.$ ll data/cache/bundle324/version0.0/
>> total 51680
>> drwxr-xr-x   5 chmoulli  staff   170 Feb  4 22:53 .
>> drwxr-xr-x   4 chmoulli  staff   136 Feb  4 22:53 ..
>> -rw-r--r--   1 chmoulli  staff  26453746 Feb  4 22:53 bundle.jar
>> drwxr-xr-x  42 chmoulli  staff  1428 Feb  4 22:53 bundle.jar-embedded
>> -rw-r--r--   1 chmoulli  staff41 Feb  4 22:53 revision.location
>>
>> dabou:~/Fuse/servers/karaf-2.4.4.$ ./bin/karaf
>>
>> ERROR: Error reloading cached bundle, removing it:
>>
>> /Users/chmoulli/Fuse/Fuse-servers/jboss-fuse-6.2.1.redhat-084/data/cache/bundle324
>> (java.lang.NumberFormatException: null)
>> java.lang.NumberFormatException: null
>> at java.lang.Integer.parseInt(Integer.java:542)
>> at java.lang.Integer.parseInt(Integer.java:615)
>> at
>>
>> org.apache.felix.framework.cache.BundleArchive.readBundleInfo(BundleArchive.java:959)
>> at
>>
>> org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:182)
>> at
>>
>> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:247)
>> at org.apache.felix.framework.Felix.init(Felix.java:713)
>> at org.apache.karaf.main.Main.launch(Main.java:344)
>> at org.apache.karaf.main.Main.main(Main.java:561)
>>
>> On Thu, Feb 4, 2016 at 10:49 PM, Charles Moulliard > > wrote:
>>
>> Yes I can do that with jmap. Here is a screenshot -
>>
>> https://www.dropbox.com/s/9nns0coyue9j6zt/Screenshot%202016-02-04%2022.48.56.png?dl=0
>>
>> On Thu, Feb 4, 2016 at 9:31 PM, Jean-Baptiste Onofré
>> > wrote:
>>
>> Can you take a thread dump ?
>>
>> Regards
>> JB
>>
>>
>> On 02/04/2016 09:00 PM, Charles Moulliard wrote:
>>
>> Hi,
>>
>> My Karaf 2.4.4 container stays blocked when it shutdowns and
>> reports
>> this error
>>
>> Exception in thread "Karaf Shell Console Thread"
>> java.lang.NullPointerException
>> at java.io.Writer.write(Writer.java:157)
>> at java.io.BufferedWriter.newLine(BufferedWriter.java:243)
>> at java.io.PrintStream.newLine(PrintStream.java:544)
>> at java.io.PrintStream.println(PrintStream.java:824)
>> at
>> jline.console.history.FileHistory.flush(FileHistory.java:90)
>> at
>>
>> org.apache.karaf.shell.console.jline.KarafFileHistory.flush(KarafFileHistory.java:65)
>> at
>>
>> org.apache.karaf.shell.console.jline.Console.close(Console.java:163)
>> at
>>
>> org.apache.karaf.shell.console.jline.Console.run(Console.java:216)
>> at
>>
>> org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)
>>
>> How can I investigate why the thread is blocked and that I
>> must kill the
>> process to restart it
>>
>> Regards,
>>
>> --
>> Charles Moulliard
>> Apache Committer & PMC / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> 
>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbono...@apache.org 
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer & PMC / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> 
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer & PMC / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> 
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io


RE: Using bundle start="false" in features.xml

2016-02-04 Thread Ravi Nallappan
Hi JB, 

 

I noticed the same scenario as well.

 

mailto:alex.s...@envieta.com] 
Sent: Friday, February 5, 2016 5:37 AM
To: user@karaf.apache.org
Subject: Re: Using bundle start="false" in features.xml

 

I worked around this problem by rearranging the features so that the bundles I 
did not want are in a separate feature.

 

Best regards,
Alex Soto

 

On Feb 4, 2016, at 11:32 AM, Alex Soto  > wrote:

 

I am not  sure what "install mode” is.

I want some of the bundles to automatically start, but not others.

 

I am not sure it is a bug,  most likely it is my poor understanding of how the 
features.xml and the karaf-maven-plugin work.

 

In case it helps, I’ll try to explain my scenario better:

 

I have two features, feature A and feature B.  

Feature B depends on feature A.

 

In the karaf-maven-plugin configuration I added both features A and B under the 
bootFeatures section.

 

The issue is that I don’t want some of the feature from A to start but they do, 
even when I added the mailto:j...@nanthrax.net> > wrote:

 

Hi Alex,

I guess that when you do feature:install, the bundle is started anyway.

Do you define the install mode at feature level ? Or you want to start some 
bundles but not all, correct ?

AFAIR, we have a Jira about that. Let me check.

Regards
JB

On 02/04/2016 05:08 PM, Alex Soto wrote:



Hello,

I have a features.xml in which I don’t want to auto start some of the
bundles.  So I use this declaration:


Re: [ANN] New Karaf website online

2016-02-04 Thread Matt Sicker
I try to explain it to new co-workers as a generic application hosting
platform with the ability to update your deployment while it's running in
small pieces.

On 4 February 2016 at 17:35, Tom Barber  wrote:

> Haha, very true!
>
> I suspect that word isn't required, and instead of a dual polymorphic
> container, what the author tried to say was "Karaf provides polymorphic
> container and application bootstrapping paradigms to the Enterprise."
>
> Of course, I still don't know what a single polymorphic container is
> either, but I clearly use one! ;)
>
> On Thu, Feb 4, 2016 at 10:15 PM, Raman Gupta 
> wrote:
>
> > Congrats!
> >
> > Now, if someone could only explain to me what a "dual polymorphic
> > container" is! :-)
> >
> > Regards,
> > Raman
> >
> >
> > On 02/04/2016 10:31 AM, Jean-Baptiste Onofré wrote:
> > > Hi all,
> > >
> > > as you may have seen that the new Karaf website is now online.
> > >
> > > Don't hesitate to create Jira (with website component) if you see some
> > > broken links and rendering issue.
> > >
> > > Thanks !
> > > Regards
> > > JB
> >
>



-- 
Matt Sicker 


Re: [ANN] New Karaf website online

2016-02-04 Thread Benson Margulies
On Thu, Feb 4, 2016 at 9:50 PM, Matt Sicker  wrote:

> I try to explain it to new co-workers as a generic application hosting
> platform with the ability to update your deployment while it's running in
> small pieces.
>

I often feel as if my application is running in small pieces.


>
> On 4 February 2016 at 17:35, Tom Barber  wrote:
>
>> Haha, very true!
>>
>> I suspect that word isn't required, and instead of a dual polymorphic
>> container, what the author tried to say was "Karaf provides polymorphic
>> container and application bootstrapping paradigms to the Enterprise."
>>
>> Of course, I still don't know what a single polymorphic container is
>> either, but I clearly use one! ;)
>>
>> On Thu, Feb 4, 2016 at 10:15 PM, Raman Gupta 
>> wrote:
>>
>> > Congrats!
>> >
>> > Now, if someone could only explain to me what a "dual polymorphic
>> > container" is! :-)
>> >
>> > Regards,
>> > Raman
>> >
>> >
>> > On 02/04/2016 10:31 AM, Jean-Baptiste Onofré wrote:
>> > > Hi all,
>> > >
>> > > as you may have seen that the new Karaf website is now online.
>> > >
>> > > Don't hesitate to create Jira (with website component) if you see some
>> > > broken links and rendering issue.
>> > >
>> > > Thanks !
>> > > Regards
>> > > JB
>> >
>>
>
>
>
> --
> Matt Sicker 
>


Re: [ANN] New Karaf website online

2016-02-04 Thread Jean-Baptiste Onofré
"Polymorphic container": adapting to your need depending of the 
features. For instance, Karaf can be a container for ESB, Big Data, web 
application, IoT, etc.
"Dual": because you can run Karaf as standalone, embedded in a 
webcontainer, or bootstrapping ("run everywhere") with karaf-boot


;)

Regards
JB

On 02/04/2016 11:15 PM, Raman Gupta wrote:

Congrats!

Now, if someone could only explain to me what a "dual polymorphic
container" is! :-)

Regards,
Raman


On 02/04/2016 10:31 AM, Jean-Baptiste Onofré wrote:

Hi all,

as you may have seen that the new Karaf website is now online.

Don't hesitate to create Jira (with website component) if you see some
broken links and rendering issue.

Thanks !
Regards
JB


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: [ANN] New Karaf website online

2016-02-04 Thread Tom Barber
Looks great the only issue i saw on my phone was the slider changed so
quickly I could read the side.

Tom
On 4 Feb 2016 3:47 pm, "Jean-Baptiste Onofré"  wrote:

> Thanks for the update Scott, let's see to improve this ;)
>
> Regards
> JB
>
> On 02/04/2016 04:45 PM, Leschke, Scott wrote:
>
>> Looks real good. My only comment would be that the navigation header and
>> possibly the footer, should probably be fixed on the page. That's a nit
>> though.
>>
>> -Original Message-
>> From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net]
>> Sent: Thursday, February 04, 2016 9:32 AM
>> To: user ; Karaf Dev 
>> Subject: [ANN] New Karaf website online
>>
>> Hi all,
>>
>> as you may have seen that the new Karaf website is now online.
>>
>> Don't hesitate to create Jira (with website component) if you see some
>> broken links and rendering issue.
>>
>> Thanks !
>> Regards
>> JB
>> --
>> Jean-Baptiste Onofré
>> jbono...@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


RE: pax-jdbc-pool-aries

2016-02-04 Thread Cheung, Pauline
We are currently using dbcp2 and was curious about aries and how it works and 
if there are any advantages to using it.

Is there any documentation on it?

Thanks,
Pauline

From: Christian Schneider [mailto:cschneider...@gmail.com] On Behalf Of 
Christian Schneider
Sent: Thursday, February 04, 2016 3:37 AM
To: user@karaf.apache.org
Subject: Re: pax-jdbc-pool-aries

Pool aries works completely differently. You can not use the config for pool 
dbcp.

Out of curiosity why did you not just use the dbcp based pool?

Christian

On 04.02.2016 09:52, Cheung, Pauline wrote:
Hi,

I was looking at

https://ops4j1.jira.com/wiki/display/PAXJDBC/Pooling+and+XA+support+for+DataSourceFactory

and was trying to configure pax-jdbc-pool-aries with the same config file that 
worked with pax-jdbc-pool-dbcp

Using karaf 4.0.4, I installed the following:
karaf@root()> feature:install jndi jdbc jpa transaction
karaf@root()> featire:install pax-jdbc-mysql pax-jdbc-config pax-jdbc-pool-aries
 It would be
And installed the following config file in /etc:

osgi.jdbc.driver.name=mysql-pool-xa
url=jdbc:mysql://host:3306/dbName?allowMultiQueries=true=user=password=convertToNull
databaseName=wpmsuiteNonCache
user=user
password=password
dataSourceName=jdbc/dbName
pool.maxTotal=8

And I got the following error:
2016-02-04 00:46:26,871 | ERROR | 2b-2ad5107b3909) | 
AriesXaPooledDataSourceFactory   | 88 - org.ops4j.pax.jdbc.pool.aries - 0.7.0 | 
Error creating pooled datasourceError setting property maxTotal:No setter in 
class org.apache.aries.transaction.jdbc.RecoverableDataSource for property 
maxTotal
java.lang.IllegalArgumentException: Error setting property maxTotal:No setter 
in class org.apache.aries.transaction.jdbc.RecoverableDataSource for property 
maxTotal
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.trySetProperty(BeanConfig.java:84)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.configure(BeanConfig.java:58)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
at 
org.ops4j.pax.jdbc.pool.aries.impl.ds.AriesXaPooledDataSourceFactory.createDataSource(AriesXaPooledDataSourceFactory.java:63)[88:org.ops4j.pax.jdbc.pool.aries:0.7.0]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.createDs(DataSourceRegistration.java:111)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.(DataSourceRegistration.java:72)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceFactoryTracker.addingService(DataSourceFactoryTracker.java:40)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceConfigManager.updated(DataSourceConfigManager.java:74)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1753)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[7:org.apache.felix.configadmin:1.8.8]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]
Caused by: java.lang.IllegalArgumentException: No setter in class 
org.apache.aries.transaction.jdbc.RecoverableDataSource for property maxTotal
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.trySetProperty(BeanConfig.java:66)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
... 18 more
2016-02-04 00:46:26,874 | ERROR | 2b-2ad5107b3909) | configadmin
  | 7 - org.apache.felix.configadmin - 1.8.8 | 
[org.osgi.service.cm.ManagedServiceFactory, id=128, 
bundle=55/mvn:org.ops4j.pax.jdbc/pax-jdbc-config/0.7.0]: Unexpected problem 
updating configuration org.ops4j.datasour
ce.900c6264-1260-4b03-952b-2ad5107b3909
java.lang.IllegalArgumentException: Error setting property maxTotal:No setter 
in class 

Re: Is it possible to configure the log format in log:display/log:tail?

2016-02-04 Thread Jean-Baptiste Onofré

Hi Matt,

did you change in etc/org.apache.karaf.log.cfg ?

Regards
JB

On 02/04/2016 04:38 PM, Matt Sicker wrote:

I changed all my log patterns in the org.ops4j.pax.logging.cfg file, but
I still get the default pattern when I use the log:tail or log:display
command. I'm using Karaf 3.0.4.

--
Matt Sicker >


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: [ANN] New Karaf website online

2016-02-04 Thread Jean-Baptiste Onofré

Hi Tom,

You mean the "new" slider on homepage, right ?

I can increase the cycling delay.

Let me try on my phone.

Thanks,
Regards
JB

On 02/04/2016 04:51 PM, Tom Barber wrote:

Looks great the only issue i saw on my phone was the slider changed so
quickly I could read the side.

Tom

On 4 Feb 2016 3:47 pm, "Jean-Baptiste Onofré" > wrote:

Thanks for the update Scott, let's see to improve this ;)

Regards
JB

On 02/04/2016 04:45 PM, Leschke, Scott wrote:

Looks real good. My only comment would be that the navigation
header and possibly the footer, should probably be fixed on the
page. That's a nit though.

-Original Message-
From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net
]
Sent: Thursday, February 04, 2016 9:32 AM
To: user >;
Karaf Dev >
Subject: [ANN] New Karaf website online

Hi all,

as you may have seen that the new Karaf website is now online.

Don't hesitate to create Jira (with website component) if you
see some broken links and rendering issue.

Thanks !
Regards
JB
--
Jean-Baptiste Onofré
jbono...@apache.org 
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
jbono...@apache.org 
http://blog.nanthrax.net
Talend - http://www.talend.com



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: [ANN] New Karaf website online

2016-02-04 Thread Morgan Hautman

Hi Tom,

Yes + there seems to be an issue when there is too much text. The div 
stays at the same height..

Will look to fix that.

Regards,
Morgan

On 02/04/2016 04:54 PM, Jean-Baptiste Onofré wrote:

Hi Tom,

You mean the "new" slider on homepage, right ?

I can increase the cycling delay.

Let me try on my phone.

Thanks,
Regards
JB

On 02/04/2016 04:51 PM, Tom Barber wrote:

Looks great the only issue i saw on my phone was the slider changed so
quickly I could read the side.

Tom

On 4 Feb 2016 3:47 pm, "Jean-Baptiste Onofré" > wrote:

Thanks for the update Scott, let's see to improve this ;)

Regards
JB

On 02/04/2016 04:45 PM, Leschke, Scott wrote:

Looks real good. My only comment would be that the navigation
header and possibly the footer, should probably be fixed on the
page. That's a nit though.

-Original Message-
From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net
]
Sent: Thursday, February 04, 2016 9:32 AM
To: user >;
Karaf Dev >
Subject: [ANN] New Karaf website online

Hi all,

as you may have seen that the new Karaf website is now online.

Don't hesitate to create Jira (with website component) if you
see some broken links and rendering issue.

Thanks !
Regards
JB
--
Jean-Baptiste Onofré
jbono...@apache.org 
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
jbono...@apache.org 
http://blog.nanthrax.net
Talend - http://www.talend.com







Re: Using bundle start="false" in features.xml

2016-02-04 Thread Jean-Baptiste Onofré

Hi Alex,

I guess that when you do feature:install, the bundle is started anyway.

Do you define the install mode at feature level ? Or you want to start 
some bundles but not all, correct ?


AFAIR, we have a Jira about that. Let me check.

Regards
JB

On 02/04/2016 05:08 PM, Alex Soto wrote:

Hello,

I have a features.xml in which I don’t want to auto start some of the
bundles.  So I use this declaration:


Using bundle start="false" in features.xml

2016-02-04 Thread Alex Soto
Hello,

I have a features.xml in which I don’t want to auto start some of the bundles.  
So I use this declaration: 

 
or  with the same result.  

I am using Karaf version 4.0.3.

Best regards,
Alex soto





Re: [ANN] New Karaf website online

2016-02-04 Thread Matt Sicker
It looks great!

On 4 February 2016 at 09:31, Jean-Baptiste Onofré  wrote:

> Hi all,
>
> as you may have seen that the new Karaf website is now online.
>
> Don't hesitate to create Jira (with website component) if you see some
> broken links and rendering issue.
>
> Thanks !
> Regards
> JB
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Matt Sicker 


Is it possible to configure the log format in log:display/log:tail?

2016-02-04 Thread Matt Sicker
I changed all my log patterns in the org.ops4j.pax.logging.cfg file, but I
still get the default pattern when I use the log:tail or log:display
command. I'm using Karaf 3.0.4.

-- 
Matt Sicker 


Re: Using bundle start="false" in features.xml

2016-02-04 Thread Alex Soto
I am not  sure what "install mode” is.
I want some of the bundles to automatically start, but not others.

I am not sure it is a bug,  most likely it is my poor understanding of how the 
features.xml and the karaf-maven-plugin work.

In case it helps, I’ll try to explain my scenario better:

I have two features, feature A and feature B.  
Feature B depends on feature A.

In the karaf-maven-plugin configuration I added both features A and B under the 
bootFeatures section.

The issue is that I don’t want some of the feature from A to start but they do, 
even when I added the 
>> 
>> Yet, it does not appear to do what I expect, as the feature still tries
>> to start.  I should mention that I am using a custom distribution using
>> the "karaf-maven-plugin” where this feature is added either to the
>>  or  with the same result.
>> 
>> I am using Karaf version 4.0.3.
>> 
>> Best regards,
>> Alex soto
>> 
>> 
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com



Re: [ANN] New Karaf website online

2016-02-04 Thread Daniel McGreal
Very nice.
Good job!

Dan.

> On 4 Feb 2016, at 15:31, Jean-Baptiste Onofré  wrote:
> 
> Hi all,
> 
> as you may have seen that the new Karaf website is now online.
> 
> Don't hesitate to create Jira (with website component) if you see some broken 
> links and rendering issue.
> 
> Thanks !
> Regards
> JB
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com



Re: [ANN] New Karaf website online

2016-02-04 Thread Jean-Baptiste Onofré

Thanks for the update Scott, let's see to improve this ;)

Regards
JB

On 02/04/2016 04:45 PM, Leschke, Scott wrote:

Looks real good. My only comment would be that the navigation header and 
possibly the footer, should probably be fixed on the page. That's a nit though.

-Original Message-
From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net]
Sent: Thursday, February 04, 2016 9:32 AM
To: user ; Karaf Dev 
Subject: [ANN] New Karaf website online

Hi all,

as you may have seen that the new Karaf website is now online.

Don't hesitate to create Jira (with website component) if you see some broken 
links and rendering issue.

Thanks !
Regards
JB
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: [ANN] New Karaf website online

2016-02-04 Thread Nick Baker
Nice! I’ve got conflicting feelings though. Sorta like seeing an old friend 
retire

-Nick




On 2/4/16, 10:31 AM, "Jean-Baptiste Onofré"  wrote:

>Hi all,
>
>as you may have seen that the new Karaf website is now online.
>
>Don't hesitate to create Jira (with website component) if you see some 
>broken links and rendering issue.
>
>Thanks !
>Regards
>JB
>-- 
>Jean-Baptiste Onofré
>jbono...@apache.org
>http://blog.nanthrax.net
>Talend - http://www.talend.com


[ANN] New Karaf website online

2016-02-04 Thread Jean-Baptiste Onofré

Hi all,

as you may have seen that the new Karaf website is now online.

Don't hesitate to create Jira (with website component) if you see some 
broken links and rendering issue.


Thanks !
Regards
JB
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


RE: [ANN] New Karaf website online

2016-02-04 Thread Leschke, Scott
Looks real good. My only comment would be that the navigation header and 
possibly the footer, should probably be fixed on the page. That's a nit though.

-Original Message-
From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] 
Sent: Thursday, February 04, 2016 9:32 AM
To: user ; Karaf Dev 
Subject: [ANN] New Karaf website online

Hi all,

as you may have seen that the new Karaf website is now online.

Don't hesitate to create Jira (with website component) if you see some broken 
links and rendering issue.

Thanks !
Regards
JB
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: [ANN] New Karaf website online

2016-02-04 Thread Krzysztof Sobkowiak
Great!!! :) You should also update the new feather :)

On 04.02.2016 16:31, Jean-Baptiste Onofré wrote:
> Hi all,
>
> as you may have seen that the new Karaf website is now online.
>
> Don't hesitate to create Jira (with website component) if you see some broken 
> links and rendering issue.
>
> Thanks !
> Regards
> JB

-- 
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


Karaf stays blocked when it shutdowns

2016-02-04 Thread Charles Moulliard
Hi,

My Karaf 2.4.4 container stays blocked when it shutdowns and reports this
error

Exception in thread "Karaf Shell Console Thread"
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at java.io.BufferedWriter.newLine(BufferedWriter.java:243)
at java.io.PrintStream.newLine(PrintStream.java:544)
at java.io.PrintStream.println(PrintStream.java:824)
at jline.console.history.FileHistory.flush(FileHistory.java:90)
at
org.apache.karaf.shell.console.jline.KarafFileHistory.flush(KarafFileHistory.java:65)
at org.apache.karaf.shell.console.jline.Console.close(Console.java:163)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:216)
at
org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)

How can I investigate why the thread is blocked and that I must kill the
process to restart it

Regards,

-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io


Re: Karaf stays blocked when it shutdowns

2016-02-04 Thread Jean-Baptiste Onofré

Can you take a thread dump ?

Regards
JB

On 02/04/2016 09:00 PM, Charles Moulliard wrote:

Hi,

My Karaf 2.4.4 container stays blocked when it shutdowns and reports
this error

Exception in thread "Karaf Shell Console Thread"
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at java.io.BufferedWriter.newLine(BufferedWriter.java:243)
at java.io.PrintStream.newLine(PrintStream.java:544)
at java.io.PrintStream.println(PrintStream.java:824)
at jline.console.history.FileHistory.flush(FileHistory.java:90)
at
org.apache.karaf.shell.console.jline.KarafFileHistory.flush(KarafFileHistory.java:65)
at org.apache.karaf.shell.console.jline.Console.close(Console.java:163)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:216)
at
org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)

How can I investigate why the thread is blocked and that I must kill the
process to restart it

Regards,

--
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


pax-jdbc-pool-aries

2016-02-04 Thread Cheung, Pauline
Hi,

I was looking at

https://ops4j1.jira.com/wiki/display/PAXJDBC/Pooling+and+XA+support+for+DataSourceFactory

and was trying to configure pax-jdbc-pool-aries with the same config file that 
worked with pax-jdbc-pool-dbcp

Using karaf 4.0.4, I installed the following:
karaf@root()> feature:install jndi jdbc jpa transaction
karaf@root()> featire:install pax-jdbc-mysql pax-jdbc-config pax-jdbc-pool-aries

And installed the following config file in /etc:

osgi.jdbc.driver.name=mysql-pool-xa
url=jdbc:mysql://host:3306/dbName?allowMultiQueries=true=user=password=convertToNull
databaseName=wpmsuiteNonCache
user=user
password=password
dataSourceName=jdbc/dbName
pool.maxTotal=8

And I got the following error:
2016-02-04 00:46:26,871 | ERROR | 2b-2ad5107b3909) | 
AriesXaPooledDataSourceFactory   | 88 - org.ops4j.pax.jdbc.pool.aries - 0.7.0 | 
Error creating pooled datasourceError setting property maxTotal:No setter in 
class org.apache.aries.transaction.jdbc.RecoverableDataSource for property 
maxTotal
java.lang.IllegalArgumentException: Error setting property maxTotal:No setter 
in class org.apache.aries.transaction.jdbc.RecoverableDataSource for property 
maxTotal
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.trySetProperty(BeanConfig.java:84)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.configure(BeanConfig.java:58)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
at 
org.ops4j.pax.jdbc.pool.aries.impl.ds.AriesXaPooledDataSourceFactory.createDataSource(AriesXaPooledDataSourceFactory.java:63)[88:org.ops4j.pax.jdbc.pool.aries:0.7.0]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.createDs(DataSourceRegistration.java:111)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.(DataSourceRegistration.java:72)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceFactoryTracker.addingService(DataSourceFactoryTracker.java:40)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:]
at 
org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:]
at 
org.ops4j.pax.jdbc.config.impl.DataSourceConfigManager.updated(DataSourceConfigManager.java:74)[55:org.ops4j.pax.jdbc.config:0.7.0]
at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1753)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[7:org.apache.felix.configadmin:1.8.8]
at 
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[7:org.apache.felix.configadmin:1.8.8]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]
Caused by: java.lang.IllegalArgumentException: No setter in class 
org.apache.aries.transaction.jdbc.RecoverableDataSource for property maxTotal
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.trySetProperty(BeanConfig.java:66)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
... 18 more
2016-02-04 00:46:26,874 | ERROR | 2b-2ad5107b3909) | configadmin
  | 7 - org.apache.felix.configadmin - 1.8.8 | 
[org.osgi.service.cm.ManagedServiceFactory, id=128, 
bundle=55/mvn:org.ops4j.pax.jdbc/pax-jdbc-config/0.7.0]: Unexpected problem 
updating configuration org.ops4j.datasour
ce.900c6264-1260-4b03-952b-2ad5107b3909
java.lang.IllegalArgumentException: Error setting property maxTotal:No setter 
in class org.apache.aries.transaction.jdbc.RecoverableDataSource for property 
maxTotal
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.trySetProperty(BeanConfig.java:84)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
at 
org.ops4j.pax.jdbc.pool.common.impl.BeanConfig.configure(BeanConfig.java:58)[89:org.ops4j.pax.jdbc.pool.common:0.7.0]
at 
org.ops4j.pax.jdbc.pool.aries.impl.ds.AriesXaPooledDataSourceFactory.createDataSource(AriesXaPooledDataSourceFactory.java:63)[88:org.ops4j.pax.jdbc.pool.aries:0.7.0]
at 

Re: Can Pax CDI scans WAB + lib

2016-02-04 Thread Charles Moulliard
I will create a use case as I'm not sure that it work. BTW, the scan should
be done here not only by Pax Web but also by Pax CDI. This is perhaps my
issue as there is a Servlet within the project and also CDI Annotated
classes into the jar files packaged under the WEB-INF/lib directory

On Wed, Feb 3, 2016 at 7:32 PM, Achim Nierbeck 
wrote:

> Hi,
>
> I wouldn't know why it shouldn't work.
> Pax-Web scans transitive for jsps and tlds in the classpath.
> AFAIRC this is also done for bean.xml's
>
> regards, Achim
>
>
> 2016-02-03 19:25 GMT+01:00 Charles Moulliard :
>
>> Hi,
>>
>> Can Pax CDI scans a bundle packaged as a WAB where the WEB-INF/lib folder
>> contains the jar files to be scanned ?
>>
>> The Bundle-ClassPath of the manifest file includes the jar files
>>
>> Bundle-ClassPath: WEB-INF/classes,.,WEB-INF/lib/annotations-2.0.1.jar,WE
>>  B-INF/lib/apiman-common-config-1.2.2-SNAPSHOT.jar,WEB-INF/lib/apiman-co
>>  mmon-plugin-1.2.2-SNAPSHOT.jar, 
>>
>> Require-Capability: org.ops4j.pax.cdi.extension;filter:="(&(extension=pa
>>  x-cdi-extension)(version>=0.11)(!(version>=0.12)))",osgi.extender;filte
>>  r:="(osgi.extender=pax.cdi)",osgi.ee;filter:="(&(osgi.ee=JavaSE)(versio
>>  n=1.6))"
>> Web-ContextPath: /gateway
>>
>> Regards,
>>
>> --
>> Charles Moulliard
>> Apache Committer & PMC / Architect @RedHat
>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>
>>
>
>
> --
>
> Apache Member
> Apache Karaf  Committer & PMC
> OPS4J Pax Web  Committer &
> Project Lead
> blog 
> Co-Author of Apache Karaf Cookbook 
>
> Software Architect / Project Manager / Scrum Master
>
>


-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io