Re: EAR IN TOMEE

2012-12-10 Thread Romain Manni-Bucau
Wait, your wars are not in the ear? Le 11 déc. 2012 02:35, "José Luis Cetina" a écrit : > Anybody use ear + war files? > El dic 10, 2012 3:12 PM, "José Luis Cetina" > escribió: > > > What i need is this: > > > > EJB in EAR > > WEBAPP1 IN WAR > > WEBAPP2 IN WAR > > > > All of this in the same JVM

Re: DB access is very slow

2012-12-10 Thread Romain Manni-Bucau
What's your db config? Did you activate statement cache? Please check through jmx (jdbcinterceptors attribute, the datasource should be in openejb mbeans) Le 11 déc. 2012 02:59, "knak55" a écrit : > Thank you for your reply, Romain. > > I use eclipselink for Glassfish and OpenJPA for TomEE. > Tho

Re: WebappClassLoader checkThreadLocalMapForLeaks finding leaks related to Google Apps API

2012-12-10 Thread Romain Manni-Bucau
Yes, some cleanup is not done...but that's not exceptions ;) Le 11 déc. 2012 06:01, "Howard W. Smith, Jr." a écrit : > Please see exceptions below that usually occur when I shutdown TomEE (to > deploy/drop a new WAR file). I am already using @PreDestroy on CDI > @ApplicationScoped beanto stop oth

Re: TomEE: StandardSession expire

2012-12-10 Thread Romain Manni-Bucau
Think the session scoped bean (controller) is destroyed before the listener is called. So it depends why you need the controller in the listener. Replacing it by a not session scoped bean will work. Btw we need to have a look to it. Can you raise a jira please? Le 11 déc. 2012 06:03, "Howard W. S

Re: under maven-tomee plugin configuration when running tomee:deploy

2012-12-10 Thread robertlee
here is how i built successfully with default maven package instruction: mvn package mvn tomee:deploy with following plugin configured: I needed the plugin to source the war file automatically, this would ensures the portability of our project. Hope this helps. -- View this message in contex

Re: DB access is very slow

2012-12-10 Thread knak55
Thank you for your reply, Romain. I use eclipselink for Glassfish and OpenJPA for TomEE. Though I tried to change the application to use the Built Time Enhancement for the OpenJPA on TomEE, it does not seem to change much in terms of the performance. I am not familiar with the Enhancement featur

Share and say thank you!

2012-12-10 Thread David Blevins
If you love and use TomEE and want good things to come to it, share your experience! We've created a new Google+ Community for TomEE here: https://plus.google.com/communities/105208241852045684449 There's a "User Stories" section where anyone can post. Take 5 minutes and say how TomEE has h

Re: EAR IN TOMEE

2012-12-10 Thread José Luis Cetina
Anybody use ear + war files? El dic 10, 2012 3:12 PM, "José Luis Cetina" escribió: > What i need is this: > > EJB in EAR > WEBAPP1 IN WAR > WEBAPP2 IN WAR > > All of this in the same JVM in the same server. > > I want to inject my EJB's (that are in EAR file) inside of managed bean in > webapp1 a

Re: EAR IN TOMEE

2012-12-10 Thread José Luis Cetina
What i need is this: EJB in EAR WEBAPP1 IN WAR WEBAPP2 IN WAR All of this in the same JVM in the same server. I want to inject my EJB's (that are in EAR file) inside of managed bean in webapp1 and webapp2. This because i want to reuse my Business Layer in my 2 webapps. How can i do this in TomEE

Re: EAR IN TOMEE

2012-12-10 Thread José Luis Cetina
Why i get NoClassDefFounError?? Apparently my managedbean try to lookup EJBTest class inside of the war but how can i indicate that this class in the ear file? 2012/12/10 José Luis Cetina > Sorry i can see i copy/paste a filter in web.xml > > This line has to be removed: > > > PrimeFac

Re: EAR IN TOMEE

2012-12-10 Thread José Luis Cetina
Sorry i can see i copy/paste a filter in web.xml This line has to be removed: PrimeFaces FileUpload Filter Faces Servlet 2012/12/10 José Luis Cetina > Sorry i mean, the ear its deploying WITHOUT ANY problem, but the webapp > CANT find my EJB class > > > 2012/12/10 José L

Re: EAR IN TOMEE

2012-12-10 Thread José Luis Cetina
Sorry i mean, the ear its deploying WITHOUT ANY problem, but the webapp CANT find my EJB class 2012/12/10 José Luis Cetina > Here it is an example: > > http://www.sendspace.com/file/wfnwii > > The zip contains an ear maven project and webapp maven project. > > I copy the ear to apps folder now

Re: EAR IN TOMEE

2012-12-10 Thread José Luis Cetina
Here it is an example: http://www.sendspace.com/file/wfnwii The zip contains an ear maven project and webapp maven project. I copy the ear to apps folder now i can see that the ear its deploying with problems, now my webapp CANT find the EJB class. 2012/12/10 Romain Manni-Bucau > Hi, > > can

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Howard W. Smith, Jr.
lol... okay, that elipselink discussion says it's an eclipselink bug, but this error has not been occurring when my app was running in Glassfish3.1.2.2, so I'm thinking that I need to review the TomEE/CDI code. It seems like it is caused by my code that introduces the query hint 'readonly' (query

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Romain Manni-Bucau
lol no, meant i did a bad copy/paste Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/10 Howard W. Smith, Jr. : > throw new CtrlCException() ??? are you telling me to t

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Howard W. Smith, Jr.
throw new CtrlCException() ??? are you telling me to throw my own exception when that occurs? funny. :) On Mon, Dec 10, 2012 at 10:07 AM, Romain Manni-Bucau wrote: > hmm right, throw new CtrlCException() ;) > > > http://eclipse.1072660.n5.nabble.com/QueryBasedValueHolder-cannot-be-cast-to-UnitOf

Re: EAR IN TOMEE

2012-12-10 Thread Romain Manni-Bucau
Hi, can you share the project please? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/10 José Luis Cetina : > I cant get my EJB injected. > > 1. I drop an ear in apps

Re: EAR IN TOMEE

2012-12-10 Thread José Luis Cetina
I cant get my EJB injected. 1. I drop an ear in apps folder 2. Deploy my webapp in webapps folder 3. Try to use @EJB in my webapp I always get this error: WARNING: Injection data not found in JNDI context: jndiName='comp/env/com.grupokx.mailing.controlador.inicio.LoginWebMBean/local', target=com

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Romain Manni-Bucau
hmm right, throw new CtrlCException() ;) http://eclipse.1072660.n5.nabble.com/QueryBasedValueHolder-cannot-be-cast-to-UnitOfWorkValueHolder-td4745.html Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https:/

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Howard W. Smith, Jr.
Sorry, that's not the same exception. I'm searching google too. So far, I see the following: http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg02406.html I know that I am using eclipselink query hint 'readonly' to improve the performance of DB access via TomEE, but if I'm not mistaking, w

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Romain Manni-Bucau
Hi, seems that's a bug of eclipselinks (think it is referenced) -> https://bugs.eclipse.org/bugs/show_bug.cgi?id=325916 Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/1

RE: TOMEE web service deployment failure.

2012-12-10 Thread Robert Coublanc
Hi again, with some help of a teammate, I succeeded to push my sample to GitHub . Meanwhile, comparing with your sample, I just found that I had written @WebService() rather thant @WebService . Removing this parenthesis makes mySample deploy well in TOMEE … I’m going to test with my real WebSer

Re: tomee gradle plugin

2012-12-10 Thread Andy Van Den Heuvel
works correctly on my pc too with 1.5.1-SNAPSHOT. Thanks! On Mon, Dec 10, 2012 at 12:16 PM, Romain Manni-Bucau wrote: > ok, updated to 1.5.1-SNAPSHOT (vote ready to be pushed normally for the > 1.5.1) > > and i got > > ┌( rmannibucau @ ubuntu )─( 1.6.0_30 -:- 3.1.0 ) > └( /tmp/jsf-demo )·> gradl

Re: tomee gradle plugin

2012-12-10 Thread Romain Manni-Bucau
ok, updated to 1.5.1-SNAPSHOT (vote ready to be pushed normally for the 1.5.1) and i got ┌( rmannibucau @ ubuntu )─( 1.6.0_30 -:- 3.1.0 ) └( /tmp/jsf-demo )·> gradle tomee :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :war :tomeeRunWar Starting TomEE from: /tmp/jsf-demo

Re: tomee gradle plugin

2012-12-10 Thread Andy Van Den Heuvel
They are at https://github.com/tashlin/gradle-plugins/tree/master/tomee. Execute 'gradle install' from the command line to install it in your local maven repo. >From reading the code in OpenEJBLifecycle, it looks idd a classpath problem. Could it perhaps have something to do with the servlet-api?

Re: TOMEE web service deployment failure.

2012-12-10 Thread Romain Manni-Bucau
would be perfect if you can commit the project (to let us browse the code online) -> should appear here https://github.com/RobertCoublanc/JAXWSSampleService btw, can you check your conf compare to the example i gave previously please? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibu

under maven-tomee plugin configuration when running tomee:deploy

2012-12-10 Thread robertlee
Dear all,I have been trying to run tomee:deploy with no success, the major problem lies within the following configuration element:the tomee plugin would return a build fail initially, creating a C:\RestSimpleDemo.unpacked folder (???) If I manually deploy the war file to tomcat's webapps container

RE: TOMEE web service deployment failure.

2012-12-10 Thread Robert Coublanc
Yes, there are 2 "download" items ( I'm new to github too :), so I perharps did the wrong way?) Cordialement / Best Regards, Robert COUBLANC Robert COUBLANC R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager Office: +33 1 6162 8541 robert.coubl...@3ds.c

Re: TOMEE web service deployment failure.

2012-12-10 Thread Romain Manni-Bucau
you pushed? i only see the readme BTW @WebService public interface I { String foo(); } @WebService public class WS implements I { public String foo() { return "ok"; } } with the following web.xml: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2

Re: TOMEE web service deployment failure.

2012-12-10 Thread Robert Coublanc
hi again. I shared a github project, under RobertCoublanc / JAXWSSampleService I uploaded the directory structure exported from my eclipse, with the 2 java files, and the web.xml, and the war file generated from this hierarchy. Thanks again for your help. Regards Robert -- View this message i

Re: TOMEE web service deployment failure.

2012-12-10 Thread Romain Manni-Bucau
Is it possible for you to share your project (on github or anything else)? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/10 Robert Coublanc : > No, I just created th

RE: TOMEE web service deployment failure.

2012-12-10 Thread Robert Coublanc
No, I just created the war with the Calculator WebService simple class, and the web.xml with the webservice “servlet” definition. Then, I copied the war in TOMEE+, under webapps, that’s all.. I’m just new to TOMEE and jax-ws webservices deployment, we were used to deploy our apps with our own

Re: TOMEE web service deployment failure.

2012-12-10 Thread Robert Coublanc
Hello. Indeed, it's a pojo, with only @webservice annotations inside. And I did not add the servlet tags into the web.xml. I have now another error message, after the ... declaration : CalculatorService ws.sample.Calculator Calculato

Re: tomee gradle plugin

2012-12-10 Thread Romain Manni-Bucau
where are the sources or snapshot repo for org.tashlin.gradle.plugins:tomee:0.0.1-SNAPSHOT ? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/10 Andy Van Den Heuvel :

Re: org.apache.tomee.embedded.Container does not release sockets

2012-12-10 Thread Romain Manni-Bucau
FYI https://issues.apache.org/jira/browse/TOMEE-643 Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/10 Romain Manni-Bucau : > Hi, > > think i know the issue. > > Will

Re: org.apache.tomee.embedded.Container does not release sockets

2012-12-10 Thread Romain Manni-Bucau
Hi, think i know the issue. Will try to commit the fix as soon as i found back the jira buttons ;) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/9 Harald Wellmann