Re: I Need some help configuring apache tomee

2024-06-03 Thread Kean Erickson
Hi Fernando, Please try grabbing that postgres client driver jar from the website, place the jar in tomee's /lib folder and then set the maven artifact to scope: provided. See if that fixes the classnotfound problem https://jdbc.postgresql.org/ On Mon, Jun 3, 2024, 2:05 PM Fernando wrote: >

Re: Memory leak solved in TomEE 8.0.13 (TOMEE-2771) ?

2024-05-27 Thread Kean Erickson
IIRC there was a memory leak relating to the bval library that was fixed in tomee 8.0.5 or 8.0.6. The current final 8x tomee releases don't seem to have memory leak issues. On Mon, May 27, 2024, 12:45 AM COURTAULT Francois wrote: > THALES GROUP LIMITED DISTRIBUTION to email recipients > > Hello

Re: Second issue with simple rest application on TomEE 9.1.2

2024-04-02 Thread Kean Erickson
Hello Francois, One thing I noticed when switching to microprofile is that openapi became more strict and wouldn't document resources unless they have a @Produces and @Consumes at class level. So I set json as the default for both on each of those classes, and override where needed.

Re: Some issues with simple rest application

2024-04-01 Thread Kean Erickson
If you're on tomee plus or plume, there is a system.proprties flag needed to turn on the automatic resource scanning tomee.mp.scan = all On Mon, Apr 1, 2024, 1:16 PM COURTAULT Francois wrote: > THALES GROUP LIMITED DISTRIBUTION to email recipients > > Hello everyone, > > After having read the

Re: Logging Abandoned Connection

2023-09-28 Thread Kean Erickson
:28 PM chege wrote: > On Wed, 2023-09-27 at 11:32 -0700, Kean Erickson wrote: > > Kean > > Hi Kean, > > Thanks for the response. Before removing abandoned connections I want > to log the event. > >

Re: Logging Abandoned Connection

2023-09-27 Thread Kean Erickson
I believe you need a couple more properties for abandoned connections to be pruned: removeAbandoned="true" removeAbandonedTimeout="60" On Wed, Sep 27, 2023, 12:18 AM chege wrote: > Hi, > > I using tomee 8.0.14. I want to see which code is not closing > connections. I have set logAbandoned

Re: java.lang.LinkageError for jakarta.faces.context.ExternalContext

2023-07-24 Thread Kean Erickson
dependency> commons-fileupload commons-fileupload 1.5 runtime TomEE comes with this one. So you should be able to use scope "provided", or omit it. On Mon, Jul 24, 2023, 2:58 PM Milan Durovic wrote: > I suspected that myself and that’s why I wrote a small script that

OpenAPI under TomEE 9 microprofile

2022-11-19 Thread Kean Erickson
Hello, I'm taking a stab at migrating my project to TomEE 9.0.0.RC. Tomcat starts fine and logs are happy, but I'm receiving a 500 erorr with this message when going to the /openapi URL. This is almost certainly a configuration mistake on my part, but I was wondering if anyone could shed some

Re: Arquillian, TomEE 8.0.10, and JUnit5

2022-03-26 Thread Kean Erickson
Yes, that combo works for me for classes, but I don't know about jsf pages. If you are using maven, Make sure you're using the junit-jupiter package, and try mvn dependency:tree to make sure nothing else in your project is trying to include junit 4. You'll potentially have to excluse it for any

Re: connection pool: poisoned connection not being removed from pool

2021-01-19 Thread Kean Erickson
Hi Emmanual, I believe that is how connections that were discarded due to removeAbandoned = true. In an ideal setup you shouldnt need that flag or its timeout, becaise the transactions should be too fast to go that long Also some versions before tomee 8.0.5 have a memory leak in the version of

Re: After upgrading from Tomee 7.1.3 to 8.0.3, began receiving ConcurrentAccessTimeoutException

2020-10-06 Thread Kean Erickson
in a stateless pool would wind up being somehow smaller, to the point that the pool runs out? On Sat, Oct 3, 2020 at 10:57 PM Kean Erickson wrote: > I am using a BeanManager to acquire classes annotated @Stateless in > multiple threads. This worked fine in 7.1.3, but now in 8.0.3 I'm rec

After upgrading from Tomee 7.1.3 to 8.0.3, began receiving ConcurrentAccessTimeoutException

2020-10-03 Thread Kean Erickson
I am using a BeanManager to acquire classes annotated @Stateless in multiple threads. This worked fine in 7.1.3, but now in 8.0.3 I'm receiving this error: javax.ejb.ConcurrentAccessTimeoutException: No instances available in Stateless Session Bean pool. Waited 30 SECONDS I see a number of

TomEE webprofile 8.0.4

2020-09-10 Thread Kean Erickson
Hello all, I was wondering why webprofile 8.0.4 isn't available on the downloads page. https://tomee.apache.org/download-ng.html It's been this way since it was released about a month ago. The other download options seem to work fine. Thanks, -Kean

Re: Tomee 7.1.1: when there is an exception during JAXB marshaling, an incomplete response is sent with a 200 code

2019-09-25 Thread Kean Erickson
appen consistently or randomly when accessing this > endpoint? > > Jon > > On Wed, Sep 25, 2019 at 12:50 AM Kean Erickson > wrote: > > > I would file this in JIRA but I'm having login troubles at the minute, I > > want to put this here in case I forget because it de

Tomee 7.1.1: when there is an exception during JAXB marshaling, an incomplete response is sent with a 200 code

2019-09-24 Thread Kean Erickson
I would file this in JIRA but I'm having login troubles at the minute, I want to put this here in case I forget because it definitely seems like a bug, albeit one that only happens in a buggy usecase. The line "for (String s : stuffs)" below creates an NPE, but the problem is that the response is

Re: NullPointerException when acquiring injected EntityManager in TomEE 1.7.1

2019-07-26 Thread Kean Erickson
know that example is using OpenJPA and not hibernate, I'm wondering if I'm missing something or if this is a bug. On Wed, Jul 24, 2019 at 4:07 PM Kean Erickson wrote: > I have an EJB class annotated @Singleton and @Startup. > This class in turn contains an @Inject-ed EJB that is @Sta

NullPointerException when acquiring injected EntityManager in TomEE 1.7.1

2019-07-24 Thread Kean Erickson
I have an EJB class annotated @Singleton and @Startup. This class in turn contains an @Inject-ed EJB that is @Stateless, and this stateless EJB has a @Persistence EntityManager. I'm finding that, when my startup code runs and calls into the stateless, its EntityManager is still null (see

Re: cxf version change between 7.0.5 to 7.1.0

2019-05-31 Thread Kean Erickson
Something did change relating to Johnzon between these two versions. It became more strict about getter / setter naming convention, specifically such that a getter called getID for a prop called id needed to be renamed with a lowercase D in order to have the property be included in a response. On

ScheduledExpression: for some wildcard expressions, getting "Fail to parse schedule expression"

2019-05-13 Thread Kean Erickson
Hello, I've noticed that scheduled expressions will fail when using wildcards with a number greater than the maximum unit. For example, if I set a schedule to run every 60 minutes (as opposed to 59, which works): ScheduleExpression expression = new ScheduleExpression();

Tomee 7.1.0 webprofile: "Unknown error in assembler"

2019-03-21 Thread Kean Erickson
This error has only happened once and I don't need any sort of resolution on it, just wanted to share the log because it implored me to do so: "[junit] SEVERE: FATAL ERROR: Unknown error in Assembler. Please send the following stack trace and this message to users@tomee.apache.org" I ran into

Re: JsonReader.readObject() fails with ArrayIndexOutOfBoundsException when a string is too long, but is full of backslashes?

2019-02-26 Thread Kean Erickson
newer version of Johnzon. > > LieGrue, > strub > > > > Am 26.02.2019 um 20:54 schrieb Kean Erickson : > > > > Sorry to reply to my own email but one more question on that--if I am to > > set "org.apache.johnzon.max-string-length", is there any

Re: JsonReader.readObject() fails with ArrayIndexOutOfBoundsException when a string is too long, but is full of backslashes?

2019-02-26 Thread Kean Erickson
rning goes away even though that would have resulted in the limit being lowered if the "Too many characters" error message were correct.. So I'm not really sure what's going on. On Mon, Feb 25, 2019 at 5:19 PM Kean Erickson wrote: > I'm using TomEE webprofile 7.04 in an exploded

JsonReader.readObject() fails with ArrayIndexOutOfBoundsException when a string is too long, but is full of backslashes?

2019-02-25 Thread Kean Erickson
I'm using TomEE webprofile 7.04 in an exploded WAR deployment. I need to use JsonReader's readObject() to read from a JsonReader created from a string, but the JsonReader's readObject() call fails ineloquently when the object read is too long. I unfortunately haven't been able to find a way to

Re: Obtaining tomee.xml resource properties?

2018-11-27 Thread Kean Erickson
e="config") > private TomeeConfiguration config; > > In a managed class to inject it. If you do a new tomee does nothing. > > Le mar. 27 nov. 2018 04:48, Kean Erickson a > écrit : > > > Thank you, that sounds like it'll work. I'm finding that getProperties() > on

Re: Obtaining tomee.xml resource properties?

2018-11-26 Thread Kean Erickson
now how you get on - if you're stuck, I can dig out an example. > > Kind Regards > > Jon > > On Sun, Nov 25, 2018 at 10:47 PM Romain Manni-Bucau > > wrote: > > > Guess you want to read > > http://tomee.apache.org/admin/configuration/index.html - doc is m

Obtaining tomee.xml resource properties?

2018-11-25 Thread Kean Erickson
The docs mention a way of obtaining properties in code from a resource in Tomee.xml, under "Custom resources" http://tomee.apache.org/application-resources.html ..such that I could denote a class-name on the resource pointing to a configuration class (which would be pretty boilerplate, judging

JAX-RS: deserialization of org.json.JSONObject

2018-10-16 Thread Kean Erickson
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 catch is that every json object nested inside is itself nested as a value with a key called "map", such that if I had a structure like

Re: Encountering "ConcurrentAccessTimeoutException" when making high-volume calls to @Stateless classes

2018-10-10 Thread Kean Erickson
rce config look like (remove anything sensitive, > like passwords etc)? > > Jon > > On Wed, Oct 10, 2018 at 7:13 PM Kean Erickson > wrote: > > > Sure, thread dump is attached. I had to censor out references to my code, > > but calls in the Stateless class in

Encountering "ConcurrentAccessTimeoutException" when making high-volume calls to @Stateless classes

2018-10-09 Thread Kean Erickson
I'm using TomEE 7.0.4, EJB version 3.1 I often see this when making a high volume of calls to methods in @Stateless classes: javax.ejb.ConcurrentAccessTimeoutException: No instances available in Stateless Session Bean pool. Waited 30 SECONDS I've set maxSize to 1000 in my tomee.xml and I still