[ 
https://issues.apache.org/jira/browse/TOMEE-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15193094#comment-15193094
 ] 

Praveen  commented on TOMEE-1723:
---------------------------------

Thanks for pin pointing the root cause.The issue has been resolved by setting 
the class loader in the hazelcast config so that container classloader won't be 
used. We can use config.setClassLoader(getClass().getClassLoader())  or 
config.setClassLoader(Thread.currentThread().getContextClassLoader()), if 
config is set in static method. Appreciate your help.

> Hazelcast integration in TomEE
> ------------------------------
>
>                 Key: TOMEE-1723
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1723
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 1.7.2
>         Environment: J2EE application deployed in TomEE, using Hazelcast 
> distributed executor APIs
>            Reporter: Praveen 
>             Fix For: 1.7.3
>
>
> Tomee has Hazelcast jar in it's library. I am using TomEE1.7.2 which has  
> Hazelcast 3.5 version. The application is deployed in multiple tomee 
> instances and Hazelcast cluster has formed successfully. However when i tried 
> distributed executor to execute the task on other JVM, the task executed 
> successfully on other JVM but the control is not coming back to the source 
> JVM. Finally the Future task timeouts and returns null. Other Hazelcast 
> features (distributed map, cluster formation etc.) are working fine except 
> distributed executor. I have used same version of Hazelcast in pom.xml with 
> scope provided. 
> Surprising behavior is - deleting the Hazelcast jar from Tomee library and 
> including explicit dependency on Hazelcast jar of same version (3.5) in the 
> application is working fine. Not able to comprehend this behavior.
> Using latest versions of Hazelcast (3.6.1) in TomEE also didn't solve the 
> issue. 
> Looks like an integration issue of TomEE with Hazelcast.
>  Please investigate and let us know the solution and root cause.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to