Re: Karaf starting slow on new mac

2017-04-20 Thread Matt Sicker
Oh wow, I had that same issue in Log4j a while back. I added quick fix
instructions on our building page. Just add your host name to /etc/hosts. I
wonder if it's an IPv6 problem in macOS?

On Thu, Apr 20, 2017 at 01:36, Milen Dyankov  wrote:

> See https://thoeni.io/post/macos-sierra-java/
>
> On Wed, Apr 19, 2017 at 9:01 PM, Achim Nierbeck 
> wrote:
>
> > Hi,
> >
> > first you should post your question on the users list, issues is actually
> > for the issue tracker :)
> > second, I'm using macOS Sierra, and everything is running fine so I can
> not
> > reproduce this.
> >
> > regards, Achim
> >
> > 2017-04-19 20:35 GMT+02:00 Aaron Jones :
> >
> > > I have tried using several different versions including 3.0.3 and
> 4.1.1.
> > > My operating system is macOS Sierra Version 10.12.4 and I am using the
> > Java
> > > JVM 1.8. I do not have a stack trace because nothing is technically
> > erring
> > > out but just running extremely slow. I first noticed a problem when
> > > integration tests weren’t passing on my new laptop but the exact same
> > code
> > > was passing on a coworkers laptop. He is running an older version
> macOS.
> > We
> > > think it has something to do with macOS Sierra because we had another
> > > developer test on his box and got the same behavior I was getting. It
> > seems
> > > like it is taking longer than normal on the RMI steps of the startup
> > > process. Even when downloading a clean version of Kara and starting it,
> > the
> > > process takes 15+ secs on a new Mac and less than 3 secs on the older
> > > version of macOS. The is nothing that I can find of people having the
> > same
> > > problem so this was the only other place I thought to come. Thank you
> for
> > > any help in advance.
> > > --
> > > This e-mail, any and all files transmitted with it, and all
> corresponding
> > > e-mail messages are confidential and intended solely for the use of the
> > > individual or entity to whom they are addressed. If you have received
> > this
> > > email in error, please notify the sender immediately by return e-mail.
> If
> > > you are not the named addressee, you should not disseminate, distribute
> > or
> > > copy this e-mail. Disclosing, copying, distributing or taking any
> action
> > in
> > > reliance on the contents of this information is strictly prohibited.
> > >
> >
> >
> >
> > --
> >
> > 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
> >
>
>
>
> --
> http://about.me/milen
>
-- 
Matt Sicker 


ODP: [Error] Karaf 4.0.8 Building feature with karaf-maven-plugin

2017-04-20 Thread Koprowski, Mariusz
Hi, 
Well I do... but for test I have remove them.

But the problem is not my features it's a problem with original Apache ActiveMQ 
Karaf that is imported by karaf plugin.
.m2/repository/org/apache/activemq/activemq-karaf/5.14.3/activemq-karaf-5.14.3-features.xml:
 cvc-complex-type.3.2.2: Attribute 'start-level' is not allowed to appear in 
element 'feature'

Best regards
--
Mariusz Koprowski
Enterprise Solutions Engineering Lead
T: +48 42 253 48 28
E: mariusz.koprow...@hexagonmining.com 
Hexagon Mining
Wolczanska 128/134
90-441, Lodz, Poland
www.hexagonmining.com | WebEx | Skype

-Wiadomość oryginalna-
Od: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] 
Wysłano: Thursday, April 20, 2017 4:51 PM
Do: dev@karaf.apache.org
Temat: Re: [Error] Karaf 4.0.8 Building feature with karaf-maven-plugin

Hi,

It seems your features XML contains start-level in a feature, right ?

Regards
JB

On 04/20/2017 04:40 PM, Koprowski, Mariusz wrote:
> Hi
> I'm trying to build my own feature that will combine ActiveMQ + some 
> of my bundles but I'm stuck on generating a plugin that have pure ActiveMQ 
> only Here is my POM:
>   xmlns="http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
> 
> features
> com.my.esb
> 1.0.0-SNAPSHOT
> 
>
> 
>
> 4.0.0
>
> com.my.esb.features
> my-esb-amq
> feature
>
> My ESB :: Feature :: AMQ
> Prepackaged AMQ Karaf feature, with no additional 
> dependencies required.
>
> 
> 
> org.apache.activemq
> activemq-karaf
> xml
> features
> 
> 
>
> 
> 
> 
> 
> org.apache.karaf.tooling
> karaf-maven-plugin
> 4.0.8
> true
> 
> 
> 
> 
> 
> org.apache.karaf.tooling
> karaf-maven-plugin
> ${karaf.version}
> 
> 50
> (orb)
> true
> true
> false
> true
> 
> true
> 
> 
> 
> features-add-to-repo
> generate-resources
> 
> features-add-to-repository
> 
> 
> 
> 
> mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features
> 
> mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features
> 
> mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features-core
> 
> mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features
> 
> 
> activemq
> activemq-cf
> activemq-client
> activemq-broker-noweb
> ctivemq-camel
> activemq-web-consol
> activemq-blueprint
> activemq-amqp-client
> ${project.artifactId}
> 
> ${project.artifactId}-webconsole
> ${project.artifactId}-amqp
> 
> target
> 
> 
> 
> 
> 
> 
>
> 
>
> And here is a feature.xml
>   xmlns="http://karaf.apache.org/xmlns/features/v1.3.0"; 
> name="${project.artifactId}">
> 
> mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features-core
> 
> mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features
> 
>  version="${activemq.version}">
>  finalname="/etc/activemq.xml">mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/activemq
>  finalname="/etc/org.apache.activemq.server-default.cfg">mvn:org.apache.activemq/activemq-karaf/${activemq.version}/cfg/activemq
>  dependency="true">activemq
> 
>  version="${activemq.version}" hidden="true">
>  dependency="true">activemq-client
>  dependency="true">camel-jms
>  dependency="true">camel
> 
> mvn:org.apache.activemq/activemq-camel/${activemq.version}
> 
>  version="${activemq.version}">
>  finalname="/etc/org.apache.activemq.webconsole.cfg">mvn:org.apache.activemq/activemq-karaf/${activemq.version}/cfg

Re: [Error] Karaf 4.0.8 Building feature with karaf-maven-plugin

2017-04-20 Thread Jean-Baptiste Onofré

Hi,

It seems your features XML contains start-level in a feature, right ?

Regards
JB

On 04/20/2017 04:40 PM, Koprowski, Mariusz wrote:

Hi
I'm trying to build my own feature that will combine ActiveMQ + some of my 
bundles but I'm stuck on generating a plugin that have pure ActiveMQ only
Here is my POM:

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>

features
com.my.esb
1.0.0-SNAPSHOT




4.0.0

com.my.esb.features
my-esb-amq
feature

My ESB :: Feature :: AMQ
Prepackaged AMQ Karaf feature, with no additional dependencies 
required.



org.apache.activemq
activemq-karaf
xml
features







org.apache.karaf.tooling
karaf-maven-plugin
4.0.8
true





org.apache.karaf.tooling
karaf-maven-plugin
${karaf.version}

50
(orb)
true
true
false
true

true



features-add-to-repo
generate-resources

features-add-to-repository




mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features

mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features

mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features-core

mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features


activemq
activemq-cf
activemq-client
activemq-broker-noweb
ctivemq-camel
activemq-web-consol
activemq-blueprint
activemq-amqp-client
${project.artifactId}

${project.artifactId}-webconsole
${project.artifactId}-amqp

target









And here is a feature.xml

http://karaf.apache.org/xmlns/features/v1.3.0"; 
name="${project.artifactId}">

mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features-core

mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features


mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/activemq
mvn:org.apache.activemq/activemq-karaf/${activemq.version}/cfg/activemq
activemq


activemq-client
camel-jms
camel

mvn:org.apache.activemq/activemq-camel/${activemq.version}


mvn:org.apache.activemq/activemq-karaf/${activemq.version}/cfg/activemq-webconsole
war
eventadmin

mvn:org.apache.activemq/activemq-web-console/${activemq.version}/war


activemq
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.scripting-api-1.0/2.4.0
mvn:org.apache.commons/commons-jexl/2.0.1
mvn:org.apache.xbean/xbean-blueprint/4.2

mvn:org.apache.activemq/activemq-blueprint/${activemq.version}


mvn:io.netty/netty-common/4.0.41.Final
mvn:io.netty/netty-transport/4.0.41.Final
mvn:io.netty/netty-buffer/4.0.41.Final
mvn:io.netty/netty-codec/4.0.41.Final
mvn:io.netty/netty-codec-http/4.0.41.Final
mvn:io.netty/netty-handler/4.0.41.Final
mvn:org.apache.qpid/proton-j/0.14.0
mvn:org.apache.qpid/qpid-jms-client/0.11.1



Hexagon Mining prepackaged AMQ Karaf feature, with no additional 
dependencies required.
activemq-broker-noweb
activemq-camel
activemq-blueprint


Hexagon Mining prepackaged AMQ Karaf feature, with no additional 
dependencies required.
${project.artifactId}
activemq-amqp-client


Hexagon Mining prepackaged AMQ Karaf feature, with no additional 
dependencies required.
${project.artifactId}
activemq-web-console





When I'm trying to run Karaf: features-add-to-r

[Error] Karaf 4.0.8 Building feature with karaf-maven-plugin

2017-04-20 Thread Koprowski, Mariusz
Hi
I'm trying to build my own feature that will combine ActiveMQ + some of my 
bundles but I'm stuck on generating a plugin that have pure ActiveMQ only
Here is my POM:

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>

features
com.my.esb
1.0.0-SNAPSHOT




4.0.0

com.my.esb.features
my-esb-amq
feature

My ESB :: Feature :: AMQ
Prepackaged AMQ Karaf feature, with no additional dependencies 
required.



org.apache.activemq
activemq-karaf
xml
features







org.apache.karaf.tooling
karaf-maven-plugin
4.0.8
true





org.apache.karaf.tooling
karaf-maven-plugin
${karaf.version}

50
(orb)
true
true
false
true

true



features-add-to-repo
generate-resources

features-add-to-repository




mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features


mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features

mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features-core

mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features


activemq
activemq-cf
activemq-client
activemq-broker-noweb
ctivemq-camel
activemq-web-consol
activemq-blueprint
activemq-amqp-client
${project.artifactId}

${project.artifactId}-webconsole
${project.artifactId}-amqp

target









And here is a feature.xml

http://karaf.apache.org/xmlns/features/v1.3.0"; 
name="${project.artifactId}">

mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features-core

mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/features


mvn:org.apache.activemq/activemq-karaf/${activemq.version}/xml/activemq
mvn:org.apache.activemq/activemq-karaf/${activemq.version}/cfg/activemq
activemq


activemq-client
camel-jms
camel

mvn:org.apache.activemq/activemq-camel/${activemq.version}


mvn:org.apache.activemq/activemq-karaf/${activemq.version}/cfg/activemq-webconsole
war
eventadmin

mvn:org.apache.activemq/activemq-web-console/${activemq.version}/war


activemq
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.scripting-api-1.0/2.4.0
mvn:org.apache.commons/commons-jexl/2.0.1
mvn:org.apache.xbean/xbean-blueprint/4.2

mvn:org.apache.activemq/activemq-blueprint/${activemq.version}


mvn:io.netty/netty-common/4.0.41.Final
mvn:io.netty/netty-transport/4.0.41.Final
mvn:io.netty/netty-buffer/4.0.41.Final
mvn:io.netty/netty-codec/4.0.41.Final
mvn:io.netty/netty-codec-http/4.0.41.Final
mvn:io.netty/netty-handler/4.0.41.Final
mvn:org.apache.qpid/proton-j/0.14.0
mvn:org.apache.qpid/qpid-jms-client/0.11.1



Hexagon Mining prepackaged AMQ Karaf feature, with no 
additional dependencies required.
activemq-broker-noweb
activemq-camel
activemq-blueprint


Hexagon Mining prepackaged AMQ Karaf feature, with no 
additional dependencies required.
${project.artifactId}
activemq-amqp-client


Hexagon Mining prepackaged AMQ Karaf feature, with no 
additional dependencies required.
${project.artifactId}
activemq-web-console





When I'm trying to run Karaf: features-add-to-repository
I'm getting fallowing error:
[ERROR] Failed to execute goal 
org.apache.karaf.tooling:karaf-maven

Re: Karaf starting slow on new mac

2017-04-20 Thread Milen Dyankov
See https://thoeni.io/post/macos-sierra-java/

On Wed, Apr 19, 2017 at 9:01 PM, Achim Nierbeck 
wrote:

> Hi,
>
> first you should post your question on the users list, issues is actually
> for the issue tracker :)
> second, I'm using macOS Sierra, and everything is running fine so I can not
> reproduce this.
>
> regards, Achim
>
> 2017-04-19 20:35 GMT+02:00 Aaron Jones :
>
> > I have tried using several different versions including 3.0.3 and 4.1.1.
> > My operating system is macOS Sierra Version 10.12.4 and I am using the
> Java
> > JVM 1.8. I do not have a stack trace because nothing is technically
> erring
> > out but just running extremely slow. I first noticed a problem when
> > integration tests weren’t passing on my new laptop but the exact same
> code
> > was passing on a coworkers laptop. He is running an older version macOS.
> We
> > think it has something to do with macOS Sierra because we had another
> > developer test on his box and got the same behavior I was getting. It
> seems
> > like it is taking longer than normal on the RMI steps of the startup
> > process. Even when downloading a clean version of Kara and starting it,
> the
> > process takes 15+ secs on a new Mac and less than 3 secs on the older
> > version of macOS. The is nothing that I can find of people having the
> same
> > problem so this was the only other place I thought to come. Thank you for
> > any help in advance.
> > --
> > This e-mail, any and all files transmitted with it, and all corresponding
> > e-mail messages are confidential and intended solely for the use of the
> > individual or entity to whom they are addressed. If you have received
> this
> > email in error, please notify the sender immediately by return e-mail. If
> > you are not the named addressee, you should not disseminate, distribute
> or
> > copy this e-mail. Disclosing, copying, distributing or taking any action
> in
> > reliance on the contents of this information is strictly prohibited.
> >
>
>
>
> --
>
> 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
>



-- 
http://about.me/milen