Re: Permgen issue?

2015-09-03 Thread tonywestonuk
Ok, I will try this on a standalone TOMEE installation. Though, it appears that even on WTP tomee, the pool is tied to the webapp - the classloader is the LazyStopWebappClassLoader. The problem is that the org.apache.catalina.loader.StandardClassLoader retains a reference to

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
I am sorry, but I don't really understand how I can kill the task In my example, above, the async task is just a single System.out !! - How can I kill this, it executes in milliseconds!! Looking at the threads using VisualVM, I can see the asynchronous thread in there, but it is

Re: Permgen issue?

2015-09-03 Thread Romain Manni-Bucau
About the pool itself: on modern tomee version the pool (AsynchronousPool-*) is bound to the app and stopped when undeploying the application waiting max AsynchronousPool.ShutdownWaitDuration . So basically a real undeployment/redeployment should work smoothly. Can you validate it quickly (ie dont

Re: Permgen issue?

2015-09-03 Thread Romain Manni-Bucau
tested with the snapshot calling reload() through JMX and didnt get the issue at all - threads and classloader are cleaned up properly Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
Ok, I can confirm it is still leaking permgen memory, on a standalone Tomee. :-/ Thanks, Tony. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Permgen-issue-tp4676065p4676092.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
Though I have not confirmed this, I think you probably need to refresh the home page, then reload the app in tomee, for the bug to be seen. Nothing shows on the homepage. keep your eye on the console. Thanks, Tony. -- View this message in context:

Re: Permgen issue?

2015-09-03 Thread Romain Manni-Bucau
ok so 2 cases: - bug is in tomee when creating the thread -> Ill check it - bug is due to your task as explained before, for this case you can do something like: @Singleton public class MyAsyncService { @Resource SessionContext ctx; AtomicReference future = new

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
There you go - complete with source! https://www.tonyweston.co.uk/FriendlyStock/gifts/TomeePermgenBug.war -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Permgen-issue-tp4676065p4676094.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Permgen issue?

2015-09-03 Thread Romain Manni-Bucau
2015-09-03 17:02 GMT+02:00 tonywestonuk : > ... > > Romain. I am sorry. > > I was using version 1.7.1- I have upgraded to 1.7.2, and the bug has > gone. > > > Thankyou for helping me, just happy to know it is fixed. Next time I'll > make sure im on the latest

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
... Romain. I am sorry. I was using version 1.7.1- I have upgraded to 1.7.2, and the bug has gone. Thankyou for helping me, just happy to know it is fixed. Next time I'll make sure im on the latest version! Cheers, Tony. -- View this message in context:

WebServlet match on root

2015-09-03 Thread tonywestonuk
This used to match the Context Root URI in Tomee 1.7.1 (as per the Servlet 3.0 spec) @WebServlet("") public class PlayerInfo extends HttpServlet{ } But, it no longer works in Tomee 1.7.2 :-/ Thanks. -- View this message in context:

Re: WebServlet match on root

2015-09-03 Thread tonywestonuk
No I didn't And, now I added it, it works!!! Thanks again!!! :-DD oh, that other issue in regards to the JAXB classes causing a memory leak I mentioned in the other thread - thats also fixed. Its been a good day! :-D Cheers, Tony. -- View this message in context:

Re: TomEE embedded classloader behhaviours

2015-09-03 Thread Yann Blazart
Hmmm. I don't know. But for the Uber Jar, what is the class loader policy ? Parent first ? That's why it get the log4j2.xml from my uber jar ? How to override this ? Or I leave TomEE with is own log framework and use only log4j2 for my apps... 2015-09-03 19:21 GMT+02:00 Romain Manni-Bucau

Re: TomEE embedded classloader behhaviours

2015-09-03 Thread Yann Blazart
I just read classloader in tomcat, so in tomee I suppose. Normally, in the webapp it looks in the war first for resources, after it goes to parents. Isn't it ? So why it doesn't work like that in my case ? 2015-09-03 21:08 GMT+02:00 Yann Blazart : > Hmmm. I don't know.

Re: TomEE embedded classloader behhaviours

2015-09-03 Thread Romain Manni-Bucau
2015-09-03 21:12 GMT+02:00 Yann Blazart : > I just read classloader in tomcat, so in tomee I suppose. > > Normally, in the webapp it looks in the war first for resources, after it > goes to parents. Isn't it ? > > So why it doesn't work like that in my case ? > > Sorry

Re: WebServlet match on root

2015-09-03 Thread Howard W. Smith, Jr.
On Thu, Sep 3, 2015 at 12:08 PM, tonywestonuk wrote: > > Its been a good day! :-D > Sounds like it's been a TomEE day! :-D

TomEE embedded classloader behhaviours

2015-09-03 Thread Yann BLAZART
Hello all. Now I'm trying to deliver my application as micro servers using tomee embedded. My problem come from log4j2 configs. I've made an "extension" of tome-embedded to add inside the log4j2 jars, one log4j2.xml and some parameters in the Main (baseport for exemple). This is repackaged in

Re: WebServlet match on root

2015-09-03 Thread tonywestonuk
Ok, Yes it does match. something weird is happening Even though my servlet is redirecting to a JSP request.getRequestDispatcher("/profile.jsp").forward(request, response); I still get the error in the console WARNING: No root resource matching request path /Smashstock/

Re: TomEE embedded classloader behhaviours

2015-09-03 Thread Romain Manni-Bucau
Hi Yann, maven plugin deploys the classpath and src/main/webapp as a webapp where a uber jar deploys a jar so few differences can happen. What I dont get is how it uses target\-webapp-2.0.0-SNAPSHOT\WEB-INF. I would have expected target\classes instead. Can it be a difference on

Re: TomEE embedded classloader behhaviours

2015-09-03 Thread Yann Blazart
No. this is how I launch everything : java -jar target\my-server-2.0.0-SNAPSHOT-uber.jar --baseport=28000 --path=target\xxx-webapp-2.0.0-SNAPSHOT.war --context=/fmi --directory=target\ workdir my-server is a tomee-embedded with an extends Main (some options more like baseport) It's not a "big"

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
I dropped a visualvm heapdump here: https://www.tonyweston.co.uk/FriendlyStock/gifts/heapdump.hprof.zip I see 9 instances of the LazyStopWebAppClassLoader - they are attached to the http-8080 acceptor thread.(I

Re: Permgen issue?

2015-09-03 Thread Romain Manni-Bucau
Hmm wonder if it cant be linked to your @Async task running while eclipse redeploys which would be understandable. Do you think you can check it quickly? Romain Manni-Bucau @rmannibucau | Blog | Github

Re: AnnotationFinder failed - where to start?

2015-09-03 Thread cfnz
Thanks for that. I updated the openejb-core dependancy to 7.0.0-SNAPSHOT, but then got a "Missing artifact org.apache.openwebbeans:openwebbeans-ee-common:jar:1.6.0-SNAPSHOT" error. (The openejb-core dependancy version of 5.0.0-SNAPSHOT was from the examples pages.) I am using the Apache Snapshot

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
Yeh, I noticed that. However I don't do anything 'illegal' in the async task. and even when I get rid of the @async annotation, it still doesn't GC on redeploys. I also tried a very simple tomee project with a simple async task that just printed 'helloworld' to the console this did GC

Re: AnnotationFinder failed - where to start?

2015-09-03 Thread Romain Manni-Bucau
Hi the cause is logged normally few side notes: - no problem using lombok - openejb-core snapshot is 7.0.0-SNAPSHOT Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn

Re: Permgen issue?

2015-09-03 Thread Romain Manni-Bucau
2015-09-03 10:27 GMT+02:00 tonywestonuk : > Yeh, I noticed that. However I don't do anything 'illegal' in the async > task. and even when I get rid of the @async annotation, it still > doesn't GC on redeploys. > > sure but if the thread olds the task during the

Re: Permgen issue?

2015-09-03 Thread tonywestonuk
Ok I think I have a couple of places where this memory could be leaking. When I remove the async, this no longer appears in the heap dump. I dont have a @PreDestroy, but I wouldn't know what to put in that method anyhow. All I want is for my async method to run outside the main HTTPRequest

Re: Using JMS with Resource annotation

2015-09-03 Thread msdocware
>> Now it works in Tomcat. I still need to test Websphere deployment What I did doesn't work in Websphere. When I had the resource-ref entries in web.xml, Websphere during deployment recognized them and offered to map them to the available resources. My understanding was that this would work also

Re: Permgen issue?

2015-09-03 Thread Romain Manni-Bucau
maybe try with johnzon or jackson as provider to check the behavior is the same. Clearly johnzon doesnt keep any reference. About your async: the task is under you control (means the container will not kill it if it is not done) so you need to cancel it if it is running while the app is

Re: Using JMS with Resource annotation

2015-09-03 Thread Romain Manni-Bucau
2015-09-03 8:53 GMT+02:00 msdocware : > >> Now it works in Tomcat. I still need to test Websphere deployment > > What I did doesn't work in Websphere. When I had the resource-ref entries > in > web.xml, Websphere during deployment recognized them and offered to map > them > to

Re: JCS and JCache

2015-09-03 Thread sgjava
OK, I think I've figured this out for myself :) Ehcache needs: org.jsr107.ri cache-annotations-ri-cdi 1.0.0 org.ehcache jcache 1.0.1 JCS needs: javax.cache

RE: ApplicationComposer and CDI jars.

2015-09-03 Thread Yann BLAZART
Thanks ! I forgot this !!! I had to pay you a beer as soon as possible ;) -Original Message- From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] Sent: jeudi 3 septembre 2015 14:42 To: users@tomee.apache.org Subject: Re: ApplicationComposer and CDI jars. Hi Yann,

ApplicationComposer and CDI jars.

2015-09-03 Thread Yann BLAZART
Hello list. I'm currently use ApplicationComposer to make my advanced 'unit' tests. But now I'm facing to a problem : I'm trying to make some test in a project when I use Vaadin-CDI. In this one I'm making a test for one RestService @Module @Classes( cdi = true, value = {

Re: ApplicationComposer and CDI jars.

2015-09-03 Thread Romain Manni-Bucau
Hi Yann, @Jars("deltapike")? Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber 2015-09-03 14:41