Shutdown issues with ManagedScheduledExecutorService

2018-10-29 Thread ChrisOwens
This is with TomEE plus 7.0.5 I'm getting /Bean ... has been undeployed/ exception on shutdown, which is preventing orderly cleanup. The issue appears to be that a POJO implementing Runnable is scheduled for periodic execution; that POJO was created with a reference to a @Stateless bean; and the

Shutdown issues with ManagedScheduledExecutorService

2018-10-29 Thread ChrisOwens
This is with TomEE plus 7.0.5 I'm getting /Bean ... has been undeployed/ exception on shutdown, which is preventing orderly cleanup. The issue appears to be that a POJO implementing Runnable is scheduled for periodic execution; that POJO was created with a reference to a @Stateless bean; and the

Shutdown issues with ManagedScheduledExecutorService

2018-10-29 Thread ChrisOwens
This is with TomEE plus 7.0.5 I'm getting /Bean ... has been undeployed/ exception on shutdown, which is preventing orderly cleanup. The issue appears to be that a POJO implementing Runnable is scheduled for periodic execution; that POJO was created with a reference to a @Stateless bean; and the

Re: Classloader woes: EAR containing an RAR

2018-08-01 Thread ChrisOwens
I am trying to set up a reproducer project using the tomee maven plugin. I am looking at the plugin's new documentation page to which you referred me. (Might I suggest that you take down the old, obsolete documentation page, which is the first hit for google "tomee maven plugin", or at least put i

Re: Classloader woes: EAR containing an RAR

2018-08-01 Thread ChrisOwens
Putting aside for a moment the question of whether or not the adapter is packaged in a rar file, what is your opinion of JCA for a JavaEE 7 application hosted on TomeEE +? Use it or avoid it? -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html

Re: Classloader woes: EAR containing an RAR

2018-07-31 Thread ChrisOwens
Romain Manni-Bucau wrote > Rar is kind of really overkill for any new code in java 6 but if you > already have the connector it is fine to deploy it but quite rare. I would love to get rid of the rar file and the whole deployment mess. Thus far, I have tried putting the sources for the java clas

Re: Classloader woes: EAR containing an RAR

2018-07-31 Thread ChrisOwens
Romain Manni-Bucau wrote > If your goal is really to interact with kafka - and you dont care of rar > by > themselves - i would recommand to use a cdi extension, > you can find several on the net like > https://github.com/bgjug/kafka-cdi-extension and > https://github.com/aerogear/kafka-cdi Thank

Re: Classloader woes: EAR containing an RAR

2018-07-31 Thread ChrisOwens
Romain Manni-Bucau wrote > Are you able to push a reproducer on github with the tomee-maven-plugin > configured? I'm working on that now. I don't usually use the tomee-maven-plugin, so I thought I would check the documentation here . The version

Re: Classloader woes: EAR containing an RAR

2018-07-31 Thread ChrisOwens
Romain Manni-Bucau wrote > 1. self contained and not used in another modules (ejb or web) -> you > register it in tomee.xml (in > > + config if needed) and that's it What does "+ config if needed" mean? I think you mean I should put some config information somewhere. Where? In some XML file? In

Re: Classloader woes: EAR containing an RAR

2018-07-31 Thread ChrisOwens
Let me ask what I hope is a simpler question, but 2 days of searching online lead me to believe that lots of people have this problem and there is no documented solution. 1) I have a RAR file that describes a JCA connector. 2) I would like to use it with TomEE. 3) What should I do? -- S

Re: Classloader woes: EAR containing an RAR

2018-07-31 Thread ChrisOwens
Romain Manni-Bucau wrote > Hi > > The api part of the rar should be shared so put * > it * > in tomee/lib (or the ear > lib module). Thanks Romain 1) "It" refers to what? The rar file? the API part of the rar, as an ordinary jar? 2) "tomee/lib"? That means $CATALINA_HOME/lib? 3) "the ear

Re: Classloader woes: EAR containing an RAR

2018-07-31 Thread ChrisOwens
Romain Manni-Bucau wrote > The api part of the rar should be shared so put * > it * > in tomee/lib (or the ear > lib module). Thanks Romain 1) "It" refers to what? The rar file? the API part of the rar, as an ordinary jar? 2) "tomee/lib"? That means $CATALINA_HOME/lib? 3) "the ear lib mod

Classloader woes: EAR containing an RAR

2018-07-30 Thread ChrisOwens
I am deploying (tomEE-plus 7.0.5) an EAR file that contains two modules: a JCA connector defined in a rar file, and a JAR full of ejbs. The EJBs contain classes that depend upon classes packaged in the RAR. Whether or not I set "initialize-in-order" to true, I get the same behavior: The logs sho