Using hibernate validator with tomee-embedded

2024-04-16 Thread Gilberto
Normally you need to include some specific package to change the default tomee composition. I did this way, changing JPA and Valdator: [code] org.apache.tomee.maven tomee-embedded-maven-plugin ${tomee-embedded-maven-plugin.version

Using hibernate validator with tomee-embedded

2024-04-08 Thread Egor Duda
Hello! I'm trying to use tomee-embedded for unit testing EJBs and some of those EJBs functions make use of hibernate-specific validators, such as @ISBN. Running ISBNTest from the code below causes jakarta.validation.UnexpectedTypeException: No compliant org.hibernate.validator.constraints

Problems loading Velocity from webapp when running on TomEE embedded version 8.x

2023-09-12 Thread Henrik Wingerei
Hi! We're experiencing a problem when trying to initialize Velocity from our webapp deployed to TomEE embedded version 8.0.15. The error we're getting is: failed to access class org.apache.velocity.runtime.resource.ResourceCacheImpl$LRUMap

Re: Arquillian TomEE Embedded issue

2023-02-10 Thread hantsy bai
If the description of https://tomee.apache.org/tomee-9.0/docs/arquillian-available-adapters.html is updated to date, I think there are several issues about the TomEE embedded adapter. 1. When I trieste to use this adapter in my Jakarta EE 9 starter project, it complains Class NOT Found of JUnit

Arquillian TomEE Embedded issue

2022-11-05 Thread hantsy bai
adapter. I am using Junit 5 Arquillian 1.7.0.Alpha5. arq-tomee-embedded true false org.apache.tomee arquillian-tomee-embedded ${arquillian-tomee.version} test junit junit 4.13.2 test org.apache.tomee tomee-jaxrs ${tomee.version} test org.glassfish.jersey.media jersey-media-json

Re: Set users and roles in arquillian.xml for TomEE embedded

2021-01-21 Thread Cesar Hernandez
pache.org/jira/browse/TOMEE-2961 > The test code runs fine in TomEE Embedded 8.0.0, 8.0.1, 8.0.4 and 8.0.5, so > I guess it would be understandable that no correction will be made in this > case. > > Again, thanks a lot for your effort in this project. > -- > Arturo Martín Lladó

Re: Set users and roles in arquillian.xml for TomEE embedded

2021-01-21 Thread Arturo Martín Lladó
Hi, Cesar: Sorry for the delay, busy week... :) Ticket created: https://issues.apache.org/jira/browse/TOMEE-2961 The test code runs fine in TomEE Embedded 8.0.0, 8.0.1, 8.0.4 and 8.0.5, so I guess it would be understandable that no correction will be made in this case. Again, thanks a lot for

Re: Set users and roles in arquillian.xml for TomEE embedded

2021-01-14 Thread Cesar Hernandez
r some debugging sessions on arquillian-tomee-embedded > and tomee-embedded projects, the syntax in order to specify users and roles > in the arquillian.xml file for TomEE 8 is the following (not -very well?- > documented): > > > user=userpass > admin=adminpass >

Re: Set users and roles in arquillian.xml for TomEE embedded

2021-01-14 Thread Arturo Martín Lladó
Hi again, César: So, after a lot of headaches and testing, I think I have an answer that HIH someone that has the same needs as me. First of all, after some debugging sessions on arquillian-tomee-embedded and tomee-embedded projects, the syntax in order to specify users and roles in the

Re: Set users and roles in arquillian.xml for TomEE embedded

2021-01-03 Thread Cesar Hernandez
service that > invokes as well a role protected EJB. > In order to achieve this goal, I decided to look at the TomEE Arquillian > examples using the arquillian-tomee-embedded Maven artifact. > Long story short: I don't see in any arquillian.xml file of the examples > nothing relat

Set users and roles in arquillian.xml for TomEE embedded

2020-12-31 Thread Arturo Martín Lladó
Hi, list - I've been trying to create a test for a role protected JAX-RS service that invokes as well a role protected EJB. In order to achieve this goal, I decided to look at the TomEE Arquillian examples using the arquillian-tomee-embedded Maven artifact. Long story short: I don't

TomEE embedded

2020-11-04 Thread Felipe Jaekel
Hi, I'm trying to use TomEE embedded as described here: https://tomee.apache.org/advanced/tomee-embedded/index.html My code looks like this: Configuration configuration = new Configuration(); configuration.setConf("src/main/tomee/conf"); try (final Container container

Re: TomEE embedded ActiveMQ + Injected JMSContext -> Abandoned Connections

2019-04-04 Thread Jonathan Gallimore
Thanks for this. I have reproduced your issue. I've opened a JIRA on the TomEE side: https://issues.apache.org/jira/browse/TOMEE-2506, and added the tests to reproduce: https://github.com/apache/tomee/commit/e58ff848a3a80938d4d99fc9bcfeaade5a72d644 I think this is a TomEE issue rather than an Acti

Re: TomEE embedded ActiveMQ + Injected JMSContext -> Abandoned Connections

2019-04-03 Thread Jonathan Gallimore
Sounds like an issue we need to look at on the TomEE side (adding users@tomee.apache.org) What are you injecting into - an EJB or CDI bean? Your code shows a consumer - how are you sending your messages? Jon On Wed, 3 Apr 2019, 19:43 tkspradley, wrote: > First posting here. Please let me know

Re: Arquillian Persistence using TomEE embedded not working on latest version

2019-02-28 Thread sudhakarvm
I am not able to perform data seeding useng @UsingDataSet, it is looking for the specified yaml file but it is never parsed and never data is inserted into db. I have the schema created as part of test case. What I may be doing wrong. Thanks in advance Sudhakar -- Sent from: http://tomee-openej

Re: Arquillian Persistence using TomEE embedded not working on latest version

2019-02-28 Thread sudhakarvm
It does work with latest arquillian openejb embedded container, can it work with embedded tomee. -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Arquillian Persistence using TomEE embedded not working on latest version

2019-02-26 Thread sudhakarvm
Arquillian persistence does not work in embedded adapter but came across this workaround solution https://github.com/rmannibucau/persistence-with-openejb-and-arquillian . It is based on arquillian-openejb-embedded-4 (4.6.0.1), when I try to replace openejb with latest arquillian-tomee-embedded

Re: Arquillian TomEE embedded on Java 10

2018-11-22 Thread Romain Manni-Bucau
o.com] > Sent: jeudi 22 novembre 2018 10:06 > To: users@tomee.apache.org > Subject: Arquillian TomEE embedded on Java 10 > > I'm using Java jdk 10 TomEE 7.1(also embedded), johnzon 1.0.0(also tried > with > 1.0.1) . > When running test case which is using Arqu

RE: Arquillian TomEE embedded on Java 10

2018-11-22 Thread COURTAULT Francois
--Original Message- From: vranac [mailto:kon...@yahoo.com] Sent: jeudi 22 novembre 2018 10:06 To: users@tomee.apache.org Subject: Arquillian TomEE embedded on Java 10 I'm using Java jdk 10 TomEE 7.1(also embedded), johnzon 1.0.0(also tried with 1.0.1) . When running test case which is using

Arquillian TomEE embedded on Java 10

2018-11-22 Thread vranac
I'm using Java jdk 10 TomEE 7.1(also embedded), johnzon 1.0.0(also tried with 1.0.1) . When running test case which is using Arquillian, f.e. from Intellij I get this error message: Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.apache.johnzon.jaxrs.jsonb.jaxrs.

Re: tomee-embedded-maven-plugin 7.0.3 + eclipselink 2.7.0

2017-08-23 Thread Romain Manni-Bucau
ail shows info using 2.6.4. > > Here is the info using 2.7.0: > > > > > > > > > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/tomee-embedded-maven-plugin-7-0-3-eclipselink-2-7-0- > tp4682483p4682487.html > Sent from the TomEE Users mailing list archive at Nabble.com. >

Re: tomee-embedded-maven-plugin 7.0.3 + eclipselink 2.7.0

2017-08-23 Thread gilbertoca
Sorry, the last email shows info using 2.6.4. Here is the info using 2.7.0: -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/tomee-embedded-maven-plugin-7-0-3-eclipselink-2-7-0-tp4682483p4682487.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: tomee-embedded-maven-plugin 7.0.3 + eclipselink 2.7.0

2017-08-23 Thread gilbertoca
jb.979440.n4.nabble.com/tomee-embedded-maven-plugin-7-0-3-eclipselink-2-7-0-tp4682483p4682486.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: tomee-embedded-maven-plugin 7.0.3 + eclipselink 2.7.0

2017-08-22 Thread Romain Manni-Bucau
Hi Gilberto The persistence.xml is missing from logs Allso check you dont have a persistence api conflict maybe Le 22 août 2017 21:13, "gilbertoca" a écrit : > Hi guys (and girls), hope everyone is doing well! > > Just set up eclipselink 2.7.0[1] in our pom. Trying to run t

tomee-embedded-maven-plugin 7.0.3 + eclipselink 2.7.0

2017-08-22 Thread gilbertoca
Hi guys (and girls), hope everyone is doing well! Just set up eclipselink 2.7.0[1] in our pom. Trying to run the tomee embedded plugin stop at loading things: tomee-embedded-eclipselink-2-7-0.txt <http://tomee-openejb.979440.n4.nabble.com/file/n4682483/tomee-embedded-eclipselink-2-7-0.

Fatal error using TomEE embedded

2017-01-23 Thread INGRASSIA MIRKO
Hello, Using this Maven dependency org.apache.tomee arquillian-tomee-embedded 7.0.2 test I get the following error SEVERE: FATAL ERROR: Unknown error in Assembler. Please send the following stack trace and this message to

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-28 Thread Romain Manni-Bucau
we don't read jboss datasource but we deploy an automatic datasource if none is present. Think you got confused by that. Should be logged BTW (Auto-adjusting...) Romain Manni-Bucau @rmannibucau | Blog | Old Blog

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-28 Thread wus
thanks, it was the problem. after i added the resources.xml in project, it works fine now. BTW the error message did say that i should added the missing resource in my config. i thought, tomee works fine with coupon-ds.xml from "wildfly swarm", very strange :-) thx again and best regards, Sh

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-28 Thread Romain Manni-Bucau
this sample shows that it works well :) isnt the issue that you just didnt define "java:jboss/datasources/CouponDS" datasource (which BTW should rather be named datasources/CouponDS)? Romain Manni-Bucau @rmannibucau | Blog

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-28 Thread wus
thanks for your reply. i have pushed my code in github(https://github.com/wus/jaxrs-jpa-tomee). it is a test redemption project with jaxrs, jpa in tomee. you can call to redemption(post) endpoint with the following curl cmd: curl -i -H "content-type: application/json" -d '{"cardNr": "123454", "c

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-25 Thread Romain Manni-Bucau
2016-11-25 16:25 GMT+01:00 wus : > i have added in > persistence.xml. > the error was away with 7.0.2. but it doesn't work with the cmt in cdi > container. the changes have not be committed into DB. > > > can you share a project which shows that on github? We have some project with hibernate and

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-25 Thread wus
i have added in persistence.xml. the error was away with 7.0.2. but it doesn't work with the cmt in cdi container. the changes have not be committed into DB. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Does-openejb-core-hibernate-have-the-same-usage-a

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-25 Thread wus
thanks for your quick reply. i have just find out, the CMT for cdi doesn't work in 7.0.1. regards Shan -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Does-openejb-core-hibernate-have-the-same-usage-as-openejb-core-eclipselink-in-tomee-emb-tp4680402p4

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-25 Thread Romain Manni-Bucau
7.0.1 doesnt support cdi with jpa so it works, in 7.0.1 and for hibernate you can switch off cdi: tomee.jpa.cdi=false or tomee.jpa.factory.lazy=true to initialize the factory lazily Romain Manni-Bucau @rmannibucau | Blog |

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-25 Thread wus
are there any workaround for the "chicken egg" issue? i am using tomee plus 7.0.2 and openejb-core-hibernate. Regards, Shan -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Does-openejb-core-hibernate-have-the-same-usage-as-openejb-core-eclipselink-in-to

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-11-25 Thread wus
it works with version 7.0.1 -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Does-openejb-core-hibernate-have-the-same-usage-as-openejb-core-eclipselink-in-tomee-emb-tp4680402p4680637.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Romain Manni-Bucau
synchro way. >> > > I don't understand that option? tomee embedded could work on the target/ > folder where the build is being made? If yes, how can that be configured, I > don't see such an option? > > Just change the "docBase" (webapp) folder: https://github.com/rmannibucau/rblog/blob/master/pom.xml#L189 > Thank you! > > Emmanuel > >

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Romain Manni-Bucau
tic, in the web.xml we > specified that rest calls should go under REST and it ignores that and puts > them straight at the root. I know you advised for > ServletContextInitializer, but I wouldn't change too much at once. How > would tomee-embedded behave differently than the normal

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Emmanuel Touzery
Hi, If you really want it there are few options like using a jsCustomizer to synchronize 2 folders and change the docBase get it! or just use standard maven output folder and use another synchro way. I don't understand that option? tomee embedded could work on the target/ folder

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Emmanuel Touzery
nores that and puts them straight at the root. I know you advised for ServletContextInitializer, but I wouldn't change too much at once. How would tomee-embedded behave differently than the normal tomee on that, isn't that strange? The web.xml is read otherwise, although I don't s

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Romain Manni-Bucau
1-jdbc41 >>> > >>> > >>> >Not sure how to handle that with tomee-embedded-maven-plugin? >>> > >>> > >>> >> That is the funny part: the "container" is the ma

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Emmanuel Touzery
On 23/11/16 10:22, Romain Manni-Bucau wrote: > >org.postgresql:postgresql:9.4-1201-jdbc41 > > >Not sure how to handle that with tomee-embedded-maven-plugin? > > That is the funny part: the "container" is

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Romain Manni-Bucau
rue > 3 millisecond > > > My next issue is that the postgresql driver is not found. With > tomee-maven-plugin, I could do => > > > org.postgresql:postgresql:9.4-1201-jdbc41 > > > Not sur

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Emmanuel Touzery
My next issue is that the postgresql driver is not found. With tomee-maven-plugin, I could do => org.postgresql:postgresql:9.4-1201-jdbc41 Not sure how to handle that with tomee-embedded-maven-plugin? Thank you! Emmanuel

Re: tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Romain Manni-Bucau
Hello Emmanuel Le 23 nov. 2016 09:38, "Emmanuel Touzery" a écrit : > > Hi, > > I'm trying to migrate from tomee-maven-plugin to tomee-embedded-maven-plugin (to get the nicer exploded war reloading). > > An issue I have is that I love that tomee uses my $

tomee-embedded-maven-plugin and resources maven filtering

2016-11-23 Thread Emmanuel Touzery
Hi, I'm trying to migrate from tomee-maven-plugin to tomee-embedded-maven-plugin (to get the nicer exploded war reloading). An issue I have is that I love that tomee uses my ${project.basedir}/src/main/webapp for the web resources. Unfortunately there is also our resource

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-10-20 Thread Romain Manni-Bucau
2016-10-20 14:21 GMT+02:00 gilbertoca : > Romain Manni-Bucau wrote > > Hello, > > > > First there is no "usage of openejb-core-x in > > tomee-embedded-maven-plugin". > > These dependencies were originally there to replace openejb-core in > > emb

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-10-20 Thread gilbertoca
Romain Manni-Bucau wrote > Hello, > > First there is no "usage of openejb-core-x in > tomee-embedded-maven-plugin". > These dependencies were originally there to replace openejb-core in > embedding testing (pure openejb). > > Concretely they just switch

Re: [TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-10-20 Thread Romain Manni-Bucau
Hello, First there is no "usage of openejb-core-x in tomee-embedded-maven-plugin". These dependencies were originally there to replace openejb-core in embedding testing (pure openejb). Concretely they just switch the jpa (+ for hibernate the bean validation) implementation. This mea

[TomEE 7.0.1] Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin?

2016-10-20 Thread gilbertoca
Hello everyone. I hope you're having a good day. Does openejb-core-hibernate have the same usage as openejb-core-eclipselink in tomee-embedded-maven-plugin? I ask because of this: The plugin setup https://gist.github.com/gilbertoca/f10e7ef47c0802286a5cdc43b2375d8f Regards, Gilberto --

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

2016-09-01 Thread Romain Manni-Bucau
do it if you check a dependency tree you see that openejb-core > > doesnt > > bring it but tomee does) > > Ok. In my mind the relation was: > tomee-embedded --> openejb-core -->myfaces > That is why mvn helps ;) Openejb core is not about web is term of deps. > I&

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

2016-09-01 Thread gilbertoca
t but tomee does) Ok. In my mind the relation was: tomee-embedded --> openejb-core -->myfaces I've fixed it - https://gist.github.com/gilbertoca/ac8ef777082551908bff9a64a61267a6#file-tomee-embedded-eclipselink-mojarra-maven-plugin-xml I couldn't check dependency tree for the plugin

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

2016-09-01 Thread Romain Manni-Bucau
; > > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra- > with-tomee-embedded-maven-plugin-tp4680001p4680005.html > Sent from the TomEE Users mailing list archive at Nabble.com. >

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

2016-09-01 Thread gilbertoca
Romain Manni-Bucau wrote > tomee-mojarra is the one but you can need to keep tomee-myfaces I think It makes no difference. Same exception. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra-with-tomee-embedded-maven-plu

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

2016-09-01 Thread Romain Manni-Bucau
annibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-09-01 16:36 GMT+02:00 gilbertoca : > Hi everyone! > > Is it possible to use mojarra with tomee

[TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

2016-09-01 Thread gilbertoca
Hi everyone! Is it possible to use mojarra with tomee-embedded-maven-plugin, like we do with other jpa implementation? I didn't find an openejb-jsf-integration. I ask because I'm getting this exception: My config https://gist.github.com/gilbertoca/ac8ef777082551908bff9a64a61267a

Re: System configuration in Tomee Embedded

2016-08-16 Thread Romain Manni-Bucau
way to make changes to > catalina.policy, catalina.properties, logging.properties and make the > embedded container use it as against to the version of the files what the > tomee embedded container uses. > > - logging.properties: wouldnt change anything since in embedded mode JUL

Re: System configuration in Tomee Embedded

2016-08-16 Thread Sathwik
(). So I can't even get the system property within the setup(). What actually am looking is to provide a way to make changes to catalina.policy, catalina.properties, logging.properties and make the embedded container use it as against to the version of the files what the tomee embedded cont

Re: Logging in Tomee Embedded Container

2016-08-16 Thread Romain Manni-Bucau
t; | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-08-16 14:56 GMT+02:00 Sathwik : > Hi, > > How do we get Tomee

Logging in Tomee Embedded Container

2016-08-16 Thread Sathwik
Hi, How do we get Tomee Embedded Container to generate container logs when SLF4J and Log4j2 are in the container's classpath. regards, sathwik

Re: System configuration in Tomee Embedded

2016-07-21 Thread Romain Manni-Bucau
; | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-07-21 12:06 GMT+02:00 Sathwik : > Hi Romain, > > > https://github.com/apache/tomee/blob/master/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java#L381 > > Am I missing something. >

Re: System configuration in Tomee Embedded

2016-07-21 Thread Sathwik
Hi Romain, https://github.com/apache/tomee/blob/master/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java#L381 Am I missing something. regards, sathwik On 2016-07-21 15:31 (+0530), Romain Manni-Bucau wrote: > Not if existing > https://github.com/apache/tome

Re: System configuration in Tomee Embedded

2016-07-21 Thread Romain Manni-Bucau
Not if existing https://github.com/apache/tomee/blob/master/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java#L719 Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpres

Re: System configuration in Tomee Embedded

2016-07-21 Thread Sathwik
Hi Romain, https://github.com/apache/tomee/blob/master/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java#L380 The basedir gets created afresh. regards, sathwik On 2016-07-21 14:55 (+0530), Romain Manni-Bucau wrote: > Hi > > Configuration.property(k, v) i

Re: System configuration in Tomee Embedded

2016-07-21 Thread Romain Manni-Bucau
Hi Configuration.property(k, v) is the way to go. You should also be able to set a "dir" on the configuration which is the basedir and create the configuration inside *before* starting the container (each time) so something like; main(args) { final File base = createMybase(); Main.main(new S

System configuration in Tomee Embedded

2016-07-21 Thread Sathwik
Hi, When using the org.apache.tomee.embedded.Main to start an embedded container, what is the way to pass in the configuration options. For example: exclusions_list file := could make this work only with the -Dopenejb.additional.exclude= JAVA_OPTS="$JAVA_OPTS -Djava.naming.factory.initial=org.

Re: test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread Romain Manni-Bucau
2016-07-07 17:09 GMT+02:00 mauro2java2011 : > but the plugin > > > org.apache.tomee.maven > tomee-embedded-maven-plugin > ${tomee.version} > > > org.apache.tomee > apache-tomee

Re: test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread mauro2java2011
but the plugin org.apache.tomee.maven tomee-embedded-maven-plugin ${tomee.version} org.apache.tomee apache-tomee ${tomee.version} is not available for tomee 1.7.4 ??? so ican have to

Re: test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread Romain Manni-Bucau
ithub.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-07-07 14:41 GMT+02:00 mauro2java2011 : > But if i would use the tomee-embedded and arquillan

Re: test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread mauro2java2011
But if i would use the tomee-embedded and arquillan-tomee-embedded-adaptor with tomee embedded 1.7.4 for example , how modify the dependencies? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/test-with-tomee-embedded-and-arqillan-tomee-embedded-adaptor

Re: test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread Romain Manni-Bucau
maven extension to make it easier to use. > From the link you have put into response i have read into pom tgat now is > present a tomee-embedded-maven plugin. > Only from tomee7 ? > > yes > It work different that tomed-maven plugin not embedded? > > they are a bit differen

Re: test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread mauro2java2011
What it is the following dep? org.apache.tomee ziplock ${tomee.version} test Ziplock? >From the link you have put into response i have read into pom tgat now is present a tomee-embedded-maven plugin. Only from tomee7 ? It work different that tomed-maven plugin

Re: test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread Romain Manni-Bucau
te adapter. > I would use the tomee embedded (not openejb) . > I have so added the dependencues for tomee-embedded adaptor 7.01 and > tomee-embeddded. > But i have to specify zip or no? > no > Exist a exampke with arquillan and tomee-embedded already working ? > >

test with tomee-embedded and arqillan tomee-embedded adaptor

2016-07-07 Thread mauro2java2011
Hi all. I have create a maven web app from the web- tomee arvhetype. Now i would try to add some test with arquillan embedded. I ave noted into pom.xml tge commented dependencies forbuse of openejb emvedded and tomee remote adapter. I would use the tomee embedded (not openejb) . I have so

Re: Tomee embedded Jaxrs flavor is packaging all the files

2016-05-31 Thread Romain Manni-Bucau
vaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-05-31 11:15 GMT+02:00 ravi sankar : > Hi Team, > I am using > > org.apache.tomee > tomee-embedded > ${version.tomee} > jaxrs > > and maven

Tomee embedded Jaxrs flavor is packaging all the files

2016-05-31 Thread ravi sankar
Hi Team, I am using             org.apache.tomee             tomee-embedded             ${version.tomee}             jaxrs         and maven shade The generated jar file has myfaces and jaxws related files. Thanks,Ravi

Re: Tomee embedded maven plugin application realod on changes using tomee-embedded:run

2016-05-18 Thread Romain Manni-Bucau
is surely more accurate than a > reployment just cause a class changed (IDE will likely make you a hard life > if you abuse of that "auto" feature). > > We can surely enrich the commands (you can type "quit" only today with > tomee embedded plugin once start

Re: Tomee embedded maven plugin application realod on changes using tomee-embedded:run

2016-05-18 Thread ravi sankar
ay 2016 5:27 PM, Romain Manni-Bucau wrote:  Hi, you can use other plugins for "synchronization" feature (this is just a poor file system polling implementation based). tomee-embedded supports in place dev (src/main/webapp or another folder) so normally you don't need synchroniz

Re: Tomee embedded maven plugin application realod on changes using tomee-embedded:run

2016-05-18 Thread Romain Manni-Bucau
yment just cause a class changed (IDE will likely make you a hard life if you abuse of that "auto" feature). We can surely enrich the commands (you can type "quit" only today with tomee embedded plugin once started) to have "reload" too. Romain Manni-Bucau @rmannibuc

Re: Tomee embedded maven plugin application realod on changes using tomee-embedded:run

2016-05-18 Thread ravi sankar
What I am asking is reloading of class files when changed On Wednesday, 18 May 2016 5:27 PM, Romain Manni-Bucau wrote: Hi, you can use other plugins for "synchronization" feature (this is just a poor file system polling implementation based). tomee-embedded supports in plac

Re: Tomee embedded maven plugin application realod on changes using tomee-embedded:run

2016-05-18 Thread Romain Manni-Bucau
Hi, you can use other plugins for "synchronization" feature (this is just a poor file system polling implementation based). tomee-embedded supports in place dev (src/main/webapp or another folder) so normally you don't need synchronization. Here for instance a config to use sr

Tomee embedded maven plugin application realod on changes using tomee-embedded:run

2016-05-18 Thread ravi sankar
tomee-maven-plugin provides auto reload when application changes     prod     true     - true                         .class                 2     true Can we have the same features available in   tomee-embedded:run  using tomee-embedded-maven-plugin

Re: tomee embedded 7.0.0-M3 transitive dependencies

2016-05-13 Thread Romain Manni-Bucau
s.com/> | Github >> <https://github.com/rmannibucau> | LinkedIn >> <https://www.linkedin.com/in/rmannibucau> | Tomitriber >> <http://www.tomitribe.com/> | JavaEE Factory >> <https://javaeefactory-rmannibucau.rhcloud.com/> >> >> 2016-05

Re: tomee embedded 7.0.0-M3 transitive dependencies

2016-05-13 Thread Romain Manni-Bucau
kar > : > > Hi Team, > bval is introducing three unwanted dependencies jaxb-api, jaxb-impl, junit > in to uber jar created using maven shade. > > > org.apache.tomee > tomee-embedded > ${version.tomee} > >

Re: tomee embedded 7.0.0-M3 transitive dependencies

2016-05-13 Thread ravi sankar
: Hi Team, bval is introducing three unwanted dependencies jaxb-api, jaxb-impl, junit in to uber jar created using maven shade.                     org.apache.tomee             tomee-embedded             ${version.tomee}                                                 jaxb-impl

Re: tomee embedded 7.0.0-M3 transitive dependencies

2016-05-13 Thread Romain Manni-Bucau
> in to uber jar created using maven shade. > > > org.apache.tomee > tomee-embedded > ${version.tomee} > > > jaxb-impl > com.sun.xml.bind > >

tomee embedded 7.0.0-M3 transitive dependencies

2016-05-13 Thread ravi sankar
Hi Team, bval is introducing three unwanted dependencies jaxb-api, jaxb-impl, junit in to uber jar created using maven shade.                     org.apache.tomee             tomee-embedded             ${version.tomee}                                                 jaxb-impl

Re: Running war using tomee embedded ubar jar

2016-04-30 Thread Romain Manni-Bucau
ry-rmannibucau.rhcloud.com> > > 2016-04-30 17:09 GMT+02:00 ravi sankar : > >> Thanks, >> It's working after setting both ecilipse link and uber jar in classpath >> >> java -cp >> /home/.m2/repository/org/eclipse/persistence/eclipselink/2.6.2/ec

Re: Running war using tomee embedded ubar jar

2016-04-30 Thread Romain Manni-Bucau
ersistence/eclipselink/2.6.2/eclipselink-2.6.2.jar:$HOME/softwares/tomee-embedded-7.0.0-20160430.041323-339-uber.jar > > org.apache.tomee.embedded.Main > --path > $HOME/git/tomee_embedded/target/tomee_embedded.war > -c > > > On Sunday, 1 May 2016 12:59 AM, Romain Manni-Bucau >

Re: Running war using tomee embedded ubar jar

2016-04-30 Thread ravi sankar
Thanks,It's working after setting both ecilipse link and uber jar in classpath java -cp /home/.m2/repository/org/eclipse/persistence/eclipselink/2.6.2/eclipselink-2.6.2.jar:$HOME/softwares/tomee-embedded-7.0.0-20160430.041323-339-uber.jar org.apache.tomee.embedded.Main --path $HOM

Re: Running war using tomee embedded ubar jar

2016-04-30 Thread Romain Manni-Bucau
repository/org/eclipse/persistence/eclipselink/2.6.2/eclipselink-2.6.2.jar > > -jar tomee-embedded-7.0.0-20160430.041323-339-uber.jar > --path /home/git/tomee_embedded/target/tomee_embedded.war > > sample project with eclipse link > git clone https://github.com/Ravisankar-Challa/to

Re: Running war using tomee embedded ubar jar

2016-04-30 Thread ravi sankar
Nope not workingjava -cp /home/.m2/repository/org/eclipse/persistence/eclipselink/2.6.2/eclipselink-2.6.2.jar   -jar tomee-embedded-7.0.0-20160430.041323-339-uber.jar --path /home/git/tomee_embedded/target/tomee_embedded.war sample project with eclipse link git clone https://github.com

Re: Running war using tomee embedded ubar jar

2016-04-30 Thread Romain Manni-Bucau
Hi Should be visible but a workaround is to add eclipselink in the classpath -cp instead of using -jar. Le 30 avr. 2016 15:47, "ravi sankar" a écrit : > Hi, > I am trying to run the war file using the following command > java -jar tomee-embedded-7.0.0-20160430.041323-

Running war using tomee embedded ubar jar

2016-04-30 Thread ravi sankar
Hi, I am trying to run the war file using the following command java -jar tomee-embedded-7.0.0-20160430.041323-339-uber.jar --path tomee_embedded.war I am using ecilipse link as jpa provider so I mentioned provider as "org.eclipse.persistence.jpa.PersistenceProvider" in persisten

Re: Arquillian tomee-embedded and logback

2016-04-17 Thread cocorossello
java.util.logging.config.file src/test/resources/logging.properties ... Thanks -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-tomee-embedded-and-logback-tp4678165p4678168.html Sent from the

Re: Arquillian tomee-embedded and logback

2016-04-17 Thread Steve Goldsmith
Here's what I use for TomEE embedded: org.apache.tomee.maven tomee-maven-plugin ${tomee.version} ${tomee.version} plus

Re: Arquillian tomee-embedded and logback

2016-04-17 Thread Romain Manni-Bucau
Hi You will likely need to exclude other slf4j impl/bindings like jdk14 one coming with tomee embedded. Adding logback AND slf4j api in the archive can work too for app logging but not container Le 17 avr. 2016 13:13, "cocorossello" a écrit : > Hi, > > We have tomee with logb

Arquillian tomee-embedded and logback

2016-04-17 Thread cocorossello
Hi, We have tomee with logback, which is great. The problem is that I'm not able to use logback in an arquillian test with tomee-embedded. The tomee output seems to be using log4j for some reason. Logback/slf4j dependencies are in classpath and logback.xml is provided Did someone sol

Re: arquillian-tomee-embedded and Locale/user.language

2016-03-22 Thread jllado
Yeah! Now it works! Thanks! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/arquillian-tomee-embedded-and-Locale-user-language-tp4677955p4677963.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: arquillian-tomee-embedded and Locale/user.language

2016-03-22 Thread Romain Manni-Bucau
static { > System.setProperty("user.language", "es"); > } > > but it didn't work :S > > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/arquillian-tomee-embedded-and-Locale-user-language-tp46779

  1   2   3   >