Re: maven tomee plugin and remote deploy

2013-04-02 Thread og0815
Hi, Mvn works with remote repo too and custom repo can be in the url (see aether). What's aether ? DeployerEjb doesnt handle remote deployment passing url (remote deployment is used in tomee for cluster deployment). Could be done but not the original goal of deploy goal. Ok, i might look

Re: maven tomee plugin and remote deploy

2013-04-02 Thread Romain Manni-Bucau
i was looking to it since i already have the code about aether that's the lib we use to get mvn dependencies. Here is the pattern used: mvn:[repository_url!]groupId/artifactId[/[version]/[type]] *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread ZhongGuan
I try to add a CDI interceptor on JAX-RS EndPoint, but it does not work. I deploy it in glassfish, and it is OK. I have tried to add org.apache.openejb.default.system.interceptors = xxx.xx.XxxInterceptor in system.proterties. It does not work. so what should I do? Thanks. -- View this

Re: maven tomee plugin and remote deploy

2013-04-02 Thread Romain Manni-Bucau
FYI https://issues.apache.org/jira/browse/TOMEE-880 *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: maven tomee plugin and remote deploy

2013-04-02 Thread James Green
This leads nicely into something I'm about to approach. We have a few maven based projects. I'd like to avoid having to manually deploy the build artifacts onto the respective QA VMs and perform the QA'ing of the components together. Sounds nicer to build a maven project that depends on each

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread Romain Manni-Bucau
Hi, just tested on trunk and it works, maybe give it a try with the last version (1.6.0-SNAPSHOT for instance) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: maven tomee plugin and remote deploy

2013-04-02 Thread Romain Manni-Bucau
well, depends a lot on the enterprise and its workflow. About tests arquillian can already do a lot (multiple containers, multiple archives...) About deployment, deploying from jenkins through mvn seems quite common today but using just a jenkins hook to do so is maybe easier and more portable

Re: maven tomee plugin and remote deploy

2013-04-02 Thread James Green
By jenkins hook are you referring to it polling the version control repo for changes? If so we have that :) If not there's something I clearly need to read. I have arquillian being used for integration tests against server at the mo. Quite what is common usage isn't clearly documented yet. On

maximum open cursors exceeded in entity bean

2013-04-02 Thread BKumar
Hi, We have recently migrated to tomee+ 1.5.1 from Jboss. Until now everything was working good. But when we are running large processes it is throwing error maximum open cursors exceeded. We have around 60 entity beans(CMP) .Also, We are not manually opening or closing any connection

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread Romain Manni-Bucau
Hi, maybe try to add in the resource properties: DataSourceCreator = dbcp *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: maximum open cursors exceeded in entity bean

2013-04-02 Thread John D. Ament
In this database (e.g. according to DBA), what is the max # of cursors set to? On Tue, Apr 2, 2013 at 7:01 AM, BKumar bibhuti.ku...@creditpointe.comwrote: Hi, We have recently migrated to tomee+ 1.5.1 from Jboss. Until now everything was working good. But when we are running large

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread BKumar
In database cursor size is set to 1000 -- View this message in context: http://openejb.979440.n4.nabble.com/maximum-open-cursors-exceeded-in-entity-bean-tp4661896p4661899.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread ZhongGuan
WebProtoType2.zip http://openejb.979440.n4.nabble.com/file/n4661900/WebProtoType2.zip Hi, I test again, Yes, in a regular case , it works . but when I change the endpoint service into Generic Class. the interceptor does not work. I can not describe it clearly. so I have uploaded the java

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread BKumar
In tomee.xml I have set resource as below.But still no luck. Is any other property I am missing here? Which will stop holding cursor by the container. Resource id=RageDataSource type=DataSource JdbcDriver oracle.jdbc.driver.OracleDriver JdbcUrl jdbc:oracle:thin:@ID:5584:PLTDEV

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread John D. Ament
Agreed w/ Jean-Louis. Usually we do 10x the max open statements to get the max open cursors to configure the DB with. Plus x the number of app servers. On Tue, Apr 2, 2013 at 7:59 AM, Jean-Louis MONTEIRO jeano...@gmail.comwrote: Well, usually, it comes from the ratio pooledPreparedStatements

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread BKumar
Can anyone tell me what is the use of properties PoolPreparedStatements and maxOpenPreparedStatements? I don't see any effect of these resource property on cursor size. When I run on Tomee active cursor count keep on increasing and come down when process end. When I make my process

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread John D. Ament
Cursors are related to the max # of open ResultSets you have. On Tue, Apr 2, 2013 at 8:48 AM, BKumar bibhuti.ku...@creditpointe.comwrote: Can anyone tell me what is the use of properties PoolPreparedStatements and maxOpenPreparedStatements? I don't see any effect of these resource

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread ZhongGuan
PS: your jaxb issue is fixed on trunk https://issues.apache.org/jira/browse/TOMEE-881 that's great , Thank you. -- View this message in context: http://openejb.979440.n4.nabble.com/JAX-RS-with-CDI-interceptor-IN-Tomee-tp4661885p4661914.html Sent from the OpenEJB User mailing list archive at

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread Romain Manni-Bucau
not exactly, OpenWebBeans cache the info but basically here it compares T T foo(Bar bar) between your abstract class and your impl. because of T the child and the parent doesn't return the same class so both method are not equal. *Romain Manni-Bucau* *Twitter: @rmannibucau

Re: tomee.xml container properties

2013-04-02 Thread Romain Manni-Bucau
did you check http://tomee.apache.org/containers-and-resources.html ? *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: tomee.xml container properties

2013-04-02 Thread ymaraner
Romain Manni-Bucau wrote did you check http://tomee.apache.org/containers-and-resources.html ? Actually I forgot about that page. I have been there, but I wasn't sure that it was current or complete. It seems like there would be many more options to set than are shown on that page. - -

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread ZhongGuan
Thanks for the advice. I can put the that annotation to the Class. And add other services to deal with the method with other interceptors. any other suggestion? -- View this message in context: http://openejb.979440.n4.nabble.com/JAX-RS-with-CDI-interceptor-IN-Tomee-tp4661885p4661920.html

ConversationContext NoClassDefFoundError

2013-04-02 Thread Giuliano
Hi, i´m trying test JSF2(Primefaces + CODI) + EJB3.1 app on TomEE but get bellow error: by: java.lang.NoClassDefFoundError: Lorg/jboss/weld/context/ConversationContext; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2308) at

RE: JNDI lookup

2013-04-02 Thread Patel, Sanjay
Thanks a lot. This worked. -Original Message- From: John D. Ament [mailto:john.d.am...@gmail.com] Sent: Monday, April 01, 2013 8:31 AM To: users@tomee.apache.org Subject: Re: JNDI lookup It's a child to web-app in your web.xml http://java.sun.com/xml/ns/javaee/web-common_3_0.xsd

Re: ConversationContext NoClassDefFoundError

2013-04-02 Thread Romain Manni-Bucau
Hi You imported weld somehow or asked it (web.xml?) Just get rid of it Le 2 avr. 2013 19:29, Giuliano giulianoco...@gmail.com a écrit : Hi, i´m trying test JSF2(Primefaces + CODI) + EJB3.1 app on TomEE but get bellow error: by: java.lang.NoClassDefFoundError:

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread Romain Manni-Bucau
Use a single signature? Le 2 avr. 2013 19:13, ZhongGuan guanzh.em...@gmail.com a écrit : Thanks for the advice. I can put the that annotation to the Class. And add other services to deal with the method with other interceptors. any other suggestion? -- View this message in context:

Re: ConversationContext NoClassDefFoundError

2013-04-02 Thread Giuliano
Hello, No. Just trying same war used on Glassfish 3.1.1.2. But on glassfish works fine... :| TomEE 1.5.1 -- View this message in context: http://openejb.979440.n4.nabble.com/ConversationContext-NoClassDefFoundError-tp4661921p4661925.html Sent from the OpenEJB User mailing list archive at

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread ZhongGuan
umm.. I am going to consider it , maybe re-desgin my source. thanks a lot. -- View this message in context: http://openejb.979440.n4.nabble.com/JAX-RS-with-CDI-interceptor-IN-Tomee-tp4661885p4661928.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-02 Thread Romain Manni-Bucau
Well pby fix it in OWB if not already done on trunk but tomee cant use OWB trunk (we use a maintainance branch) Le 2 avr. 2013 20:49, ZhongGuan guanzh.em...@gmail.com a écrit : umm.. I am going to consider it , maybe re-desgin my source. thanks a lot. -- View this message in context:

Re: ConversationContext NoClassDefFoundError

2013-04-02 Thread Giuliano
Yes! I had direct reference on this... But now throw other exception. See bellow: SEVERE: The bean instance business method encountered a system exception: The transaction has been marked rollback only because the bean encountered a non-appli cation exception :java.lang.LinkageError : loader

Re: ConversationContext NoClassDefFoundError

2013-04-02 Thread Romain Manni-Bucau
Dont provide slf4j-api without binding in your app. If you provided a binding too use tomee snapshot (1.6.0-SNAPSHOT) or remove slf4j* Le 2 avr. 2013 20:57, Giuliano giulianoco...@gmail.com a écrit : Yes! I had direct reference on this... But now throw other exception. See bellow: SEVERE:

Re: Configuring TomEE during build process

2013-04-02 Thread CodeMonkey
Hey Romain, Sorry for the late post, I went away on vacation. I was able to get the 'tomee-maven-plugin' to work. I was missing the following line in my configuration block of the plugin: config${project.basedir}/src/main/tomee/conf/config At one point I think I tried this but the directory