Re: OpenEJB/TomEE and mocking

2014-05-26 Thread Romain Manni-Bucau
remove the impl (not the interface) otherwise no need of a fallback injector Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-05-27 7:11 GMT+02:00 hwaastad : > Hi Romain

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread hwaastad
Hi Romain, did a test this morning, but my project is still not mocking. (did not build from source, just updated maven repos) br hw -- View this message in context: http://openejb.979440.n4.nabble.com/OpenEJB-TomEE-and-mocking-tp4669665p4669684.html Sent from the OpenEJB User mailing list arc

Re: how get anduse tomee1.6.0.2 archetype and plugin updated

2014-05-26 Thread Marius Kruger
On 26 May 2014 08:14, mauro2java2011 wrote: > How i can get the tomee plugin and the maven atchetype updated bot at tomee > 1.6.0.2 version? > hi, You should just be able to increment the version numbers, which documentation are you following? http://mvnrepository.com/artifact/org.apache.opene

Re: moviefun on mysql

2014-05-26 Thread solstice
Hi Shikida. I am having your EXACT issue. Could you please elaborate what you mean by starting tomcat from somewhere else other than eclipse? Is your project not a local project? Whenever I execute my web application, the URL says localhost:8080//myproject/. What does yours say? Thanks -- View

Re: webbeans on high load: java.util.EmptyStackException

2014-05-26 Thread zmirc
Nice! The new snapshot doesn't have the web.xml filter problem. The java.util.EmptyStackException isn't thrown neither. It seems perfect and stable! Thank you, Romain! I am experiencing a memory leak in high load after 10 minutes (it happens the same with 1.6.0 JAX-RS), but it might be in ObjectD

Re: webbeans on high load: java.util.EmptyStackException

2014-05-26 Thread Romain Manni-Bucau
it is redeployed now Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-05-26 9:37 GMT+02:00 zmirc : > Hi! > > I am using @RequestScoped. > > I've tried to download the JA

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread Andy Gumbrecht
Yep, been down for maint. all day. Andy. On 26/05/2014 13:34, hwaastad wrote: Great!, I'll test it when the apache snapshot repo is alive: Return code is: 503 , ReasonPhrase:Service Temporarily Unavailable. hw -- View this message in context: http://openejb.979440.n4.nabble.com/OpenEJB-

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread hwaastad
Great!, I'll test it when the apache snapshot repo is alive: Return code is: 503 , ReasonPhrase:Service Temporarily Unavailable. hw -- View this message in context: http://openejb.979440.n4.nabble.com/OpenEJB-TomEE-and-mocking-tp4669665p4669673.html Sent from the OpenEJB User mailing list ar

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread Romain Manni-Bucau
Hello this patch fixes it: Index: container/openejb-junit/src/main/java/org/apache/openejb/junit/jee/statement/InjectStatement.java === --- container/openejb-junit/src/main/java/org/apache/openejb/junit/jee/statement/InjectStatement.

Re: OpenEJB Startup Problem : NPE in CdiScanner

2014-05-26 Thread Stanislas Nanchen
Hello, I found the culprit: for some (not yet explained reasons), our gradle script write a copy of java.nio.charset.* to the WEB-INF/classes directory and therefore these classes are scanned and found by the IAnnotationFinder. Sorry for the noise! and thank for the help. Cheers, Stan. - Or

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread hwaastad
I guess I must be doing something wrong here: Maybe the inject rule? https://github.com/hwaastad/ContainerTest.git @ClassRule public static final EJBContainerRule CONTAINER_RULE = new EJBContainerRule(); @Rule public final InjectRule injectRule = new InjectRule(this, CONTAINER_RULE);

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread Romain Manni-Bucau
Think org.apache.openejb.injection.FallbackPropertyInjector=org.apache.openejb.mockito.MockitoInjector should work (of course you need openejb-mockito in the classpath) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibuca

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread hwaastad
Hi Romain, Have you got a oneliner for the fallback injector property? (@Property(key=?,value=?) br hw -- View this message in context: http://openejb.979440.n4.nabble.com/OpenEJB-TomEE-and-mocking-tp4669665p4669668.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: OpenEJB/TomEE and mocking

2014-05-26 Thread Romain Manni-Bucau
Hi same tricks should work. Just set the fallback injector in properties of the container and Mockito helper to get @Mock working (org.mockito.MockitoAnnotations.initMocks() IIRC) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/i

OpenEJB/TomEE and mocking

2014-05-26 Thread hwaastad
Hi, I've been using App composer and mockito and its working nicely, However, after reading Romains blog (which has a lot of interesting hints regarding new feature in TomEE/OpenEJB) about ejbcontainer and junit rules my question is this. Is it possible to use mocking in these kinds of scenarios?

Re: OpenEJB Startup Problem : NPE in CdiScanner

2014-05-26 Thread Romain Manni-Bucau
Hi basically it is computed from the classes found in the webapp so java.nio shouldn't be here in AnnotationDeployer you can find a method getBeanClasses or something like that. You can't reproduce it in a shareable sample? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wo

Re: OpenEJB Startup Problem : NPE in CdiScanner

2014-05-26 Thread Stanislas Nanchen
Hi everyone, Thank you for the answers and sorry for the late answer. I have dumped the beans.managedClasses variable (line 186 in CdiScanner). The set is too big to be printed (1672 classes); almost all classes are from our application. not from our applications are: - some classes of google gu

Re: webbeans on high load: java.util.EmptyStackException

2014-05-26 Thread zmirc
Hi! I am using @RequestScoped. I've tried to download the JAX-RS snapshot from tomee.apache.org, but I got this error: 500 - Internal Server Error Exception during reading up an item from FS storage! -- View this message in context: http://openejb.979440.n4.nabble.com/webbeans-on-high-load-j

Re: webbeans on high load: java.util.EmptyStackException

2014-05-26 Thread Romain Manni-Bucau
PS: you use @Dependent JAXRS endpoint. Maybe you should use @RequestScoped (or something else depending your need) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-05-26

Re: webbeans on high load: java.util.EmptyStackException

2014-05-26 Thread Romain Manni-Bucau
Hmm, would be great if you can reproduce it and share the code on github. If it needs a high load maybe using ab can be easy enough? BTW this failling code has been rewritten on trunk so testing on 1.7.0-SNAPSHOT would be great (wait ~ 30mn to let snapshot be uploaded) Romain Manni-Bucau Twitt