Re: TomEE 1.5.1-SNAPSHOT: strange JPA behavior

2013-01-10 Thread diuis
Hi Romain, Hi all, finally I wrote a little sample to reproduce the strange JPA behavior. Please, download it from github: git clone https://github.com/diuis/test-jpa-tx.git change directory: cd test-jpa-tx/ and run TomEE 1.5.1: mvn package tomee:run I wrote a simple REST service; you could

Re: TomEE and catalina_base / catalina_home variables

2012-11-14 Thread diuis
Hi to all, the TomEE 1.5.1 today snapshot works! Demis Gallisto -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-and-catalina-base-catalina-home-variables-tp4658062p4658585.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE and catalina_base / catalina_home variables

2012-11-13 Thread diuis
Hi Romain, great! thank you for the support, Demis Gallisto -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-and-catalina-base-catalina-home-variables-tp4658062p4658560.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE and catalina_base / catalina_home variables

2012-11-13 Thread diuis
Hi Romain, I created the temp dir, and I setted the CATALINA_TMPDIR env variable with the setenv.sh file. There is my setenv.sh file: #!/bin/bash echo "---> setenv.sh start <---" CATALINA_BASE="/opt/develop/workspace/bravofly-eclipse/bravofly-scheduler-2.0-tomee" export CATALINA_BASE echo CATAL

Re: TomEE and catalina_base / catalina_home variables

2012-11-12 Thread diuis
Hello to all. Same problem with the today snapshot. Demis Gallisto -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-and-catalina-base-catalina-home-variables-tp4658062p4658534.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE 1.5.1-SNAPSHOT: strange JPA behavior

2012-11-12 Thread diuis
I can try. Thank you, Demis Gallisto -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-5-1-SNAPSHOT-strange-JPA-behavior-tp4658500p4658533.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE 1.5.1-SNAPSHOT: cxf class not found

2012-11-12 Thread diuis
Hi Romain, maybe it's my fault. I checked my java sources, and my rest client depends (maven provided dependency) on cxf-rt-frontend-jaxrs 2.6.1. I need to update CXF to release 2.7 and to replace the missing ServerWebApplicationException class with the standard javax.ws.rs.ServerErrorException JAX

Re: TomEE 1.5.1-SNAPSHOT: strange JPA behavior

2012-11-12 Thread diuis
Hi Romain, yes, there are the 'adujsting persistence unit' lines in the log. INFO: Auto-linking resource-ref 'jdbc/quartz' in bean bravofly-scheduler-2.0-SNAPSHOT.Comp to Resource(id=jdbc/indexer) Nov 12, 2012 9:44:35 AM org.apache.openejb.config.AutoConfig processResourceRef INFO: Auto-linking re

TomEE 1.5.1-SNAPSHOT: cxf class not found

2012-11-09 Thread diuis
Hi to all, I make a rest call, with cxf rest client api, to an external service. In this moment the external service is not available, and in my web application client there is this error: java.lang.NoClassDefFoundError: org/apache/cxf/jaxrs/client/ServerWebApplicationException at com.brav

TomEE 1.5.1-SNAPSHOT: strange JPA behavior

2012-11-09 Thread diuis
Hi to all. My TomEE JavaEE 6 web application needs two different jpa persistence units: the first uses a H2 stand alone database, the other uses a MySQL database. All seems ok, but when I use the two persistence units (and so the two databases) in the same transaction, I guess that something fails

Re: TomEE 1.5.1-SNAPSHOT and Arquillian: possible problems

2012-11-05 Thread diuis
Hi Romain, thank you for your response. I'm an Arquillian (and Tomee) newbie: how can I disable the Arquillian enricher? I have to modify the maven dependencies? Thank you Demis Gallisto -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-5-1-SNAPSHOT-and-Arquillian

Re: help, how to set openejb.home and openejb.base in tomee?

2012-11-05 Thread diuis
Hi Romain, my problem is that my war doesn't deploy: http://openejb.979440.n4.nabble.com/TomEE-and-catalina-base-catalina-home-variables-td4658062.html. Tomorrow I will try with the latest snapshot ;) Thank you Demis Gallisto -- View this message in context: http://openejb.979440.n4.na

Re: TomEE 1.5.1-SNAPSHOT and Arquillian: possible problems

2012-11-05 Thread diuis
Hi Romain, thank you for your response. So, I have to post on the Arquillian forum? Thank you, Demis Gallisto -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-5-1-SNAPSHOT-and-Arquillian-possible-problems-tp4658337p4658371.html Sent from the OpenEJB User mailing li

Re: help, how to set openejb.home and openejb.base in tomee?

2012-11-05 Thread diuis
Hi Alex, I'm trying to set the CATALINA_HOME and CATALINA_BASE env variables in TomEE, but without success. As wrote in a post by Jean-Louis, there is not need to set OPENEJB_HOME and OPENEJB_BASE, because openejb gets the same value from the CATALINA variables. Please take a look at this thread

TomEE 1.5.1-SNAPSHOT and Arquillian: possible problems

2012-10-31 Thread diuis
Hello all, I would like to share today's little experience of mine with Arquillian and the last TomEE snapshot release. I wrote a simple bean, which I wanted to inject in my integration test case class. Suppose that my bean, called MyBean, (which implements MyBeanInterface) is annotated whit @Name

Re: TomEE and catalina_base / catalina_home variables

2012-10-29 Thread diuis
Hi Romain, I wrote a very simple app. https://github.com/diuis/test-home-jsf.git This app works on Tomee standalone: mvn package mvn tomee:run http://localhost:8080/test-tomee-jsf-0.0.1-SNAPSHOT/ But, if you use the CATALINA_HOME and the CATALINA_BASE env variables, the deploy will fail

Re: TomEE and catalina_base / catalina_home variables

2012-10-23 Thread diuis
Hi Romain, I tried with TomEE 1.5 and with today 1.5.1 snapshot, but the problem is the same. I used this xml file to configure the war path: The xml file is on the conf/Catalina/localhost directory. Thanks, Demis Gallisto -- View this message in context: http://openejb.979440.n4.nabble.com/

Re: TomEE and catalina_base / catalina_home variables

2012-10-19 Thread diuis
Hi Romain, this is the whole log: 16-Oct-2012 15:07:02.935 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /opt/develop/workspace/bravofly-eclipse/bravofly-scheduler-2.0-tomee/webapps/bravofly-scheduler-2.0-SNAPSHOT.war 16-Oct-2012 1

Re: TomEE and catalina_base / catalina_home variables

2012-10-19 Thread diuis
Hi Romain, thank you for your support, but something doesn't work. When I set the two env variables, TomEE logs this (please see my first post): Caused by: java.lang.NullPointerException at java.io.File.(File.java:251) at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplicat

Re: TomEE and catalina_base / catalina_home variables

2012-10-19 Thread diuis
Hi Jean-Louis, thank you. Do you know if it's possible to deploy multiple instances of TomEE with only one binary distribution? With Tomcat, it's pretty simple: are the CATALINA_HOME and CATALINA_BASE env variables fully supported in TomEE? Thank you, Demis Gallisto -- View this message in co

Re: TomEE and Arquillian

2012-10-19 Thread diuis
Hi Romain, thank you: it works. It's possible to pass a sort of regular expression filter to the conf property? Because Arquillian try to parse the svn client files, and logs this warning: Oct 19, 2012 11:56:29 AM org.apache.openejb.arquillian.common.Setup synchronizeFolder WARNING: skipping /op

Re: TomEE and Arquillian

2012-10-17 Thread diuis
Hi Romain, thank you for your response. I prefer the second choice (the folder containing the logging.properties file configured in arquillian.xml) but I don't' know how to set this configuration. I searched in the sources of tomee arquillian module (TomEEConfiguration.java and RemoteTomEEConfigur

TomEE and Arquillian

2012-10-17 Thread diuis
Hi, I'd like to test my TomEE webapp with Arquillian. I'm using TomEE 1.5 and Arquillian TomEE Remote 1.5, and I have to change log level in JUL. When I deploy my app in the TomEE container I also modify the logging.properties, but how can I change the logging.propeties file during integration test

TomEE and catalina_base / catalina_home variables

2012-10-16 Thread diuis
Hi, I have to deploy multiple instances of TomEE on the same server; with Tomcat it's simple: I set the two environment variables CATALINA_HOME and CATALINA_BASE. I tried to set the same variables, in additions to the OPENEJB_HOME and OPENEJB_BASE variables, in TomEE 1.5, but my webapp (JSF,CDI,EJB

TomEE and the unpacksWar attribute

2012-10-15 Thread diuis
Hi to all.I would deploy a war application in TomEE 1.5 without unpacking the war, in a read only file system. I guess the best way to do this is to set the unpacksWar attribute of the host element in the server.xml file to false, but, when I start TomEE, this is the log:/INFO: Starting service Cat