[issues] Commented: (PAXEXAM-28) Support TestNG

2010-08-16 Thread Toni Menzel (JIRA)
[ http://issues.ops4j.org/browse/PAXEXAM-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486#action_13486 ] Toni Menzel commented on PAXEXAM-28: Well, Exam2 will not bring TestNG by itself, but it will make i

Re: java.lang.OutOfMemoryError: PermGen space

2010-08-16 Thread Toni Menzel
Well exactly in Exam2 it gets worse (for Eclipse) currently. This is because each Container implementation contributes a different set of capabilities (Options) via their factories. In 1.x we just have Core & PaxRunner. But in 2.x there is currrently (OSGi related) Core,PaxRunner, NativeContainer,

Re: java.lang.OutOfMemoryError: PermGen space

2010-08-16 Thread Marcel Offermans
The problem is that these static methods are distributed over multiple classes (CoreOptions, PaxRunnerOptions, and I remember looking at others too). If they were merged into one class, one static import statement in Eclipse would do the trick, so maybe for Exam 2.0 that would be a nice suggesti

Re: java.lang.OutOfMemoryError: PermGen space

2010-08-16 Thread Toni Menzel
Yeah, this is a walk between heaven and hell. In IntelliJ it works so well that we decided to make the fluent api / static imports combo an integral part of API in many Pax projects. On the other hand, i recently noticed that Eclipse does a pretty bad job discovering those. So, yeah, i can underst

Re: java.lang.OutOfMemoryError: PermGen space

2010-08-16 Thread Marcel Offermans
On 16 Aug 2010, at 16:01 , Reto Bachmann-Gmuer wrote: > Thanks Marcel for helping out (forgot to mention that the question relates to > pax-exam) , the following worked: And because at least Eclipse is bad at "discovering" static imports automatically: import static org.ops4j.pax.exam.CoreOpti

Re: java.lang.OutOfMemoryError: PermGen space

2010-08-16 Thread Toni Menzel
Exactly. Thanks Marcel! On Mon, Aug 16, 2010 at 4:01 PM, Reto Bachmann-Gmuer < reto.bachm...@trialox.org> wrote: > Thanks Marcel for helping out (forgot to mention that the question relates > to pax-exam) , the following worked: > > > @Configuration > public static Option[] configuration() { > r

Re: java.lang.OutOfMemoryError: PermGen space

2010-08-16 Thread Reto Bachmann-Gmuer
Thanks Marcel for helping out (forgot to mention that the question relates to pax-exam) , the following worked: @Configuration public static Option[] configuration() { return options( ... vmOption("-XX:MaxPermSize=200m"), ... } Cheers, reto On Mon, Aug 16, 2010 at 3:36 PM, Reto Bachmann-Gmuer <

java.lang.OutOfMemoryError: PermGen space

2010-08-16 Thread Reto Bachmann-Gmuer
Hi, I'm getting a lot of PermGen space errors, setting "-XX:MaxPermSize=200m" in MAVEN_OPTS doesn't help as this isn't passed to the forked vm for the osgi container. How can I pass vm-args to the osgi container? Cheers, reto ___ general mailing list ge