Re: tomee and jdk14

2019-11-22 Thread cocorossello
Hi, I have created the JIRA ticket, I will do the patch this weekend. https://issues.apache.org/jira/browse/TOMEE-2744 -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

tomee and jdk14

2019-11-21 Thread cocorossello
Hi, Just for curiosity, I tried tomee with jdk14 (upgrading xbean). I found that the java.security.acl package is removed from jdk14 (https://bugs.openjdk.java.net/browse/JDK-8191138 ) and java.security.acl.Group is referenced in AbstractSecurityService (I don't know if it is used somewhere

Startup time and kotlin generated classes

2019-10-19 Thread cocorossello
Hi, We have a significant part of the project written in kotlin and I can notice that tomee spends a lot of startup time in CdiScanner.tryToMakeItFail , loading kotlin generated classes like MyClass$Companion, MyClass$WhenMappings, etc. Is there any way I can exclude them out of the cdi scan?

Re: ApplicationComposer Junit 5 extension

2018-12-20 Thread cocorossello
Ok, please allow me this weekend to see what I can come up with -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

ApplicationComposer Junit 5 extension

2018-12-19 Thread cocorossello
Hi, Just in case somebody needs it I wrote Junit-jupiter extensions for ApplicationComposer and SingleApplicationComposer. They are very simple since all the work is already done, but they may save somebody's 10 minutes. public class ApplicationComposerExtension implements BeforeEachCallback,

Re: CXF customize wadl generation without spring

2018-11-15 Thread cocorossello
I haven't found how to set org.apache.cxf.endpoint.private to an existing endpoint, but anyway, I have split the web services into several and just hide private wadls with a web filter. @ApplicationPath("private-resources") public class InternalApiRestServer extends Application { ... }

Re: javaee-api 8.0 JPA

2018-11-14 Thread cocorossello
Hi, I just created https://issues.apache.org/jira/browse/OPENJPA-2758 . Feel free to close it if it's not the right place. I'd be glad to help, but I'm not using openjpa and my knowledge about it is very limited. -- Sent from:

Re: javaee-api 8.0 JPA

2018-11-13 Thread cocorossello
Shouldn't it be aligned since openjpa is now 2.2 compliant? -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

javaee-api 8.0 JPA

2018-11-13 Thread cocorossello
Hi, Using the javaee-api 8.0 library I get the following errors: AttributeOverride is not a repeatable annotation type NamedQuery is not a repeatable annotation type Is the JPA spec updated to the latest 2.2? Best regards, Vicente. -- Sent from:

Re: CDI Interceptors to intercept all EJB @Schedule methods

2018-09-20 Thread cocorossello
Sorry, I made a mistake (I made the interceptor without parameters and didn't read the tomee warnings) It works with an ejb-jar.xml http://xmlns.jcp.org/xml/ns/javaee; version="3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;

CDI Interceptors to intercept all EJB @Schedule methods

2018-09-20 Thread cocorossello
Hi, Is there any way to apply a CDI interceptor to existing @Schedule without explicitly usign @Interceptors in all methods? I haven't found anything in the spec. Or is there any easy way to create my own @Schedule CDI interceptor? Thanks in advance. -- Sent from:

Re: Tomee 8 incompatibility

2018-09-13 Thread cocorossello
https://github.com/apache/tomee/pull/164 -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Tomee 8 incompatibility

2018-09-13 Thread cocorossello
Hi, I noticed in latest tomee 8 an incompatibility between versions used in wss4j and xmlsec (2.0.6) The stacktrace is: java.lang.NoSuchMethodError: org.apache.xml.security.utils.XMLUtils.encodeToString([B)Ljava/lang/String; at

Re: [RELEASE] TomEE 7.0.5

2018-07-23 Thread cocorossello
Great news! Looking forward for a tomee 8 release, we have been using it for a couple of months now (building from source and private releases), and I can confirm that it works fine with java 10 -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: JtaEntityManager GC

2018-02-19 Thread cocorossello
Romain, one question. You said that if I was using it outside a transaction I should clear myself the entityManager. But looking at the JtaEntityManager it does nothing in that case: public void clear() { if (!extended && !isTransactionActive()) { return; }

Re: JtaEntityManager GC

2018-02-19 Thread cocorossello
Thx Chongma, but one question. Let's say I also want to use that MyRepo1 from a @Stateless @Scheduled (so no request context). How can I produce that same entityManager? -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: JtaEntityManager GC

2018-02-13 Thread cocorossello
Hi, Calling entityManager.clear() seems the best approach since most of the queries are not executed inside a transaction. But I have no idea on where I should use it or what would be a good implementation pattern. I mean, let's say I have a @ViewScoped with a couple of injected

Re: JtaEntityManager GC

2018-02-08 Thread cocorossello
My xmx is 11g right now, I need it this way or production environment will end up doing full gc. The heapdump is taken after a GC. I think the problem comes from eclipselink. We have some caches. Those caches are storing some entities which are in fact storing lazy relations. In case of a

JtaEntityManager GC

2018-02-07 Thread cocorossello
Hi, We are having some memory problems in our applications. We are using tomee 7.0.4 with eclipselink, no second cache level. Most of the application are @ApplicationScoped. Transaction is managed by container (JTA), no extended transactions at all, everything we do with persistence is through

Re: TomEE -Java EE 8 compatible or certified ?

2017-09-27 Thread cocorossello
Hi, One question about future TomEE 8. Would it be compatible with java 9? (I mean project compiled to java 9, I can run tomee 7 with java 9 runtime but I have to compile to java 8). -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: Cannot get TomEE to use Jackson

2017-08-10 Thread cocorossello
The error is a problem with hibernate and lazy collections. Try returning just a mocked object, not from database. Jackson works in tomee, to get it working you need a @Producer @Provider @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public class

tomee gradle plugin

2017-03-12 Thread cocorossello
Hi, I'm thinking of migrating to gradle, we build, start and stop our tomee with the maven plugin, so I was wondering if there are plans to implement the tomee plugin for gradle. It won't be very hard to have a dedicated pom for that and call it from gradle, but it's not the ideal situation.

Re: Java Melody

2017-03-11 Thread cocorossello
Just define the datasource with the javamelody JdbcDriver. Mine is defined in resources.xml DriverClassName net.bull.javamelody.JdbcDriver ConnectionProperties driver=org.mariadb.jdbc.Driver; JdbcDriver org.mariadb.jdbc.Driver InitialSize 5 MaxActive

Re: 7.0.3 release

2017-02-23 Thread cocorossello
Ok, thanks -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/7-0-3-release-tp4681145p4681149.html Sent from the TomEE Users mailing list archive at Nabble.com.

7.0.3 release

2017-02-23 Thread cocorossello
Hi, I would like to request, if possible, a 7.0.3 release. I read in other posts that there is nothing really pending for a (minor) new release. There are some bug fixes (most notable the CUTask one) that we have patched into our server, it's a minor inconvenience for us to work on snapshots,

Re: openejb.jpa.auto-scan error

2017-01-30 Thread cocorossello
Sure, I'll do it. I can also try to see if I can arrange a pull request for this case... I haven't looked into it but it doesn't sound too difficult (I think) -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/openejb-jpa-auto-scan-error-tp4680980p4680983.html Sent from

openejb.jpa.auto-scan error

2017-01-30 Thread cocorossello
Hi, I just tried the openejb.jpa.auto-scan switch to avoid an additional scanning, which is a very good idea. However I get an error because the provider doesn't recognise converters... maybe they should be added to the scanned classes? (I'm using eclipselink). The error says: The converter

Re: MDC and @Asynchronous

2017-01-30 Thread cocorossello
Hi, I wish we could use 1 minute timeout... travel industry is not the most advanced tecnologically some bookings take as long as 2 minutes and timeouts are very frequent. Some providers even use screen scrapping, so they are not very reliable. We use different timeouts depending on the

Re: MDC and @Asynchronous

2017-01-29 Thread cocorossello
) >> private ManagedExecutorService executor; >> >> >> >> >> Romain Manni-Bucau >> @rmannibucau <https://twitter.com/rmannibucau> | Blog >> <https://blog-rmannibucau.rhcloud.com> | Old Blog >> <http://rmannibucau.wordpress.com> |

Re: MDC and @Asynchronous

2017-01-29 Thread cocorossello
| Old Blog > <http://rmannibucau.wordpress.com> | Github <https://github.com/ > rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory > <https://javaeefactory-rmannibucau.rhcloud.com> > > 2017-01-29 13:48 GMT+01:00 cocorossel

Re: MDC and @Asynchronous

2017-01-29 Thread cocorossello
I made an ApplicationComposer test (AsyncInterceptorIT) in that github project (with latest SNAPSHOT) https://github.com/cocorossello/tomee-example -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/MDC-and-Asynchronous-tp4680927p4680971.html Sent from the TomEE Users mailing list a

Re: Tomee 7.0.2 performance

2017-01-28 Thread cocorossello
Tested, it is faster now. Thank you! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Tomee-7-0-2-performance-tp4680954p4680970.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Tomee 7.0.2 performance

2017-01-27 Thread cocorossello
No, I already tried setting that in system.properties with no luck. Regarding the security manager, I have no clue on how to do that so I guess not. I think the problem is in org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.getProvider () 0.0 ms (0%) 6,583 ms (0.7%)

Re: Tomee 7.0.2 performance

2017-01-27 Thread cocorossello
The problem has to be in JTAEntityManager.isJPA21, now is much slower. org.apache.openejb.persistence.JtaEntityManager. (String, org.apache.openejb.persistence.JtaEntityManagerRegistry, javax.persistence.EntityManagerFactory, java.util.Map, boolean, String) 91.7 ms (0.3%) 10,206 ms (1%)

Re: Tomee 7.0.2 performance

2017-01-27 Thread cocorossello
Hi, I can see that the big difference is in org.apache.openejb.persistence.JtaEntityManager. (String, org.apache.openejb.persistence.JtaEntityManagerRegistry, javax.persistence.EntityManagerFactory, java.util.Map, boolean, String) 75.6ms in 7.0.1 and 9631 in 7.0.2 (no other change involved at

Tomee 7.0.2 performance

2017-01-27 Thread cocorossello
Hi, Since I upgraded to tomee 7.0.2, from 7.0.1 I can see a signficant performance degradation, not a stopper, but I'm wondering if this has been identified. I can see that the startup time increases from 27 seconds to 35. And our end to end test suite (about 60 parallel phantomjs tests) takes

Re: MDC and @Asynchronous

2017-01-26 Thread cocorossello
Thank you! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/MDC-and-Asynchronous-tp4680927p4680946.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: MDC and @Asynchronous

2017-01-26 Thread cocorossello
I couldn't get the attachment to work , I made a github project https://github.com/cocorossello/tomee-example -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/MDC-and-Asynchronous-tp4680927p4680943.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: MDC and @Asynchronous

2017-01-26 Thread cocorossello
Hi, I think it is something related with tomee. I made a very simple webapp showing the error, just the interceptor and 1 async method. Can you please try it? mvn clean install tomee:start and go to http://localhost:8080/index.xhtml and reload 2 or 3 times, the error should happen Sorry, I

Re: MDC and @Asynchronous

2017-01-26 Thread cocorossello
I'm not using EjbContext at all. It isn't MDC problem as well, I don't really know what's going on, the inerceptor is fairly simple. @AroundInvoke public Object submitAsync(InvocationContext ctx) throws Exception { if (executor == null) { executor =

Re: MDC and @Asynchronous

2017-01-26 Thread cocorossello
Tomee 7.0.1 BTW , we didn't upgrade to 7.0.2 -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/MDC-and-Asynchronous-tp4680927p4680938.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: MDC and @Asynchronous

2017-01-26 Thread cocorossello
Since I deployed the interceptor I can see some random errors happening in different points: java.util.ConcurrentModificationException: null at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437) at java.util.HashMap$EntryIterator.next(HashMap.java:1471) at

Re: MDC and @Asynchronous

2017-01-25 Thread cocorossello
I finally went without the managedTask, simpler (I couldn't get the resource inyection, I don't know why, with priority and declaring it in beans.xml) @InterceptorBinding @Target({TYPE, METHOD}) @Retention(RUNTIME) @Inherited public @interface Async { } @Async @Interceptor public class

Re: MDC and @Asynchronous

2017-01-25 Thread cocorossello
;https://github.com/ > rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory > <https://javaeefactory-rmannibucau.rhcloud.com> > > 2017-01-25 13:24 GMT+01:00 cocorossello <[hidden email] > <http:///user/SendEmail.jtp?type=node=46809

Re: MDC and @Asynchronous

2017-01-25 Thread cocorossello
I got it, this is the code just in case anyone needs it. @InterceptorBinding @Target({TYPE, METHOD}) @Retention(RUNTIME) @Inherited public @interface Async { } @Async @Interceptor public class AsyncInterceptor implements Serializable { @Resource(name = "TravelcAsynchronousPool")

Re: Tomee 7.0.2-SNAPSHOT

2016-10-27 Thread cocorossello
No, the class not found was my issue because I disabled scanning, sorry. The point is that the apache EL implementation is being used instead of the glassfish one, it shouldn't be this way. Let me see if I can get an example. -- View this message in context:

Tomee 7.0.2-SNAPSHOT

2016-10-27 Thread cocorossello
Hi, Just a quick question about upcoming 7.0.2 release. We are using glassfish EL implementation: org.apache.myfaces.EXPRESSION_FACTORY com.sun.el.ExpressionFactoryImpl It is working fine in 7.0.1 with myfaces 2.2.11, but with tomee 7.0.2 I can see that the apache one

Re: Throttle @Asynchronous calls

2016-09-22 Thread cocorossello
Thanks Romain -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Throttle-Asynchronous-calls-tp4680188p4680190.html Sent from the TomEE Users mailing list archive at Nabble.com.

Throttle @Asynchronous calls

2016-09-22 Thread cocorossello
I have an application that calls multiple external web services and each one of them has specific limits, so I would like to throttle concurrent calls based on a just plain number (at least for now). I was about to implement a custom interceptor for this, something like: @Throttle(max=5)

tomee-maven-plugin keepServerXmlAsthis

2016-07-21 Thread cocorossello
Hi, I think there is an error in tomee-maven-plugin documentation. Doc says there is keepServerXmlAsthisattribute but it's not in the source code. In tomee-embedded-plugin the docs say that the attribute name is keepServerXmlAsThis (uppercase T). That attribute does exist in the embedded

Session failover TomEE 7.0.1

2016-07-12 Thread cocorossello
Hi, If I switch on session serialization I get an error: Cannot serialize session attribute openWebBeansSessionContext for session 90BB07C251DC2CDEF5BFFFD4FAF87335.D0 java.io.NotSerializableException: org.apache.webbeans.container.BeanManagerImpl at

How to know if any @Scheduled operation is running

2016-05-18 Thread cocorossello
Hi, I'm trying to implement an "autostop" bash (or equivalent) script for tomcat (I want to implement an "autoscaled" cluster, although I'm a newbie on this). The script would check for active sessions and stop the server (and the VM) whenever is 0, but we also need to look for active

Re: Arquillian tomee-embedded and logback

2016-04-17 Thread cocorossello
Got it, I just had to set the system property in the maven surefire plugin org.apache.maven.plugins maven-surefire-plugin

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 solve it? --

Re: Performance problems in tomee 7.0.0

2016-02-07 Thread cocorossello
Hi Romain, I don't know how to take a sample project without taking the whole entity model, which is big now. I'll try to share that jstack to see if it helps. -- View this message in context:

Re: Performance problems in tomee 7.0.0

2016-01-24 Thread cocorossello
Hi, I can confirm that the problem still exists with bval (it performs much better but still slow). The screen is a typical crud screen with a data table and a form to create/update. The list is now fast but it takes a few seconds to save the entity. The entity has several oneToMany associations

Faster startup in TomEE 7.0.0

2016-01-23 Thread cocorossello
Hi, I would like to skip some jar files from scanning so I put them in catalina.properties... tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\ tr2*.jar (I excluded all the default files from the post) Even though it's there I can see it on the logs: DEBUG

Performance problems in tomee 7.0.0

2015-12-23 Thread cocorossello
Hi, I don't know if I should report this or I should wait till final release. We are hitting performance problems with primefaces datatables with checkboxes in it listing eclipselink entities, 10 or 20 seconds to render a page. The problem is that a lot of exceptions (millions) are thrown

Re: Performance problems in tomee 7.0.0

2015-12-23 Thread cocorossello
2.6.1 But the problem is not only with eclipselink, it just becomes more evident with it. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Performance-problems-in-tomee-7-0-0-tp4677292p4677296.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Performance problems in tomee 7.0.0

2015-12-23 Thread cocorossello
I don't know how to use the container provided validator... Is there another validator besides bval? Do you think it's safe to use bval 0.5? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Performance-problems-in-tomee-7-0-0-tp4677292p4677298.html Sent from the

Re: Performance problems in tomee 7.0.0

2015-12-23 Thread cocorossello
I'll just use bval snapshot downloaded from jenkins, it works fine. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Performance-problems-in-tomee-7-0-0-tp4677292p4677300.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TomEE 7.0.0-M1 is here!

2015-12-18 Thread cocorossello
Just in case someone needs it, there is a "bug" in tomcat 8 EL implementation which converts empty request parameters into empty strings (instead of nulls) http://stackoverflow.com/questions/4192/tomcat-8-coerce-behaviour-null-strings-are-incorrectly-set-as-empty-strings -- View this

Upgrade to CDI 1.1 in tomee 1.7.2?

2015-10-21 Thread cocorossello
Hi, I have some dependencies (omnifaces) that changed to CDI 1.1 but we are still in tomee 1.7.2. I wonder if it's possible to switch CDI to 1.1 since we have a nasty startup error when DeploymentLoader tries to read the element in beans.xml file. -- View this message in context:

Re: Upgrade to CDI 1.1 in tomee 1.7.2?

2015-10-21 Thread cocorossello
We have an application which is already live but we don't have a heavy workload right now (but it will increase in the next few months hopefully), do you think we can try to upgrade to tomee 7.0.0 for production or should we stick to 1.7.2 until 7.0 is released? -- View this message in context:

Re: Upgrade to CDI 1.1 in tomee 1.7.2?

2015-10-21 Thread cocorossello
Ok, I'll wait for the answer. I just tried the latest snapshot and everything works fine so far. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Upgrade-to-CDI-1-1-in-tomee-1-7-2-tp4676543p4676550.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Upgrade myfaces version in Tomee 1.7.0

2014-08-29 Thread cocorossello
Yes, there are some differences, specially in the exception handling. I'm not in production yet so I have time to test and fix the problems. Thanks -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Upgrade-myfaces-version-in-Tomee-1-7-0-tp4671458p4671466.html Sent

Re: Session passivation and remote user

2014-08-29 Thread cocorossello
I have tried with tracking-mode, but still does not work. After the session is serialized tomcat shows login page, giving me no chance to execute a webFilter or whatever so I could just perform a request.login() with the user and password. SessionListener won't work either as the session is not