Re: [VOTE] Release Apache Karaf 2.4.2

2015-04-22 Thread Freeman Fang
+1(binding)
-
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2015-4-22, at 下午11:18, Jamie G. wrote:

> Hi,
> 
> We resolved 71 issues in this release:
> http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/community/download/karaf-2.4.2-release.page?view=markup
> 
> Dependency changes can be reviewed here:
> http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/documentation/karaf-dependencies/karaf-deps-2.4.x.page?view=markup
> 
> Staging repository:
> https://repository.apache.org/content/repositories/orgapachekaraf-1027/
> 
> Git tag:
> karaf-2.4.2
> 
> Please vote to approve this release:
> 
> [ ] +1 Approve the release
> [ ] -1 Veto the release (please provide specific comments)
> 
> This vote will be open for at least 72 hours.



Re: [VOTE] Release Apache Karaf 2.4.2

2015-04-22 Thread Krzysztof Sobkowiak
+1 (non-binding)

Regards
Krzysztof

On 22.04.2015 17:18, Jamie G. wrote:
> Hi,
>
> We resolved 71 issues in this release:
> http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/community/download/karaf-2.4.2-release.page?view=markup
>
> Dependency changes can be reviewed here:
> http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/documentation/karaf-dependencies/karaf-deps-2.4.x.page?view=markup
>
> Staging repository:
> https://repository.apache.org/content/repositories/orgapachekaraf-1027/
>
> Git tag:
> karaf-2.4.2
>
> Please vote to approve this release:
>
> [ ] +1 Approve the release
> [ ] -1 Veto the release (please provide specific comments)
>
> This vote will be open for at least 72 hours.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix  Committer & PMC chair
Senior Solution Architect @ Capgemini SSC 


[GitHub] karaf-cellar pull request: [KARAF-1842] Implemented Service Tracke...

2015-04-22 Thread FlavioF
GitHub user FlavioF opened a pull request:

https://github.com/apache/karaf-cellar/pull/6

[KARAF-1842] Implemented Service Tracker to remove unavailable distributed 
service.

In this PR, it was implemented a Service Tracker to remove unavailable 
distributed services from the list of available endpoints. It was implemented 
taking DiscoveryTask as a reference.

## Modifications in 
`org/apache/karaf/cellar/hazelcast/HazelcastClusterManager`, 
`org/apache/karaf/cellar/hazelcast/HazelcastGroupManager` and 
`org/apache/karaf/cellar/hazelcast/HazelcastInstanceAware`
In Hazelcast Cellar bundle updates `getInetSocketAddress().getHostName()` 
to `getSocketAddress().getHostString()` when populating cellar nodes since 
`getHostName()` "may trigger a name service reverse lookup if the address was 
created with a literal IP address". It leads to different node IDs depending if 
node is running locally  (it will reverse loockup) or not (it will not reverse 
lockup). Thus, it is impossible to compare between remote endpoint node IDs 
(`endpointDescription.getNodes()`) and cluster manager node IDs 
(`clusterManager.listNodes()`).

## Modifications in 
`org/apache/karaf/cellar/hazelcast/HazelcastClusterManager`
`org/apache/karaf/cellar/hazelcast/QueueConsumer.run` could throw 
exceptions like OperationTimeoutException. This could lead to QueueConsumer 
task being killed making the karaf container useless since it couldn't 
communicate. Therefore, when calling `getQueue().poll(10, TimeUnit.SECONDS)` it 
now catches all possible Exception to ensure that QueueConsumer task never dies.

All this changes are needed in order to Service Tracker to work.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/FlavioF/karaf-cellar 
feature_add_service_tracker_to_unregist_remove_service

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/karaf-cellar/pull/6.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #6


commit de8162fba4542a53050eccf16908981c54131ab6
Author: Flávio Ferreira 
Date:   2015-04-22T17:46:42Z

[KARAF-1842] Implemented Service Tracker to remove unavailable distributed 
service.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Re: [VOTE] Release Apache Karaf 2.4.2

2015-04-22 Thread Achim Nierbeck
+1 (binding)

regards, Achim


2015-04-22 20:03 GMT+02:00 Christian Schneider :

> +1 (non binding)
>
> Christian
>
>
> On 22.04.2015 17:18, Jamie G. wrote:
>
>> Hi,
>>
>> We resolved 71 issues in this release:
>>
>> http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/community/download/karaf-2.4.2-release.page?view=markup
>>
>> Dependency changes can be reviewed here:
>>
>> http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/documentation/karaf-dependencies/karaf-deps-2.4.x.page?view=markup
>>
>> Staging repository:
>> https://repository.apache.org/content/repositories/orgapachekaraf-1027/
>>
>> Git tag:
>> karaf-2.4.2
>>
>> Please vote to approve this release:
>>
>> [ ] +1 Approve the release
>> [ ] -1 Veto the release (please provide specific comments)
>>
>> This vote will be open for at least 72 hours.
>>
>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>


-- 

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


Re: [VOTE] Release Apache Karaf 2.4.2

2015-04-22 Thread Christian Schneider

+1 (non binding)

Christian

On 22.04.2015 17:18, Jamie G. wrote:

Hi,

We resolved 71 issues in this release:
http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/community/download/karaf-2.4.2-release.page?view=markup

Dependency changes can be reviewed here:
http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/documentation/karaf-dependencies/karaf-deps-2.4.x.page?view=markup

Staging repository:
https://repository.apache.org/content/repositories/orgapachekaraf-1027/

Git tag:
karaf-2.4.2

Please vote to approve this release:

[ ] +1 Approve the release
[ ] -1 Veto the release (please provide specific comments)

This vote will be open for at least 72 hours.



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

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



Re: [VOTE] Release Apache Karaf 2.4.2

2015-04-22 Thread Jean-Baptiste Onofré

+1 (binding)

Regards
JB

On 04/22/2015 05:18 PM, Jamie G. wrote:

Hi,

We resolved 71 issues in this release:
http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/community/download/karaf-2.4.2-release.page?view=markup

Dependency changes can be reviewed here:
http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/documentation/karaf-dependencies/karaf-deps-2.4.x.page?view=markup

Staging repository:
https://repository.apache.org/content/repositories/orgapachekaraf-1027/

Git tag:
karaf-2.4.2

Please vote to approve this release:

[ ] +1 Approve the release
[ ] -1 Veto the release (please provide specific comments)

This vote will be open for at least 72 hours.



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


[VOTE] Release Apache Karaf 2.4.2

2015-04-22 Thread Jamie G.
Hi,

We resolved 71 issues in this release:
http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/community/download/karaf-2.4.2-release.page?view=markup

Dependency changes can be reviewed here:
http://svn.apache.org/viewvc/karaf/site/trunk/src/main/webapp/index/documentation/karaf-dependencies/karaf-deps-2.4.x.page?view=markup

Staging repository:
https://repository.apache.org/content/repositories/orgapachekaraf-1027/

Git tag:
karaf-2.4.2

Please vote to approve this release:

[ ] +1 Approve the release
[ ] -1 Veto the release (please provide specific comments)

This vote will be open for at least 72 hours.


Re: URL Redirecting by Jetty RewriteHandler

2015-04-22 Thread Achim Nierbeck
Hi,

for Handlers you'll need to work differently in Karaf compared to a vanilla
Jetty.
This is due to that Jetty is running embedded.
Therfore you first need to get a hold of all handlers and add your new
handler to it.
Take a look at the sample at [1].

regards, Achim
[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/jetty-config-fragment/src/main/resources/jetty.xml#L50-L64



2015-04-22 15:07 GMT+02:00 Daisuke Otaka :

> Hi,
>
> I'm trying URL redirect by the Jetty RewriteHandler now, but it doesn't
> work
> fine.
> Kindly let me know if you have any suggestion.
>
> [Objective]
> Redirect request URL from A to B.
> A: http://dev:8040/voxer/HelloService
> B: http://dev:8040/services/HelloService
>
> [Current Settings]
> 1. Add bundle file (jar)
>
> /opt/Talend-5.6.1/runtime/system/org/eclipse/jetty/jetty-rewrite/7.6.9.v20130131/jetty-rewrite-7.6.9.v20130131.jar
>
> 2. Add bundle setting to my karaf standard feature xml file.
>
> /opt/Talend-5.6.1/runtime/system/org/apache/karaf/assemblies/features/standard/2.3.9/standard-2.3.9-features.xml
> -
>  version="7.6.9.v20130131" resolver="(obr)">
> 
> start-level="30">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.4.0
> 
> start-level="30">mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.2
>  start-level="30">mvn:javax.mail/mail/1.4.5
> 
> start-level="30">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>  start-level="30">mvn:org.eclipse.jetty/jetty-util/7.6.9.v20130131
>  start-level="30">mvn:org.eclipse.jetty/jetty-io/7.6.9.v20130131
>  start-level="30">mvn:org.eclipse.jetty/jetty-http/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-client/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-continuation/7.6.9.v20130131
>  start-level="30">mvn:org.eclipse.jetty/jetty-jmx/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-server/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-security/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-servlet/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-servlets/7.6.9.v20130131
>  start-level="30">mvn:org.eclipse.jetty/jetty-xml/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-webapp/7.6.9.v20130131
>  start-level="30">mvn:org.eclipse.jetty/jetty-jndi/7.6.9.v20130131
>  start-level="30">mvn:org.eclipse.jetty/jetty-plus/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-websocket/7.6.9.v20130131
> 
> start-level="30">mvn:org.eclipse.jetty/jetty-rewrite/7.6.9.v20130131
> 
> -
>
> 3. Add "jetty-rewrite.xml" file reference setting.
>
>
> /opt/Talend-5.6.1/runtime/system/org/apache/karaf/assemblies/features/standard/2.3.9/standard-2.3.9-features.xml
> -
> 
> 
> finalname="/etc/jetty.xml">mvn:org.apache.karaf/apache-karaf/2.3.9/xml/jettyconfig
> 
> org.osgi.service.http.port=8181
> javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp
>
>
> org.ops4j.pax.web.config.file=${karaf.base}/etc/jetty.xml,${karaf.base}/etc/jetty-rewrite.xml
> 
> jetty
>  start-level="30">mvn:org.ops4j.pax.web/pax-web-api/1.1.17
>  start-level="30">mvn:org.ops4j.pax.web/pax-web-spi/1.1.17
>  start-level="30">mvn:org.ops4j.pax.web/pax-web-runtime/1.1.17
>  start-level="30">mvn:org.ops4j.pax.web/pax-web-jetty/1.1.17
> 
> -
>
> 4. Create file "jetty-rewrite.xml"
>
> /opt/Talend-5.6.1/esb/container/etc/jetty-rewrite.xml
> -
> 
>  DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"
> ;>
>
>   
>
>
>  class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
>   true
>   false
>   requestedPath
>
>
>   
> 
>class="org.eclipse.jetty.rewrite.handler.RedirectPatternRule">
> /voxer/*
> /services/
>   
> 
>   
> 
>
>
> 
>
>   
> -
>
> 5. Restart karaf
>
> Best Regards,
> Daisuke Otaka
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/URL-Redirecting-by-Jetty-RewriteHandler-tp4039880.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

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


URL Redirecting by Jetty RewriteHandler

2015-04-22 Thread Daisuke Otaka
Hi,

I'm trying URL redirect by the Jetty RewriteHandler now, but it doesn't work
fine.
Kindly let me know if you have any suggestion.

[Objective]
Redirect request URL from A to B.
A: http://dev:8040/voxer/HelloService
B: http://dev:8040/services/HelloService

[Current Settings]
1. Add bundle file (jar)
/opt/Talend-5.6.1/runtime/system/org/eclipse/jetty/jetty-rewrite/7.6.9.v20130131/jetty-rewrite-7.6.9.v20130131.jar

2. Add bundle setting to my karaf standard feature xml file.
/opt/Talend-5.6.1/runtime/system/org/apache/karaf/assemblies/features/standard/2.3.9/standard-2.3.9-features.xml
-

mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.4.0
mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.2
mvn:javax.mail/mail/1.4.5
mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
mvn:org.eclipse.jetty/jetty-util/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-io/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-http/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-client/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-continuation/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-jmx/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-server/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-security/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-servlet/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-servlets/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-xml/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-webapp/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-jndi/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-plus/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-websocket/7.6.9.v20130131
mvn:org.eclipse.jetty/jetty-rewrite/7.6.9.v20130131

-

3. Add "jetty-rewrite.xml" file reference setting.

/opt/Talend-5.6.1/runtime/system/org/apache/karaf/assemblies/features/standard/2.3.9/standard-2.3.9-features.xml
-

mvn:org.apache.karaf/apache-karaf/2.3.9/xml/jettyconfig

org.osgi.service.http.port=8181
javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp
   
org.ops4j.pax.web.config.file=${karaf.base}/etc/jetty.xml,${karaf.base}/etc/jetty-rewrite.xml

jetty
mvn:org.ops4j.pax.web/pax-web-api/1.1.17
mvn:org.ops4j.pax.web/pax-web-spi/1.1.17
mvn:org.ops4j.pax.web/pax-web-runtime/1.1.17
mvn:org.ops4j.pax.web/pax-web-jetty/1.1.17

-

4. Create file "jetty-rewrite.xml"

/opt/Talend-5.6.1/esb/container/etc/jetty-rewrite.xml
-

http://jetty.mortbay.org/configure.dtd";>

  



  true
  false
  requestedPath

  
  

  
/voxer/*
/services/
  

  


 


  
-

5. Restart karaf

Best Regards,
Daisuke Otaka




--
View this message in context: 
http://karaf.922171.n3.nabble.com/URL-Redirecting-by-Jetty-RewriteHandler-tp4039880.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.