Re: Obtaining tomee.xml resource properties?

2018-11-27 Thread Romain Manni-Bucau
onf, and not > project > > code itself. I'm not sure what the "null" here is all about, is it > > expecting that I put something in /WEB-INF/web.xml ? > > > > Also, the Properties meant to be returned.. is that class > > java.util.Properties, or is it supposed to be cla

Re: Obtaining tomee.xml resource properties?

2018-11-26 Thread Romain Manni-Bucau
as > > opposed to . The will use the application classpath, eliminating > the > > requirement to add your resource class to lib/. > > > > Let us know how you get on - if you're stuck, I can dig out an example. > > > > Kind Regards > > > > Jon > >

Re: Obtaining tomee.xml resource properties?

2018-11-25 Thread Romain Manni-Bucau
Guess you want to read http://tomee.apache.org/admin/configuration/index.html - doc is more complete and up to date. Le dim. 25 nov. 2018 23:44, Kean Erickson a écrit : > The docs mention a way of obtaining properties in code from a resource in > Tomee.xml, under "Custom resources" > >

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Romain Manni-Bucau
lized? > > Thanks Romain, this is pretty cool functionality I can see the potential > (for example ). > > Just for the sake of completeness ('also' follows after 'yes':), is it > still Ok to use env variables in ${}? > > Cheers, > Dmitry > > > -Original Messag

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Romain Manni-Bucau
ant to hide user, password, connection, schema etc. > > You could use variable replacement with ${} and pack the file in the jar > and then just set the properties to replace like Romain mentioned. I think > it should work, > > Cheers, > Roberto > > > On 22 Nov 2018,

Re: Arquillian TomEE embedded on Java 10

2018-11-22 Thread Romain Manni-Bucau
It is likely missing some --add-opens for unamed module on the command line Le jeu. 22 nov. 2018 17:43, COURTAULT Francois < francois.courta...@gemalto.com> a écrit : > Hello, > > I don't know if it is related but I can't use TomEE using Java 11 or 10. > > See my Jira issues: > -

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Romain Manni-Bucau
side note: why tomee:exec and not tomee:build which was intended for that case? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: Continuous integration and a PR

2018-11-22 Thread Romain Manni-Bucau
tackled by lack of need at that time Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in

Re: Continuous integration and a PR

2018-11-22 Thread Romain Manni-Bucau
a "mvn clean install -Pall-adapters" - assuming a 3h build still helps. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com

Re: can't stop tomee with maven plugin

2018-11-22 Thread Romain Manni-Bucau
Stop a TomEE started with start command. means you can use tomee:stop to stop an instance launched with tomee:start. tomee:run blocks in the contextual shell and is stopped typing "exit" in the shell (it is a kind of command line interface) Romain Manni-Bucau @rmannibucau <https:

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-21 Thread Romain Manni-Bucau
Hello, You can always load system properties in setenv.sh before the server starts. If it is properties settable after tomee.xml is read you can set them in it and it supports Finally you can always plug a tomcat listener before tomee one and set the system properties the way you want

Re: CXF customize wadl generation without spring

2018-11-15 Thread Romain Manni-Bucau
Hi Vicente, don't think there is an example but cxf is configurable in tomee as in spring (but without it): http://tomee.apache.org/developer/configuration/cxf.html Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Ol

Re: javaee-api 8.0 JPA

2018-11-14 Thread Romain Manni-Bucau
For the record it belongs to geronimo for the spec jar and tomee for the integration in its bundle (javaee-api). Thanks for opening the issue, think we can ping the right communities from there ;). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog

Re: Johnzon 1.0.1 change in behaviour for final objects

2018-10-29 Thread Romain Manni-Bucau
perspective it would be > preferable to either support this, or fail fast with an error in such > cases. > > Regards, > Dave > > > Romain Manni-Bucau wrote > > Hi Dave, > > > > yes this is tracked in https://issues.apache.org/jira/browse/JOHNZON-142 >

Re: Should the JAX-RS Client pay attention to ContextResolver[s]?

2018-10-29 Thread Romain Manni-Bucau
yes Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> |

Re: Should the JAX-RS Client pay attention to ContextResolver[s]?

2018-10-29 Thread Romain Manni-Bucau
yes Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> |

Re: Heap Memory / boot Tomee

2018-10-29 Thread Romain Manni-Bucau
yep, scan.xml controls all the scanning globally for the app Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn &

Re: Should the JAX-RS Client pay attention to ContextResolver[s]?

2018-10-29 Thread Romain Manni-Bucau
Yep, except you instantiate yourself the client outside any container so you are the one to pick it up ;) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github &

Re: Should the JAX-RS Client pay attention to ContextResolver[s]?

2018-10-29 Thread Romain Manni-Bucau
ntityStream)); } catch (final JAXBException e) { throw new WebApplicationException(Response.Status.BAD_REQUEST); } } } } Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.ne

Re: Heap Memory / boot Tomee

2018-10-29 Thread Romain Manni-Bucau
Maybe activate -Dopenejb.cdi.debug=true to ensure it is taken into account in your instance Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://g

Re: Heap Memory / boot Tomee

2018-10-29 Thread Romain Manni-Bucau
Hello, it depends the scanning coverage for your app, normally you can tune it using scan.xml (in WEB-INF) to only scan the EE classes (CDI/EJB) and not all others which will reduce it at the minimum. See http://tomee.apache.org/refcard/refcard.html for more details Romain Manni-Bucau

Re: Johnzon 1.0.1 change in behaviour for final objects

2018-10-29 Thread Romain Manni-Bucau
("{\"m\":{\"A\":\"a\"}}", WithFinalMap.class); That said i wouldnt recommand you to do it and maybe use the constructor rather than this old hack Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.n

Re: Should the JAX-RS Client pay attention to ContextResolver[s]?

2018-10-27 Thread Romain Manni-Bucau
The messagebody reader/writer are trivial to impl if you have the context so yes, just dont try to reuse cxf but just jaxrs here. Cxf logic is mainly grabbing the jaxbcontext so if you have it no nees of that cxf logic. You register you provider(s) and cxf should let it be taken cause user

Re: Should the JAX-RS Client pay attention to ContextResolver[s]?

2018-10-26 Thread Romain Manni-Bucau
Hello AFAIK cxf does not support it client side and spec is silent on it even if the api is always associated with server references ("resources"). Maybe open a feature request, no reason the clientproviderfactory cant support it. Now for your issue you can wire it in the provider when creating

Re: tomee+activemq: JMS reading sometimes hang with full queue

2018-10-24 Thread Romain Manni-Bucau
entify it: (no particular order) 0. DLQ state (ensure it is monitored) 1. network (if relevant) 2. backend 3. (potentially) transport 4. AMQ version ... > > Regards, > > Emmanuel > > On 24/10/2018 08:39, Romain Manni-Bucau wrote: > > Hello Emmanuel >

Re: tomee+activemq: JMS reading sometimes hang with full queue

2018-10-24 Thread Romain Manni-Bucau
Hello Emmanuel It can be a lot of things like a network breakdown behind a proxy (so AMQ does not see it in some cases and a restart recreates the connection), some backpressure (exponentional), some disk issue etc... It can be interesting to check your config for healthchecks, batch sizes, and

Re: JAX-RS: deserialization of org.json.JSONObject

2018-10-16 Thread Romain Manni-Bucau
Hi Kean You can write a message body reader/writer to handle org.json. Le mar. 16 oct. 2018 20:50, Kean Erickson a écrit : > Although the javax.json.JsonObject API at is now meant to be used instead, > it's interesting that org.json.JSONObject is properly deserialized in > JAX-RS. The only

Re: bval emailvalidator

2018-10-14 Thread Romain Manni-Bucau
Yes or just import commons lib Le dim. 14 oct. 2018 12:48, Matthew Broadhead a écrit : > i just noticed that apache commons validator is not included in TomEE. > i wanted to use EmailValidator. i noticed that BVal has an > EmailValidator. can that be used instead? >

Re: TomEE management/administration applications

2018-10-05 Thread Romain Manni-Bucau
configuration but you can check our website at http://tomee.apache.org/docs.html and ask any question you don't find an answer to here. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpres

Re: Does SingleSignOn valve works for web apps deployed inside an .ear file?

2018-10-03 Thread Romain Manni-Bucau
Hi Luis, yes, it relies on "local" storage accross webapps so it works. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com

Re: jdbc connection pool size 2

2018-10-01 Thread Romain Manni-Bucau
/password) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> |

Re: Does TomEE support EJB 2?

2018-09-28 Thread Romain Manni-Bucau
Hi Aaron We didnt drop that support so it should work Le ven. 28 sept. 2018 20:10, Aaron a écrit : > Does TomEE support EJB 2? After upgrading our previous application server, > the new version puked up a bunch of errors about no longer supporting EJB 2 > entities (and that wasn't the only

Re: jdbc connection pool size 2

2018-09-28 Thread Romain Manni-Bucau
I'd just add to Jon's answer that setting a maxWait to 0 will help you to identify these issues, otherwise it can hides some undersizing problem during the tuning phase. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Ol

Re: Apache Ignite initialization before EntityManagerFactory

2018-09-27 Thread Romain Manni-Bucau
ache/tomee/blob/master/container/openejb-core/src/test/java/org/apache/openejb/config/typed/util/ServerContextTest.java > is using DataSourceBuilder and ServerContext to create the DataSource > resource. Is there anything like that can be used from my custom factory > method? > > C

Re: Apache Ignite initialization before EntityManagerFactory

2018-09-27 Thread Romain Manni-Bucau
This works, you can also create an ignite resource just to create ignite instance. That said, did you try to make your persistence unit lazy? Can make it working and let you start ignite from your app. Le jeu. 27 sept. 2018 21:01, Shultz, Dmitry a écrit : > Figured out some way to make sure

Re: Is the licensing for the extended versions of TomEE (eg: TomEE+) the same?

2018-09-27 Thread Romain Manni-Bucau
Hi Aaron Yes it does, the difference is the content. Plume uses eclipselink and mojarra, plus adds jsf, jms, soap, ... So it is really distributions and not related to any licensing. Le jeu. 27 sept. 2018 18:22, Aaron a écrit : > I am trying to figure out if the extended versions of TomEE use

Re: CDI Interceptors to intercept all EJB @Schedule methods

2018-09-20 Thread Romain Manni-Bucau
Hi, did you put @AroundTimeout on the interceptor method? AroundInvoke is not triggered for @Schedule. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github &

Re: [Newsletter] Re: TomEE Performance

2018-09-04 Thread Romain Manni-Bucau
sis before investigating other cases. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibu

Re: [Tomee Maven Plugin] Unkillable Tomee...

2018-08-31 Thread Romain Manni-Bucau
Changing java version can help sometimes since they regularly have issues with their process management (this is why JMX local connection is regularly broken for instance) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/>

Re: [Tomee Maven Plugin] Unkillable Tomee...

2018-08-30 Thread Romain Manni-Bucau
Hi Daniel, did you capture a thread dump when it doesn't destroy? (jstack can give it to you and you can share it on gist or pastebin sites). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibuca

Re: protect endpoint with basic auth

2018-08-22 Thread Romain Manni-Bucau
Yes works, or even @WebFilter(urlPatterns="/*",asyncSupported=true) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com

Re: protect endpoint with basic auth

2018-08-22 Thread Romain Manni-Bucau
(request.login()/request.logout()) or not depending what you want to do. MP JWT Auth uses that typically: https://github.com/apache/geronimo-jwt-auth/blob/master/src/main/java/org/apache/geronimo/microprofile/impl/jwtauth/servlet/GeronimoJwtAuthFilter.java Romain Manni-Bucau @rmannibucau <ht

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-08-17 Thread Romain Manni-Bucau
gt; no. i will add those and try again. > > > > i also changed the entry in system.properties to > > org.apache.johnzon.deduplicateObjects = true to match > > org.apache.johnzon.max-string-length = 8192 > > > > > > On 17/08/18 21:56, Romain Manni-Bucau wrote

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-08-17 Thread Romain Manni-Bucau
Do you have a valid equals/hashcode? Le ven. 17 août 2018 21:28, chongma a écrit : > i was trying to output some JPA objects to json today. after adding > johnzon.deduplicateObjects = true to system.properties and restarting TomEE > i still get > javax.json.stream.JsonGenerationException:

Re: JPA 2.0 compliant OpenJPA version in 2.1 based TomEE?

2018-08-07 Thread Romain Manni-Bucau
Hi Fabian, no real reason I guess, feel free to open a PR Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn &

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Romain Manni-Bucau
1.1 supports reference handling but not the 1.0 of tomee 7. Le jeu. 19 juil. 2018 19:17, Matthew Broadhead a écrit : > JAXB used to use @XmlInverseReference annotation. is there no such > johnzon annotation? @JohnzonIgnore is more like @Transient? > > On 19/07/18 17:10, Romain

Re: TomEE Plume 7.0.4/JDBC resource config/unused property

2018-07-19 Thread Romain Manni-Bucau
Actually JDBCDriver expects a Driver implementation, OracleXADataSource is a datasource implementation. We tolerate it but in this case you must also configure the underlying datasource instance. More on http://tomee.apache.org/admin/configuration/resources.html and

Re: TomEE stderr and stdout

2018-07-19 Thread Romain Manni-Bucau
Le jeu. 19 juil. 2018 à 17:05, maciejka a écrit : > I start TomEE, deploy my app, and invoke rest endpoint: > Example: > > @GET > @Path("/all") > @Produces(MediaType.APPLICATION_JSON + "; charset=UTF-8") > @StringifyJSON > public Service getAll(@DefaultValue("false") >

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Romain Manni-Bucau
Hi Sudhakar, Ensure you have a @JohnzonIgnore on one side to avoid a loop. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: TomEE stderr and stdout

2018-07-19 Thread Romain Manni-Bucau
Hi, no it is still used but if you rely on "run" command this is totally ignored since you own the shell in this case. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordp

Re: TomEE Plume 7.0.4/JDBC resource config/unused property

2018-07-19 Thread Romain Manni-Bucau
figuration for the real connection so you must configure the datasource too, i.e User and Pass for oracle IIRC. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <

Re: No Factories configured for this Application. This happens if the faces-initialization does not work at all

2018-07-16 Thread Romain Manni-Bucau
Hi Maybe check your web.xml declaration of faces servlet, you classpath and webapp lib folder (some jsf api or impl leaking?) and finally ensure when you redeployed that you cleaned work/, conf/ and other temporary folders in your catalina.base folder. Le mar. 17 juil. 2018 00:22, Jean-Louis

Re: cannot use ManagedExecutorService resource

2018-07-16 Thread Romain Manni-Bucau
yes, note that "name" doesn't need "java", the namespace is a "lookup" thing. personally I would recommand you to stay away from default resources since you have no idea how it will behave at runtime and I would just ensure to name correctly each resource I use. R

Re: cannot use ManagedExecutorService resource

2018-07-16 Thread Romain Manni-Bucau
so better to take the control of it. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linke

Re: RMI From TomEE to Jboss

2018-07-11 Thread Romain Manni-Bucau
The "Referencing a bean in another server" part of http://tomee.apache.org/ejb-refs.html should already enable several cases. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordp

Re: RMI From TomEE to Jboss

2018-07-10 Thread Romain Manni-Bucau
Hi If you have the client API it will work as in any app (spring apps always do that and it will be exactly the same in tomee). You can even do fun stuff like proxying the jboss calls with an endpoint redirecring the streams or redirecting an ejbd (tomee) rmi call to jboss either using a plain

Re: Apache TomEE 7.0.5 and JPA 2.1

2018-07-05 Thread Romain Manni-Bucau
Hi We got openjpa 3 which is close to that but not complete and targets jpa 2.2 IIRC. Le jeu. 5 juil. 2018 20:25, gilbertoca a écrit : > Hello guys, > > It seems version 7.0.5 is quite ready. But I cant see any mention about > openjpa(the 2.1 spec one). > Any change of tomee 7.X.X brings

Re: java.lang.NoClassDefFoundError: com/mysql/jdbc/ParameterBindings

2018-07-02 Thread Romain Manni-Bucau
Would be interesting to have the full stack and probably some logs around this issue. But sounds more related to the dev setup than anything which can happen in prod. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Ol

Re: java.lang.NoClassDefFoundError: com/mysql/jdbc/ParameterBindings

2018-07-02 Thread Romain Manni-Bucau
Hi Does it happen after some redeployment? Is mysql in tomee lib or the app lib folder? Le lun. 2 juil. 2018 13:07, Matthew Broadhead a écrit : > recently i have been getting this exception during development. > restarting the container allows me to proceed. i am worried it might > start

Re: EAR deployment

2018-06-29 Thread Romain Manni-Bucau
ears probably not (but you are not that numerous anymore ;)) but with a security manager is more the criteria here IMHO. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com&g

Re: FailOnUnknowActivationSpec for MessageDriven Bean

2018-06-29 Thread Romain Manni-Bucau
Hi Gropp, feel free to do a PR on https://github.com/apache/tomee-site-generator. This is also probably related to this one https://github.com/apache/tomee-site-generator/pull/4 Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.ne

Re: EAR deployment

2018-06-28 Thread Romain Manni-Bucau
t; > -Duser.timezone=EST > -Djava.security.manager > -Djava.security.policy="C:\IBM\liferay\tomee\conf\catalina.policy" > -Djava.security.auth.login.config="C:\IBM\liferay\tomee\conf\jaas.config" > -Dwnyric.deployment.properties.directory.path="C:\IBM\liferay" &

Re: EAR deployment

2018-06-28 Thread Romain Manni-Bucau
I think you can check it in the JVM info in system properties (VM Summary) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: EAR deployment

2018-06-27 Thread Romain Manni-Bucau
Hi can you confirm it works without the security manager enabled? Also can you check connecting on the JVM through JMX that the right policy file is used and tomcat didn't override the one you thought using? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog

Re: How to enable keepAliveTimeout in TomEE

2018-06-26 Thread Romain Manni-Bucau
> > On Mon, Jun 25, 2018 at 5:01 PM Romain Manni-Bucau > wrote: > > > Hi Srikanth? > > > > which keepAliveTimeout? (we have in ejbd -> ejbd.properties, in tomcat > > connectors -> standard tomcat config, etc...) > > > > Romain Manni-Bucau > >

Re: How to enable keepAliveTimeout in TomEE

2018-06-25 Thread Romain Manni-Bucau
Hi Srikanth? which keepAliveTimeout? (we have in ejbd -> ejbd.properties, in tomcat connectors -> standard tomcat config, etc...) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wo

Re: tomee testing

2018-06-24 Thread Romain Manni-Bucau
known Source) > >> at java.lang.String.valueOf(String.java:2994) > >> at java.lang.StringBuilder.append(StringBuilder.java:131) > >> at java.util.AbstractMap.toString(AbstractMap.java:559) > >> at java.text.MessageFormat.subformat(MessageFormat.jav

Re: tomee testing

2018-06-24 Thread Romain Manni-Bucau
mapping error in your model it seems or bad persistence unit definition if you dont use scanning. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://g

Re: tomee testing

2018-06-24 Thread Romain Manni-Bucau
you don't need @Jars for that why you get an exception is cause appcomposers knows mysql has no EE classes so it is excluded from the "find" logic. @Jars means "grab the jars matching this prefix and scan them to include them in the deployed app". Romain Manni-Bucau

Re: tomee testing

2018-06-24 Thread Romain Manni-Bucau
h") }) > > but now i get > org.apache.xbean.propertyeditor.PropertyEditorException: Unable to > resolve class com.mysql.jdbc.Driver > at > > org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:43) > at > > org.apache.xbean.propertyeditor.AbstractCon

Re: tomee testing

2018-06-23 Thread Romain Manni-Bucau
ble to deploy collapsed ear in war > > StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sales] > > org.apache.openejb.config.ValidationFailedException: Module failed > > validation. AppModule(name=sales) > > at > > > org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.jav

Re: tomee testing

2018-06-23 Thread Romain Manni-Bucau
// quoteInit, true); > assertEquals(0, 1); > } > assertEquals(0, 1); > } > > can i not inject a CDI bean into the test using arquillian-tomee-remote? > > On 23/06/18 10:17, Romain Manni-Bucau wrote: > > It is not needed at all

Re: tomee testing

2018-06-23 Thread Romain Manni-Bucau
rquillian-tomee-remote? i.e. is it necessary to monitor tests? if so, > then how do i exclude the mysql lib from the configuration? > > > mvn:org.apache.sirona:sirona-javaagent:0.2-incubating:jar:shaded > > > On 23/06/18 08:15, Romain Manni-Bucau wrote: > > Exclude my

Re: tomee testing

2018-06-23 Thread Romain Manni-Bucau
ers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]] > > i tried enabling remote support as i am trying remote not embedded > tomee.remote.support = true > # tomee.serialization.class.blacklist = * > tomee.serialization.class.whitelist = * > > On 22/06/18 18:44,

Re: tomee testing

2018-06-22 Thread Romain Manni-Bucau
s@tomee.apache.org : > org.apache.xbean.propertyeditor.PropertyEditorException: Unable to > resolve class com.mysql.jdbc.Driver > > is there any way to directly bring in the mysql driver from maven > central? or do i need to download manually and put it into > src/test/tomee/lib? > > > On 22/06/18 10:03, Roma

Re: TomEE stderr and stdout

2018-06-22 Thread Romain Manni-Bucau
Hi, did you try: export CATALINA_OUT=/tmp/tomee-stdout ? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn &

Re: How to pass keystore password to TomEE for PasswordCipher

2018-06-22 Thread Romain Manni-Bucau
Hi, you can use an environment var or a system property for that. Alternatively you can use another resource or service in tomee.xml which is configured as usual and injected into the datasource (PasswordCipher = $myCipher or PasswordCipher = @myCipher). Romain Manni-Bucau @rmannibucau <ht

Re: [Newsletter] Re: [Newsletter] Re: [Newsletter] Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

2018-06-22 Thread Romain Manni-Bucau
Feel free to do it and if you want submit a pull request or patch if you have it. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: tomee testing

2018-06-22 Thread Romain Manni-Bucau
complete application*s* in a real server, ApplicationComposer is good to test small parts of applications or frameworks, TomEE, TomEEEmbeddedSingleRunner is great to test a real app (single deployment from the classpath + single test setup) and will save a lot of time. Romain Manni-Bucau @rmannibucau

Re: [Newsletter] Re: [Newsletter] Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

2018-06-20 Thread Romain Manni-Bucau
you are right, this is a bug. We clearly can't import guava in lib/ (breaks too much apps) so we need to find a solution for that (potentially not importing saml). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Ol

Re: [Newsletter] Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

2018-06-20 Thread Romain Manni-Bucau
It is not in tomee lib so should be coming from your app or environment :s by leak i meant we don't intend to deliver this lib out of the box Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibuca

Re: [Newsletter] Re: Missing Guava in TomEE 7.0.4 Plus?

2018-06-20 Thread Romain Manni-Bucau
Hmm if we provide it OOTB that's a "leak" on our side, if you have it in the webapp just drop it. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <

Re: Missing Guava in TomEE 7.0.4 Plus?

2018-06-20 Thread Romain Manni-Bucau
Hi, yes and no. We intentionnally drop guava and it works with opensaml until you import shibboleth which requires it. At that moment you have to either drop opensaml libs from tomee libs or add the missing ones. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog

Re: [Newsletter] Re: TomEE 7.0.4 and contextPath

2018-06-19 Thread Romain Manni-Bucau
:), that said it is surely better than change of opinion each two years ;) Now in practise you always have something doing the provisioning, worse case it is a script (like a sh on jenkins) but the point is you always control the name of your delivery so it is not a big deal. Romain Manni-Bucau

Re: TomEE 7.0.4 and contextPath

2018-06-18 Thread Romain Manni-Bucau
If you put the war in webapps (or auto deploy) you must rename the war file now (tomcat change). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://g

Re: Embedded TomEE 7.0.4 and Arquillian and TLS

2018-06-18 Thread Romain Manni-Bucau
Looks good to me (if anyone wants to apply it otherwise I'll do it end of the week) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rm

Re: Embedded TomEE 7.0.4 and Arquillian and TLS

2018-06-18 Thread Romain Manni-Bucau
Hi Fabian, there is a bug for keystorefile, the property name is empty ( https://github.com/apache/tomee/blob/fb_tomee8/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java#L632), feel free to submit a PR fixing that Romain Manni-Bucau @rmannibucau <https://twitter.

Re: Interceptors discovery

2018-06-13 Thread Romain Manni-Bucau
Hi https://github.com/apache/geronimo-metrics should run in tomee 8, we plan to release it pretty soon so it can be a good choice. For your particular issue, I think your issue is that the name of your artifact is excluded, try to rename it "foo-metrics.jar" and you will know. Ro

Re: GraalVM

2018-06-10 Thread Romain Manni-Bucau
No and GraalVM doesn't support enough of java yet for EE. Will come ;) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: Own SecurityService ignored migrating from TomEE Plus 1.7.1 to 1.7.5

2018-05-31 Thread Romain Manni-Bucau
You can launch tomee in remote debug mode (export JPDA_SUSPEND=y && export JPDA_ADDRESS=5005 in setenv.sh) , then connect to tomee through an IDE: you have the option in the run configurations. Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn | Book Le jeu. 31 mai 2

Re: Own SecurityService ignored migrating from TomEE Plus 1.7.1 to 1.7.5

2018-05-30 Thread Romain Manni-Bucau
Looks good, maybe give a try to some debugging, hopefully it is some signature change you dont have in your impl. Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn | Book Le mer. 30 mai 2018 à 16:08, renz a écrit : > > I've edited my previous post. > I'm using nab

Re: Own SecurityService ignored migrating from TomEE Plus 1.7.1 to 1.7.5

2018-05-30 Thread Romain Manni-Bucau
Hi, it seems some mail client (not sure it is yours or mine) ate the log you pasted (= I cant read it). The easiest is likely to check the log which should say which security service it creates but you can also just put a breakpoint in your instance to check. Romain Manni-Bucau @rmannibucau

Re: Basic EJB sample not working if I don't start package name with "org"

2018-05-24 Thread Romain Manni-Bucau
This pattern is supported until you hit exclusions as always. Openejb.classloader.forced-load can allow you to work it around but normally it is not needed. Le jeu. 24 mai 2018 19:22, sudhakarvm a écrit : > It will be com.{company name} I am sorry I can't disclose company

Re: Basic EJB sample not working if I don't start package name with "org"

2018-05-24 Thread Romain Manni-Bucau
We only filtrr known packages like com.sun, whats yours? Le jeu. 24 mai 2018 18:53, sudhakarvm a écrit : > You mean deleting from work folder and deleting from webapps. Yes I have > done > it. I think it is something to do with class scanning. > > > > -- > Sent from: >

Re: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages

2018-05-23 Thread Romain Manni-Bucau
Hi Matthew, looks like a classloader issue like that but would need more details Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: Own SecurityService ignored migrating from TomEE Plus 1.7.1 to 1.7.5

2018-05-21 Thread Romain Manni-Bucau
use the same loading mecanism. If you can share you setup we can maybe have a deeper look. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rm

Re: TomEE Stable and OpenJDK

2018-05-14 Thread Romain Manni-Bucau
Le lun. 14 mai 2018 13:16, COURTAULT Francois < francois.courta...@gemalto.com> a écrit : > Hello Mark, > > Thanks a lot for sharing the TomEE roadmap. > > My main concerns about TomEE are: > - java 9 and above support (java 10 and 11) > - JavaEE 8 specification support > - µProfile

Re: [Newsletter] Re: [Newsletter] Re: Migration step of jtaManaged flag in context resources

2018-05-14 Thread Romain Manni-Bucau
jection pattern :( > -Original Message----- > From: Romain Manni-Bucau <rmannibu...@gmail.com> > Sent: Monday, May 14, 2018 10:52 AM > To: users@tomee.apache.org > Subject: *EXT* [Newsletter] Re: [Newsletter] Re: Migration step of > jtaManaged flag in context resources &

Re: [Newsletter] Re: Migration step of jtaManaged flag in context resources

2018-05-14 Thread Romain Manni-Bucau
asswords [2] so they are not stored in > plain text. > > LieGrue, > strub > > > [1] https://tomee.apache.org/configuring-datasources.html > [2] https://tomee.apache.org/datasource-password-encryption.html > > > Am 09.05.2018 um 17:21 schrieb Romain Manni-Bucau <rmannibu.

Re: Migration step of jtaManaged flag in context resources

2018-05-11 Thread Romain Manni-Bucau
verride rules are handled at another layer already (properties). > LieGrue, > strub > > > > Am 11.05.2018 um 10:37 schrieb Romain Manni-Bucau <rmannibu...@gmail.com > >: > > > > Le ven. 11 mai 2018 09:27, Mark Struberg <strub...@yahoo.de.invali

  1   2   3   4   5   6   7   8   9   10   >