Re: Different JMX domains for TomEE Embedded and Standalone

2013-08-21 Thread Christian Schlichtherle
Hi, I am sorry, but where should I put a server.xml for use with TomEE Embedded while testing? I think I'll better write a general lookup procedure anyway. Regards, Christian Schlichtherle Am 20.08.2013 um 18:53 schrieb Romain Manni-Bucau rmannibu...@gmail.com: In tomee change the engine

Re: Different JMX domains for TomEE Embedded and Standalone

2013-08-21 Thread Romain Manni-Bucau
Either you match embedded name in normal mode or set serverXml attribute to the file path in arquillian.xml Le 21 août 2013 08:04, Christian Schlichtherle christian-b...@schlichtherle.de a écrit : Hi, I am sorry, but where should I put a server.xml for use with TomEE Embedded while testing?

TomEE + HornetQ standalone

2013-08-21 Thread Emanuele Villa
Hi, we're trying to connect from our application deployed into a TomEE+ to a standalone HornetQ 2.3.0 but with no successful results... Is there anyone who had tried a similar integration successfully? We'll appreciate very much a support in this way! We have downloaded and started our HornetQ

Re: TomEE + HornetQ standalone

2013-08-21 Thread Romain Manni-Bucau
Hi, DiscoveryAddress you mean? 127.0.0.1 is an unicast address IIRC so you can't use it for multicast *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: JAX-WS without EJB (Stateless) but with CDI

2013-08-21 Thread Romain Manni-Bucau
Hi for pojos you need to map them to a servlet in web.xml as the error states *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github:

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Christian Schlichtherle
I think I faced the same problem and solved it with the following Deployment: public static @Deployment WebArchive createDeployment() { final WebArchive archive = ShrinkWrap .create(WebArchive.class) .addClass(TomcatUpdateInstaller.class)

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Dormouse
Thanks for the quick response. I do have beans.xml files in all projects that should support CDI. As mentioned, the application works ok on TomEE (1.5.2) and JBoss (7). The storage jar for example contains a beans.xml, though it is located in META-INF, since it is not a web module but an EJB jar.

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Christian Schlichtherle
Am 21.08.2013 um 11:24 schrieb Dormouse rabbith...@live.nl: Thanks for the quick response. I do have beans.xml files in all projects that should support CDI. As mentioned, the application works ok on TomEE (1.5.2) and JBoss (7). The storage jar for example contains a beans.xml, though it is

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Christian Schlichtherle
Hi Dormouse, hmm, don't know but I would double check that there is an empty /META-INF/beans.xml in /WEB-INF/lib/storage-*.jar, too. I used a different approach and just added the implementation class to the WebArchive and nothing else. For testing with an embedded container, this works.

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Dormouse
It contains a beans.xml. It is not completely empty however, it contains the following which I thought was necessary. beans xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/javaee

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Romain Manni-Bucau
Hi, maybe give it a try with the snapshot (version 1.6.0-SNAPSHOT in https://repository.apache.org/snapshots ). Tomee embedded v 1.6 is known to have issues with jvm classloader (that's why embedded testing is broken by design for real integration tests) *Romain Manni-Bucau* *Twitter:

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Dormouse
Thanks, I will try that first thing tomorrow. -- View this message in context: http://openejb.979440.n4.nabble.com/Testing-with-TomEE-Arquillian-and-CDI-UnsatisfiedResolutionException-tp4664750p4664765.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Apache TomEE Cookbook

2013-08-21 Thread Yann Blazart
Sorry, but it's the printed version ? Where can I buy the pdf version ? 2013/8/21 Gurkan Erdogdu gurkanerdo...@yahoo.com Hi folks I have written a small cook book about Apache TomEE. My book Apache TomEE Cookbook published by Amazon Create Space. You can get e-book format of the book from

Re: Apache TomEE Cookbook

2013-08-21 Thread Howard W. Smith, Jr.
+1 Gurkan. which release or snapshot-release-and-date does this cookbook target? Hopefully, it targets the latest version of tomee 1.6.0 (snapshot). On Wed, Aug 21, 2013 at 3:47 AM, Gurkan Erdogdu gurkanerdo...@yahoo.comwrote: Hi folks I have written a small cook book about Apache TomEE. My

Incorrect timer initialization

2013-08-21 Thread Christian Schlichtherle
I have a singleton session bean which gets a TimerService injected like this: @Resource private TimerService timerService; In a @PostConstruct method I use it like this: timerService.createTimer(intervalMillis, intervalMillis, null); where intervalMillis is the equivalent of

Re: TomEE/OWB (@Pre)destroy of CDI @SessionScoped bean exception

2013-08-21 Thread Howard W. Smith, Jr.
CLARIFICATION: java.lang.NullPointerException at jsf.orders.pf_OrdersController.releaseResources(pf_OrdersController.java:631) line 631 == if (browseCopy) { ... in the code segment below; browseCopy (boolean) is never set to 'null' via my code/app. On Wed, Aug 21, 2013 at 10:23 AM, Howard W.

Re: TomEE/OWB (@Pre)destroy of CDI @SessionScoped bean exception

2013-08-21 Thread Howard W. Smith, Jr.
Also, I searched all log files, and this exception only occurred this morning, first and only time/occurrence. :( On Wed, Aug 21, 2013 at 10:52 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: CLARIFICATION: java.lang.NullPointerException at

Re: Incorrect timer initialization

2013-08-21 Thread Romain Manni-Bucau
hi on turnk? *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/8/21 Christian Schlichtherle

Subscription to Topic is not receiving messages

2013-08-21 Thread Christian Schlichtherle
Hi, I have two components which represent different roles in an asynchronous conversation, named agent and manager. There can be many agents, but there should be only one manager. For the exchange of messages each instance subscribes to the same Topic. Only the manager uses a durable

Re: [E-Book Version] Apache TomEE Cookbook

2013-08-21 Thread Gurkan Erdogdu
Hello Yann You can buy PDF version of the book from http://payhip.com/b/bsva Best. Gurkan From: Yann Blazart yann.blaz...@bycode.fr To: users@tomee.apache.org; Gurkan Erdogdu gurkanerdo...@yahoo.com Cc: u...@openwebbeans.apache.org

Re: Incorrect timer initialization

2013-08-21 Thread Romain Manni-Bucau
I hacked this part on trunk, that's why i ask Le 21 août 2013 18:55, Christian Schlichtherle christian-b...@schlichtherle.de a écrit : Hi, no, I am using TomEE+ 1.5.2. Am I supposed to upgrade? Regards, Christian Schlichtherle Am 21.08.2013 um 16:54 schrieb Romain Manni-Bucau

Re: Testing with TomEE, Arquillian and CDI (UnsatisfiedResolutionException)

2013-08-21 Thread Dormouse
I found some time to test this tonight. Obtained org.apache.openejb:arquillian-tomee-embedded:1.6.0-SNAPSHOT from http://maven.wso2.org/. The exception persists. It seems to be appearing even more with this version. Could it be that my architecture simply isn't supported? I.e. a library jar

tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-08-21 Thread jieryn
Greetings, I am using Apache TomEE 1.6.0-SNAPSHOT. I'm seeing a failure to inject a @PersistenceContext into a @Stateless DAO pattern inside Arquillian tests running in embedded TomEE. An example project is here: https://github.com/jieryn/javaee-example Notice that general DAO is injected into

Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-08-21 Thread Romain Manni-Bucau
Hi does it work in plain tomee? *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/8/21

Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-08-21 Thread Romain Manni-Bucau
PS: final methods are forbidden in EJBs ;) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau*

Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-08-21 Thread jieryn
Thanks, removed that modifier. No change. On Wed, Aug 21, 2013 at 5:47 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: PS: final methods are forbidden in EJBs ;)

Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-08-21 Thread jieryn
Hi, On Wed, Aug 21, 2013 at 5:25 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi does it work in plain tomee? I pushed some pom.xml updates that enable tomee:run, however it isn't being deployed properly there either.

Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-08-21 Thread jieryn
Hi, On Wed, Aug 21, 2013 at 7:31 PM, jieryn jie...@gmail.com wrote: On Wed, Aug 21, 2013 at 5:25 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: does it work in plain tomee? I pushed some pom.xml updates that enable tomee:run, however it isn't being deployed properly there either. By