Re: EJB Timeout Exception

2013-05-09 Thread James Green
You are right. That is subtle. defaultTransactionTimeout = 20 minutes -- no error defaultTransactionTimeoutSeconds = 1200 -- no error Wonder which takes precedent given both..? On 8 May 2013 18:54, Romain Manni-Bucau rmannibu...@gmail.com wrote: that's not a bug you used the wrong

Re: EJB Timeout Exception

2013-05-09 Thread Romain Manni-Bucau
Hash relative so not deterministic Le 9 mai 2013 11:18, James Green james.mk.gr...@gmail.com a écrit : You are right. That is subtle. defaultTransactionTimeout = 20 minutes -- no error defaultTransactionTimeoutSeconds = 1200 -- no error Wonder which takes precedent given both..? On 8

Adding dynamically DataSources to an application

2013-05-09 Thread lazarkirchev
Hello, Is it possible in Tomee to add dynamically a datasource for a running application without redeploy/restart of the application? Thanks, Lazar -- View this message in context: http://openejb.979440.n4.nabble.com/Adding-dynamically-DataSources-to-an-application-tp4662739.html Sent from

Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Chris.Christo
Hi, I'm trying to startup an OpenEJB server with JAX-RS enabled. I've got a rest class (@Path + @Singleton) but when I curl at it I get no response. My system.properties are as follows: java.util.logging.manager = java.util.logging.LogManager openejb.system.apps = true

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Romain Manni-Bucau
Hi What does mean openejb here? - openejb standalone? - openejb in a custom main() Do you have openejb-cxf-rs in the classpath? Le 9 mai 2013 14:22, Chris.Christo chris.chri...@mail.com a écrit : Hi, I'm trying to startup an OpenEJB server with JAX-RS enabled. I've got a rest class

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Chris.Christo
I'm using a build of the assembly/openejb-standalone (the one that creates an apache-openejb-4.6.0-SNAPSHOT.tar.gz). Then I unzip and dump my app in apps/ and my system.properties in conf/ No custom main() or anything like that. On 9 May 2013, at 13:27, Romain Manni-Bucau

webservice-security / basic auth

2013-05-09 Thread Louis
Hi, While trying to secure an existing project's @Webservice on 1.5.2, I emulated the example http://tomee.apache.org/examples-trunk/webservice-security/README.html . Unfortunately, I was not ever able to successfully authenticate. I then downloaded/built the example calculator project from

Re: webservice-security / basic auth

2013-05-09 Thread Romain Manni-Bucau
Hi, jar are not deployed as webapps so not sure you can apply this security. You can either use JAAS or package the sample as a war. *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Romain Manni-Bucau
openejb-rest and openejb-cxf-rs are missing in the distro to support rest services *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: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Romain Manni-Bucau
PS: it will only work for .jar or .ear without any war IIRC. *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: webservice-security / basic auth

2013-05-09 Thread Louis
Okay, thank you. So I read through http://openejb.apache.org/deployments.html and created apps directory (noted by Deployments dir=apps/ / within my tomee.xml). I deployed the webservice-security-1.1.0-SNAPSHOT.jar and noted it was deployed within the logs (like before) there but I still

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Chris.Christo
Yeah Romain, I see there is no 'openejb-cxf-rs.jar' within the lib folder. I'm confused then, there are all these cxf-* jars plus a couple of openejb-cxf* jars in the lib folder of this OpenEJB standalone. I'm wondering what purpose they serve. Basically I want the OpenEJB server that matches

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Romain Manni-Bucau
should be trunk openejb-standalone now (not sure it was an error of packaging or we thought of custom main when we did the table to be honest) wars work too now :) and some light features of servlets works too (don't expect the whole set of servlet features btw) *Romain Manni-Bucau* *Twitter:

Re: webservice-security / basic auth

2013-05-09 Thread Romain Manni-Bucau
you can but not with tomcat-users.xml in the sample user/groups are in https://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/webservice-security/src/test/resources/ it uses JAAS but this is not linked to tomcat since you are not deployed in a tomcat webapp *Romain Manni-Bucau* *Twitter:

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Romain Manni-Bucau
does the agent exist? how did you get the new build? if you rebuilt it yourself retry cleaning target folders before (mvn clean) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Chris.Christo
Yeah I mvn clean install'd it myself. The javaagent in the lib folder is coming up as openejb-javaagent-4.6.0-20130509.040703-72.jar Obviously there is a mismatch of versions for the javaagent?? On 9 May 2013, at 16:16, Romain Manni-Bucau rmannibu...@gmail.com wrote: does the agent exist?

Re: webservice-security / basic auth

2013-05-09 Thread Louis
Okay, I guess that makes sense. I read through this http://tomee.apache.org/tomee-and-security.html and keyed on the following: Rather than providing its own security implementation, TomEE makes full use of the security features that are part of Tomcat. Any Catalina realm is supported or

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Romain Manni-Bucau
so build it yourself too ;) mvn clean install -pl assembly/openejb-standalone -am -Dmaven.test.skip=true should be fine i think or just mvn clean install in container/openejb-javaagent *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: Enabling JAX-RS with OpenEJB standalone

2013-05-09 Thread Chris.Christo
Yes! it works! Rest also running now and sending back sexy responses. support 2nd to none as always. Take a bow. Thanks a lot Romain! On 9 May 2013, at 16:22, Romain Manni-Bucau rmannibu...@gmail.com wrote: so build it yourself too ;) mvn clean install -pl assembly/openejb-standalone -am

Re: JAXB: Not scanning jars?

2013-05-09 Thread Romain Manni-Bucau
Hi, Depends the context. Do you use ObjectFactory or jaxb.index? Le 9 mai 2013 21:47, James Green james.mk.gr...@gmail.com a écrit : Is there anything special I need to do in order to ensure @XmlRootElement annotated classes in a jar included as a dependency of a deployed war file get

Bean Validation in TomEE

2013-05-09 Thread David Salter
Hi, I've just been reading the details about Bean Validation at http://tomee.apache.org/examples-trunk/bean-validation-design-by-contract/README.html This page says that to use Bean Validation, you need to add the BeanValidationAppendixInterceptor by editing the conf/system.properties file

Re: JAXB: Not scanning jars?

2013-05-09 Thread James Green
Neither. JAX-RS/JAX-WS expose our classes. On 9 May 2013 20:50, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi, Depends the context. Do you use ObjectFactory or jaxb.index? Le 9 mai 2013 21:47, James Green james.mk.gr...@gmail.com a écrit : Is there anything special I need to do

Re: Bean Validation in TomEE

2013-05-09 Thread Romain Manni-Bucau
Hi the page is right bean validation = method validation for you? *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: Bean Validation in TomEE

2013-05-09 Thread David Salter
Thanks. I think I was having a moment ;) On 9 May 2013, at 21:36, Romain Manni-Bucau rmannibu...@gmail.com wrote: yep that's why the sample is called 'design by contract' ;) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Location of jar bean so it's seen by CDI

2013-05-09 Thread Caroline
Hi, I have a Maven Java EE webapp Injecting some Instances of a certain interface, and a regular Maven Java project with some implementations of this interface. This last project I am building into a .jar. I want my CDI enabled webapp to look through the .jar for implementations of said

Re: Location of jar bean so it's seen by CDI

2013-05-09 Thread Romain Manni-Bucau
Hi Cdi context exists by app so basically no but you can use (on trunk) the virtual webapp loader of tomcat to do so (or our new jars.txt) Le 10 mai 2013 02:32, Caroline caroline.van.den.ha...@gmail.com a écrit : Hi, I have a Maven Java EE webapp Injecting some Instances of a certain