[jira] [Work logged] (TOMEE-4351) Jakarta Security 3.0
[ https://issues.apache.org/jira/browse/TOMEE-4351?focusedWorklogId=923118=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-923118 ] ASF GitHub Bot logged work on TOMEE-4351: - Author: ASF GitHub Bot Created on: 12/Jun/24 10:56 Start Date: 12/Jun/24 10:56 Worklog Time Spent: 10m Work Description: jungm commented on PR #1178: URL: https://github.com/apache/tomee/pull/1178#issuecomment-2162710500 what really needs a closer look and maybe needs to be discussed: - JWT Validation is using jose.4.j, this introduces a new dependency in all tomee flavours (wasn't in webprofile before). Maybe it needs to be added in some notice file? - Spec mentions a special variable that can be used in the annotation: ${baseURL}, I implemented this with producing an @Named String - I built a basic delegate in OpenIdAuthenticationMechanismDefinitionDelegate that automatically resolves the configuration from the openid provider - SavedRequest (originally from @LoginToContinue) has been rewritten so I can serialize it for use in cookies - Spec is ambiguous on how to handle subjectTypeSupported, idTokenSigningAlgorithmsSupported and responseTypeSupported (See CompositeOpenIdProviderMetadata). A user can override these, but it's not obvious if that has been done or not. I handled these the same way soteria does, but it's probably worth a spec issue in the future? - Requests to openid provider are done using JAX-RS Client, maybe we want to use something else in TomEE? Really the only reason I chose this was because it's convenient (See https://lists.apache.org/thread/sghf41f1z75gpnhpf236o1lrj1sl4vr8 for whole thread on mailing list) Issue Time Tracking --- Worklog Id: (was: 923118) Time Spent: 1h 10m (was: 1h) > Jakarta Security 3.0 > > > Key: TOMEE-4351 > URL: https://issues.apache.org/jira/browse/TOMEE-4351 > Project: TomEE > Issue Type: New Feature >Reporter: Richard Zowalla >Assignee: Markus Jung >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4351) Jakarta Security 3.0
[ https://issues.apache.org/jira/browse/TOMEE-4351?focusedWorklogId=922298=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922298 ] ASF GitHub Bot logged work on TOMEE-4351: - Author: ASF GitHub Bot Created on: 06/Jun/24 07:03 Start Date: 06/Jun/24 07:03 Worklog Time Spent: 10m Work Description: rzo1 commented on code in PR #1178: URL: https://github.com/apache/tomee/pull/1178#discussion_r1628883109 ## examples/security-openid/pom.xml: ## @@ -0,0 +1,119 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> +4.0.0 +org.superbiz +security-openid +10.0.0-M2-SNAPSHOT +war + +TomEE :: Examples :: Jakarta Security OpenID Connect + + +UTF-8 +10.0.0-M2-SNAPSHOT +3.0.2 +5.8.2 Review Comment: Yep. Let's leave it as is and update everything later ;-) Issue Time Tracking --- Worklog Id: (was: 922298) Time Spent: 1h (was: 50m) > Jakarta Security 3.0 > > > Key: TOMEE-4351 > URL: https://issues.apache.org/jira/browse/TOMEE-4351 > Project: TomEE > Issue Type: New Feature >Reporter: Richard Zowalla >Assignee: Markus Jung >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 1h > Remaining Estimate: 0h > > as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
[ https://issues.apache.org/jira/browse/TOMEE-4350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17852655#comment-17852655 ] Markus Jung commented on TOMEE-4350: [~rzo1] do we need to mark this somehow as a breaking change? Applications that rely on Jsonb being available in CDI will of course be broken by this > mp-jwt: Add qualifier for produced Jsonb > > > Key: TOMEE-4350 > URL: https://issues.apache.org/jira/browse/TOMEE-4350 > Project: TomEE > Issue Type: Improvement > Components: TomEE Core Server >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Markus Jung >Assignee: Markus Jung >Priority: Minor > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: reproducer.zip > > Time Spent: 40m > Remaining Estimate: 0h > > JsonbProducer currently produces an unqalified Jsonb, making it impossible > for the application to define its own producer: > [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] > > This results in the following deployment error when OWB starts up (reproducer > attached): > {code:java} > 05-Jun-2024 15:48:31.010 SEVERE [main] > org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module > deployment failed > org.apache.webbeans.exception.WebBeansDeploymentException: > jakarta.enterprise.inject.AmbiguousResolutionException: There is more than > one Bean with type jakarta.json.bind.Jsonb Qualifiers: > [@jakarta.enterprise.inject.Default()] > for injection into Field Injection Point, field name : jsonb, Bean Owner : > [ExampleBean, WebBeansType:MANAGED, Name:null, API > Types:[java.lang.Object,org.example.ExampleBean], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter > prise.inject.Any]] > found beans: > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.example.JsonbProducer.createJsonb() from > file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() > from > jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4351) Jakarta Security 3.0
[ https://issues.apache.org/jira/browse/TOMEE-4351?focusedWorklogId=922295=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922295 ] ASF GitHub Bot logged work on TOMEE-4351: - Author: ASF GitHub Bot Created on: 06/Jun/24 06:46 Start Date: 06/Jun/24 06:46 Worklog Time Spent: 10m Work Description: jungm commented on code in PR #1178: URL: https://github.com/apache/tomee/pull/1178#discussion_r1628865306 ## examples/security-openid/pom.xml: ## @@ -0,0 +1,119 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> +4.0.0 +org.superbiz +security-openid +10.0.0-M2-SNAPSHOT +war + +TomEE :: Examples :: Jakarta Security OpenID Connect + + +UTF-8 +10.0.0-M2-SNAPSHOT +3.0.2 +5.8.2 Review Comment: No reason as to why i chose this other than all the other examples being on 5.8.2 as well (even on main) Issue Time Tracking --- Worklog Id: (was: 922295) Time Spent: 50m (was: 40m) > Jakarta Security 3.0 > > > Key: TOMEE-4351 > URL: https://issues.apache.org/jira/browse/TOMEE-4351 > Project: TomEE > Issue Type: New Feature >Reporter: Richard Zowalla >Assignee: Markus Jung >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 50m > Remaining Estimate: 0h > > as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4351) Jakarta Security 3.0
[ https://issues.apache.org/jira/browse/TOMEE-4351?focusedWorklogId=922294=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922294 ] ASF GitHub Bot logged work on TOMEE-4351: - Author: ASF GitHub Bot Created on: 06/Jun/24 06:45 Start Date: 06/Jun/24 06:45 Worklog Time Spent: 10m Work Description: rzo1 commented on code in PR #1178: URL: https://github.com/apache/tomee/pull/1178#discussion_r1628863998 ## examples/security-openid/pom.xml: ## @@ -0,0 +1,119 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> +4.0.0 +org.superbiz +security-openid +10.0.0-M2-SNAPSHOT +war + +TomEE :: Examples :: Jakarta Security OpenID Connect + + +UTF-8 +10.0.0-M2-SNAPSHOT +3.0.2 +5.8.2 +1.7.0.Final Review Comment: https://github.com/apache/tomee/commit/1e1df457855c37420e231a1a825052941dc2af1d Issue Time Tracking --- Worklog Id: (was: 922294) Time Spent: 40m (was: 0.5h) > Jakarta Security 3.0 > > > Key: TOMEE-4351 > URL: https://issues.apache.org/jira/browse/TOMEE-4351 > Project: TomEE > Issue Type: New Feature >Reporter: Richard Zowalla >Assignee: Markus Jung >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 40m > Remaining Estimate: 0h > > as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4351) Jakarta Security 3.0
[ https://issues.apache.org/jira/browse/TOMEE-4351?focusedWorklogId=922293=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922293 ] ASF GitHub Bot logged work on TOMEE-4351: - Author: ASF GitHub Bot Created on: 06/Jun/24 06:44 Start Date: 06/Jun/24 06:44 Worklog Time Spent: 10m Work Description: jungm commented on code in PR #1178: URL: https://github.com/apache/tomee/pull/1178#discussion_r1628863010 ## examples/security-openid/pom.xml: ## @@ -0,0 +1,119 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> +4.0.0 +org.superbiz +security-openid +10.0.0-M2-SNAPSHOT +war + +TomEE :: Examples :: Jakarta Security OpenID Connect + + +UTF-8 +10.0.0-M2-SNAPSHOT +3.0.2 +5.8.2 +1.7.0.Final Review Comment: 1.7.1.Final apparently https://github.com/apache/tomee/commit/92c924671d0cb1b1029e6b046a37b101efbc1e8a, my branch just didn't contain this commit yet that's why I used 1.7.0.Final I'll rebase/merge and update it Issue Time Tracking --- Worklog Id: (was: 922293) Time Spent: 0.5h (was: 20m) > Jakarta Security 3.0 > > > Key: TOMEE-4351 > URL: https://issues.apache.org/jira/browse/TOMEE-4351 > Project: TomEE > Issue Type: New Feature >Reporter: Richard Zowalla >Assignee: Markus Jung >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 0.5h > Remaining Estimate: 0h > > as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4351) Jakarta Security 3.0
[ https://issues.apache.org/jira/browse/TOMEE-4351?focusedWorklogId=922292=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922292 ] ASF GitHub Bot logged work on TOMEE-4351: - Author: ASF GitHub Bot Created on: 06/Jun/24 06:43 Start Date: 06/Jun/24 06:43 Worklog Time Spent: 10m Work Description: jungm commented on code in PR #1178: URL: https://github.com/apache/tomee/pull/1178#discussion_r1628861342 ## tomee/tomee-security/pom.xml: ## @@ -94,13 +94,25 @@ bval-jsr + + org.bitbucket.b_c + jose4j + 0.9.6 Review Comment: yeah absolutely makes sense Issue Time Tracking --- Worklog Id: (was: 922292) Time Spent: 20m (was: 10m) > Jakarta Security 3.0 > > > Key: TOMEE-4351 > URL: https://issues.apache.org/jira/browse/TOMEE-4351 > Project: TomEE > Issue Type: New Feature >Reporter: Richard Zowalla >Assignee: Markus Jung >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 20m > Remaining Estimate: 0h > > as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4351) Jakarta Security 3.0
[ https://issues.apache.org/jira/browse/TOMEE-4351?focusedWorklogId=922287=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922287 ] ASF GitHub Bot logged work on TOMEE-4351: - Author: ASF GitHub Bot Created on: 06/Jun/24 06:22 Start Date: 06/Jun/24 06:22 Worklog Time Spent: 10m Work Description: rzo1 commented on code in PR #1178: URL: https://github.com/apache/tomee/pull/1178#discussion_r1625899112 ## examples/security-openid/pom.xml: ## @@ -0,0 +1,119 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> +4.0.0 +org.superbiz +security-openid +10.0.0-M2-SNAPSHOT +war + +TomEE :: Examples :: Jakarta Security OpenID Connect + + +UTF-8 +10.0.0-M2-SNAPSHOT +3.0.2 +5.8.2 +1.7.0.Final Review Comment: Think we are on `1.8.0.Final`. ## tomee/tomee-security/pom.xml: ## @@ -94,13 +94,25 @@ bval-jsr + + org.bitbucket.b_c + jose4j + 0.9.6 Review Comment: Might be good to have this as a property (as well as the same one in `mp-jwt` to avoid version ambiquity? ## examples/security-openid/pom.xml: ## @@ -0,0 +1,119 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> +4.0.0 +org.superbiz +security-openid +10.0.0-M2-SNAPSHOT +war + +TomEE :: Examples :: Jakarta Security OpenID Connect + + +UTF-8 +10.0.0-M2-SNAPSHOT +3.0.2 +5.8.2 Review Comment: `5.10.2` ? Issue Time Tracking --- Worklog Id: (was: 922287) Remaining Estimate: 0h Time Spent: 10m > Jakarta Security 3.0 > > > Key: TOMEE-4351 > URL: https://issues.apache.org/jira/browse/TOMEE-4351 > Project: TomEE > Issue Type: New Feature >Reporter: Richard Zowalla >Assignee: Markus Jung >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > > as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
[ https://issues.apache.org/jira/browse/TOMEE-4350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4350. Fix Version/s: 10.0.0-M2 9.1.4 Resolution: Fixed > mp-jwt: Add qualifier for produced Jsonb > > > Key: TOMEE-4350 > URL: https://issues.apache.org/jira/browse/TOMEE-4350 > Project: TomEE > Issue Type: Improvement > Components: TomEE Core Server >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Markus Jung >Assignee: Markus Jung >Priority: Minor > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: reproducer.zip > > Time Spent: 40m > Remaining Estimate: 0h > > JsonbProducer currently produces an unqalified Jsonb, making it impossible > for the application to define its own producer: > [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] > > This results in the following deployment error when OWB starts up (reproducer > attached): > {code:java} > 05-Jun-2024 15:48:31.010 SEVERE [main] > org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module > deployment failed > org.apache.webbeans.exception.WebBeansDeploymentException: > jakarta.enterprise.inject.AmbiguousResolutionException: There is more than > one Bean with type jakarta.json.bind.Jsonb Qualifiers: > [@jakarta.enterprise.inject.Default()] > for injection into Field Injection Point, field name : jsonb, Bean Owner : > [ExampleBean, WebBeansType:MANAGED, Name:null, API > Types:[java.lang.Object,org.example.ExampleBean], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter > prise.inject.Any]] > found beans: > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.example.JsonbProducer.createJsonb() from > file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() > from > jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
[ https://issues.apache.org/jira/browse/TOMEE-4350?focusedWorklogId=922284=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922284 ] ASF GitHub Bot logged work on TOMEE-4350: - Author: ASF GitHub Bot Created on: 06/Jun/24 06:15 Start Date: 06/Jun/24 06:15 Worklog Time Spent: 10m Work Description: rzo1 merged PR #1190: URL: https://github.com/apache/tomee/pull/1190 Issue Time Tracking --- Worklog Id: (was: 922284) Time Spent: 0.5h (was: 20m) > mp-jwt: Add qualifier for produced Jsonb > > > Key: TOMEE-4350 > URL: https://issues.apache.org/jira/browse/TOMEE-4350 > Project: TomEE > Issue Type: Improvement > Components: TomEE Core Server >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Markus Jung >Assignee: Markus Jung >Priority: Minor > Attachments: reproducer.zip > > Time Spent: 0.5h > Remaining Estimate: 0h > > JsonbProducer currently produces an unqalified Jsonb, making it impossible > for the application to define its own producer: > [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] > > This results in the following deployment error when OWB starts up (reproducer > attached): > {code:java} > 05-Jun-2024 15:48:31.010 SEVERE [main] > org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module > deployment failed > org.apache.webbeans.exception.WebBeansDeploymentException: > jakarta.enterprise.inject.AmbiguousResolutionException: There is more than > one Bean with type jakarta.json.bind.Jsonb Qualifiers: > [@jakarta.enterprise.inject.Default()] > for injection into Field Injection Point, field name : jsonb, Bean Owner : > [ExampleBean, WebBeansType:MANAGED, Name:null, API > Types:[java.lang.Object,org.example.ExampleBean], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter > prise.inject.Any]] > found beans: > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.example.JsonbProducer.createJsonb() from > file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() > from > jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
[ https://issues.apache.org/jira/browse/TOMEE-4350?focusedWorklogId=922285=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922285 ] ASF GitHub Bot logged work on TOMEE-4350: - Author: ASF GitHub Bot Created on: 06/Jun/24 06:15 Start Date: 06/Jun/24 06:15 Worklog Time Spent: 10m Work Description: rzo1 merged PR #1189: URL: https://github.com/apache/tomee/pull/1189 Issue Time Tracking --- Worklog Id: (was: 922285) Time Spent: 40m (was: 0.5h) > mp-jwt: Add qualifier for produced Jsonb > > > Key: TOMEE-4350 > URL: https://issues.apache.org/jira/browse/TOMEE-4350 > Project: TomEE > Issue Type: Improvement > Components: TomEE Core Server >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Markus Jung >Assignee: Markus Jung >Priority: Minor > Attachments: reproducer.zip > > Time Spent: 40m > Remaining Estimate: 0h > > JsonbProducer currently produces an unqalified Jsonb, making it impossible > for the application to define its own producer: > [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] > > This results in the following deployment error when OWB starts up (reproducer > attached): > {code:java} > 05-Jun-2024 15:48:31.010 SEVERE [main] > org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module > deployment failed > org.apache.webbeans.exception.WebBeansDeploymentException: > jakarta.enterprise.inject.AmbiguousResolutionException: There is more than > one Bean with type jakarta.json.bind.Jsonb Qualifiers: > [@jakarta.enterprise.inject.Default()] > for injection into Field Injection Point, field name : jsonb, Bean Owner : > [ExampleBean, WebBeansType:MANAGED, Name:null, API > Types:[java.lang.Object,org.example.ExampleBean], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter > prise.inject.Any]] > found beans: > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.example.JsonbProducer.createJsonb() from > file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() > from > jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4351) Jakarta Security 3.0
Richard Zowalla created TOMEE-4351: -- Summary: Jakarta Security 3.0 Key: TOMEE-4351 URL: https://issues.apache.org/jira/browse/TOMEE-4351 Project: TomEE Issue Type: New Feature Reporter: Richard Zowalla Assignee: Markus Jung Fix For: 10.0.0-M2 as the title says. Mainly OIDC -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Assigned] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
[ https://issues.apache.org/jira/browse/TOMEE-4350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla reassigned TOMEE-4350: -- Assignee: Markus Jung > mp-jwt: Add qualifier for produced Jsonb > > > Key: TOMEE-4350 > URL: https://issues.apache.org/jira/browse/TOMEE-4350 > Project: TomEE > Issue Type: Improvement > Components: TomEE Core Server >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Markus Jung >Assignee: Markus Jung >Priority: Minor > Attachments: reproducer.zip > > Time Spent: 20m > Remaining Estimate: 0h > > JsonbProducer currently produces an unqalified Jsonb, making it impossible > for the application to define its own producer: > [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] > > This results in the following deployment error when OWB starts up (reproducer > attached): > {code:java} > 05-Jun-2024 15:48:31.010 SEVERE [main] > org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module > deployment failed > org.apache.webbeans.exception.WebBeansDeploymentException: > jakarta.enterprise.inject.AmbiguousResolutionException: There is more than > one Bean with type jakarta.json.bind.Jsonb Qualifiers: > [@jakarta.enterprise.inject.Default()] > for injection into Field Injection Point, field name : jsonb, Bean Owner : > [ExampleBean, WebBeansType:MANAGED, Name:null, API > Types:[java.lang.Object,org.example.ExampleBean], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter > prise.inject.Any]] > found beans: > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.example.JsonbProducer.createJsonb() from > file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() > from > jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
[ https://issues.apache.org/jira/browse/TOMEE-4350?focusedWorklogId=922280=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922280 ] ASF GitHub Bot logged work on TOMEE-4350: - Author: ASF GitHub Bot Created on: 06/Jun/24 05:15 Start Date: 06/Jun/24 05:15 Worklog Time Spent: 10m Work Description: jungm opened a new pull request, #1190: URL: https://github.com/apache/tomee/pull/1190 resolves https://issues.apache.org/jira/browse/TOMEE-4350 by backporting #1189 to tomee-9.x Issue Time Tracking --- Worklog Id: (was: 922280) Time Spent: 20m (was: 10m) > mp-jwt: Add qualifier for produced Jsonb > > > Key: TOMEE-4350 > URL: https://issues.apache.org/jira/browse/TOMEE-4350 > Project: TomEE > Issue Type: Improvement > Components: TomEE Core Server >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Markus Jung >Priority: Minor > Attachments: reproducer.zip > > Time Spent: 20m > Remaining Estimate: 0h > > JsonbProducer currently produces an unqalified Jsonb, making it impossible > for the application to define its own producer: > [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] > > This results in the following deployment error when OWB starts up (reproducer > attached): > {code:java} > 05-Jun-2024 15:48:31.010 SEVERE [main] > org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module > deployment failed > org.apache.webbeans.exception.WebBeansDeploymentException: > jakarta.enterprise.inject.AmbiguousResolutionException: There is more than > one Bean with type jakarta.json.bind.Jsonb Qualifiers: > [@jakarta.enterprise.inject.Default()] > for injection into Field Injection Point, field name : jsonb, Bean Owner : > [ExampleBean, WebBeansType:MANAGED, Name:null, API > Types:[java.lang.Object,org.example.ExampleBean], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter > prise.inject.Any]] > found beans: > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.example.JsonbProducer.createJsonb() from > file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() > from > jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
[ https://issues.apache.org/jira/browse/TOMEE-4350?focusedWorklogId=922203=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922203 ] ASF GitHub Bot logged work on TOMEE-4350: - Author: ASF GitHub Bot Created on: 05/Jun/24 14:38 Start Date: 05/Jun/24 14:38 Worklog Time Spent: 10m Work Description: jungm opened a new pull request, #1189: URL: https://github.com/apache/tomee/pull/1189 resolves https://issues.apache.org/jira/browse/TOMEE-4350 Issue Time Tracking --- Worklog Id: (was: 922203) Remaining Estimate: 0h Time Spent: 10m > mp-jwt: Add qualifier for produced Jsonb > > > Key: TOMEE-4350 > URL: https://issues.apache.org/jira/browse/TOMEE-4350 > Project: TomEE > Issue Type: Improvement > Components: TomEE Core Server >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Markus Jung >Priority: Minor > Attachments: reproducer.zip > > Time Spent: 10m > Remaining Estimate: 0h > > JsonbProducer currently produces an unqalified Jsonb, making it impossible > for the application to define its own producer: > [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] > > This results in the following deployment error when OWB starts up (reproducer > attached): > {code:java} > 05-Jun-2024 15:48:31.010 SEVERE [main] > org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module > deployment failed > org.apache.webbeans.exception.WebBeansDeploymentException: > jakarta.enterprise.inject.AmbiguousResolutionException: There is more than > one Bean with type jakarta.json.bind.Jsonb Qualifiers: > [@jakarta.enterprise.inject.Default()] > for injection into Field Injection Point, field name : jsonb, Bean Owner : > [ExampleBean, WebBeansType:MANAGED, Name:null, API > Types:[java.lang.Object,org.example.ExampleBean], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter > prise.inject.Any]] > found beans: > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.example.JsonbProducer.createJsonb() from > file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class > Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API > Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], > Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], > Producer Method: public jakarta.j > son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() > from > jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4350) mp-jwt: Add qualifier for produced Jsonb
Markus Jung created TOMEE-4350: -- Summary: mp-jwt: Add qualifier for produced Jsonb Key: TOMEE-4350 URL: https://issues.apache.org/jira/browse/TOMEE-4350 Project: TomEE Issue Type: Improvement Components: TomEE Core Server Affects Versions: 9.1.3, 10.0.0-M1 Reporter: Markus Jung Attachments: reproducer.zip JsonbProducer currently produces an unqalified Jsonb, making it impossible for the application to define its own producer: [https://github.com/apache/tomee/blob/tomee-project-10.0.0-M1/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.java] This results in the following deployment error when OWB starts up (reproducer attached): {code:java} 05-Jun-2024 15:48:31.010 SEVERE [main] org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module deployment failed org.apache.webbeans.exception.WebBeansDeploymentException: jakarta.enterprise.inject.AmbiguousResolutionException: There is more than one Bean with type jakarta.json.bind.Jsonb Qualifiers: [@jakarta.enterprise.inject.Default()] for injection into Field Injection Point, field name : jsonb, Bean Owner : [ExampleBean, WebBeansType:MANAGED, Name:null, API Types:[java.lang.Object,org.example.ExampleBean], Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enter prise.inject.Any]] found beans: Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], Producer Method: public jakarta.j son.bind.Jsonb org.example.JsonbProducer.createJsonb() from file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/webapps/tomee-embedded-mp-1.0-SNAPSHOT/WEB-INF/classes/org/example/JsonbProducer.class Jsonb, WebBeansType:PRODUCERMETHOD, Name:null, API Types:[java.lang.Object,jakarta.json.bind.Jsonb,java.lang.AutoCloseable], Qualifiers:[jakarta.enterprise.inject.Default,jakarta.enterprise.inject.Any], Producer Method: public jakarta.j son.bind.Jsonb org.apache.tomee.microprofile.jwt.cdi.JsonbProducer.create() from jar:file:/home/markus/tmp/tomee-jsonb-unqalified/target/apache-tomee/lib/mp-jwt-10.0.0-M1.jar!/org/apache/tomee/microprofile/jwt/cdi/JsonbProducer.class {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4329) Fix Metrics examples to comply with Metrics 5
[ https://issues.apache.org/jira/browse/TOMEE-4329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4329: --- Affects Version/s: 10.0.0-M2 > Fix Metrics examples to comply with Metrics 5 > - > > Key: TOMEE-4329 > URL: https://issues.apache.org/jira/browse/TOMEE-4329 > Project: TomEE > Issue Type: Task >Affects Versions: 10.0.0-M2 >Reporter: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > > org.superbiz.rest.WeatherServiceTest.testCountedMetricMetadata > org.superbiz.rest.WeatherServiceTest.testCountedMetric > org.superbiz.histogram.WeatherServiceTest.testHistogramMetric > org.superbiz.histogram.WeatherServiceTest.testHistogramMetricMetadata > org.superbiz.rest.WeatherServiceTest.testGaugeMetricMetadata > org.superbiz.rest.WeatherServiceTest.testGaugeMetric -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4329) Fix Metrics examples to comply with Metrics 5
[ https://issues.apache.org/jira/browse/TOMEE-4329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4329: --- Fix Version/s: (was: 10.0.0-M2) > Fix Metrics examples to comply with Metrics 5 > - > > Key: TOMEE-4329 > URL: https://issues.apache.org/jira/browse/TOMEE-4329 > Project: TomEE > Issue Type: Task >Affects Versions: 10.0.0-M2 >Reporter: Richard Zowalla >Priority: Major > > org.superbiz.rest.WeatherServiceTest.testCountedMetricMetadata > org.superbiz.rest.WeatherServiceTest.testCountedMetric > org.superbiz.histogram.WeatherServiceTest.testHistogramMetric > org.superbiz.histogram.WeatherServiceTest.testHistogramMetricMetadata > org.superbiz.rest.WeatherServiceTest.testGaugeMetricMetadata > org.superbiz.rest.WeatherServiceTest.testGaugeMetric -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4335) Jetty 11.0.20
[ https://issues.apache.org/jira/browse/TOMEE-4335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4335. Resolution: Fixed > Jetty 11.0.20 > - > > Key: TOMEE-4335 > URL: https://issues.apache.org/jira/browse/TOMEE-4335 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4349) ECJ 3.37.0
[ https://issues.apache.org/jira/browse/TOMEE-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4349. Resolution: Fixed > ECJ 3.37.0 > -- > > Key: TOMEE-4349 > URL: https://issues.apache.org/jira/browse/TOMEE-4349 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4349) ECJ 3.37.0
[ https://issues.apache.org/jira/browse/TOMEE-4349?focusedWorklogId=921701=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-921701 ] ASF GitHub Bot logged work on TOMEE-4349: - Author: ASF GitHub Bot Created on: 03/Jun/24 08:27 Start Date: 03/Jun/24 08:27 Worklog Time Spent: 10m Work Description: rzo1 merged PR #1185: URL: https://github.com/apache/tomee/pull/1185 Issue Time Tracking --- Worklog Id: (was: 921701) Remaining Estimate: 0h Time Spent: 10m > ECJ 3.37.0 > -- > > Key: TOMEE-4349 > URL: https://issues.apache.org/jira/browse/TOMEE-4349 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4349) ECJ 3.37.0
Richard Zowalla created TOMEE-4349: -- Summary: ECJ 3.37.0 Key: TOMEE-4349 URL: https://issues.apache.org/jira/browse/TOMEE-4349 Project: TomEE Issue Type: Dependency upgrade Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4348) Smallrye Config 3.8.2
[ https://issues.apache.org/jira/browse/TOMEE-4348?focusedWorklogId=921699=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-921699 ] ASF GitHub Bot logged work on TOMEE-4348: - Author: ASF GitHub Bot Created on: 03/Jun/24 08:20 Start Date: 03/Jun/24 08:20 Worklog Time Spent: 10m Work Description: rzo1 merged PR #1184: URL: https://github.com/apache/tomee/pull/1184 Issue Time Tracking --- Worklog Id: (was: 921699) Remaining Estimate: 0h Time Spent: 10m > Smallrye Config 3.8.2 > - > > Key: TOMEE-4348 > URL: https://issues.apache.org/jira/browse/TOMEE-4348 > Project: TomEE > Issue Type: Dependency upgrade >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4348) Smallrye Config 3.8.2
Richard Zowalla created TOMEE-4348: -- Summary: Smallrye Config 3.8.2 Key: TOMEE-4348 URL: https://issues.apache.org/jira/browse/TOMEE-4348 Project: TomEE Issue Type: Dependency upgrade Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4348) Smallrye Config 3.8.2
[ https://issues.apache.org/jira/browse/TOMEE-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4348. Resolution: Fixed > Smallrye Config 3.8.2 > - > > Key: TOMEE-4348 > URL: https://issues.apache.org/jira/browse/TOMEE-4348 > Project: TomEE > Issue Type: Dependency upgrade >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4347) Smallrye MP Extension are activated even if tomee.mp.scan="none"
[ https://issues.apache.org/jira/browse/TOMEE-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4347. Resolution: Fixed > Smallrye MP Extension are activated even if tomee.mp.scan="none" > > > Key: TOMEE-4347 > URL: https://issues.apache.org/jira/browse/TOMEE-4347 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > > Since we switched to Smallrye, some of the CDI extensions are activated > regardless of the value of tomee.scan.mp > > We should only activate these extensions, if tomee.scan.mp is actually set. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4347) Smallrye MP Extension are activated even if tomee.mp.scan="none"
Richard Zowalla created TOMEE-4347: -- Summary: Smallrye MP Extension are activated even if tomee.mp.scan="none" Key: TOMEE-4347 URL: https://issues.apache.org/jira/browse/TOMEE-4347 Project: TomEE Issue Type: Bug Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 Since we switched to Smallrye, some of the CDI extensions are activated regardless of the value of tomee.scan.mp We should only activate these extensions, if tomee.scan.mp is actually set. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4346) Commons Lang 3.14.0
[ https://issues.apache.org/jira/browse/TOMEE-4346?focusedWorklogId=921425=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-921425 ] ASF GitHub Bot logged work on TOMEE-4346: - Author: ASF GitHub Bot Created on: 30/May/24 17:59 Start Date: 30/May/24 17:59 Worklog Time Spent: 10m Work Description: rzo1 merged PR #1174: URL: https://github.com/apache/tomee/pull/1174 Issue Time Tracking --- Worklog Id: (was: 921425) Remaining Estimate: 0h Time Spent: 10m > Commons Lang 3.14.0 > --- > > Key: TOMEE-4346 > URL: https://issues.apache.org/jira/browse/TOMEE-4346 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4346) Commons Lang 3.14.0
[ https://issues.apache.org/jira/browse/TOMEE-4346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4346. Resolution: Fixed > Commons Lang 3.14.0 > --- > > Key: TOMEE-4346 > URL: https://issues.apache.org/jira/browse/TOMEE-4346 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4346) Commons Lang 3.14.0
Richard Zowalla created TOMEE-4346: -- Summary: Commons Lang 3.14.0 Key: TOMEE-4346 URL: https://issues.apache.org/jira/browse/TOMEE-4346 Project: TomEE Issue Type: Dependency upgrade Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4344) MP6: OpenAPI 3.1
[ https://issues.apache.org/jira/browse/TOMEE-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4344. Resolution: Fixed > MP6: OpenAPI 3.1 > > > Key: TOMEE-4344 > URL: https://issues.apache.org/jira/browse/TOMEE-4344 > Project: TomEE > Issue Type: Task >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 20m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4344) MP6: OpenAPI 3.1
[ https://issues.apache.org/jira/browse/TOMEE-4344?focusedWorklogId=921424=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-921424 ] ASF GitHub Bot logged work on TOMEE-4344: - Author: ASF GitHub Bot Created on: 30/May/24 17:57 Start Date: 30/May/24 17:57 Worklog Time Spent: 10m Work Description: rzo1 merged PR #1177: URL: https://github.com/apache/tomee/pull/1177 Issue Time Tracking --- Worklog Id: (was: 921424) Time Spent: 20m (was: 10m) > MP6: OpenAPI 3.1 > > > Key: TOMEE-4344 > URL: https://issues.apache.org/jira/browse/TOMEE-4344 > Project: TomEE > Issue Type: Task >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 20m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4345) Commons Logging 1.3.2
[ https://issues.apache.org/jira/browse/TOMEE-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4345. Resolution: Fixed > Commons Logging 1.3.2 > - > > Key: TOMEE-4345 > URL: https://issues.apache.org/jira/browse/TOMEE-4345 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4345) Commons Logging 1.3.2
[ https://issues.apache.org/jira/browse/TOMEE-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4345: --- Issue Type: Dependency upgrade (was: Task) > Commons Logging 1.3.2 > - > > Key: TOMEE-4345 > URL: https://issues.apache.org/jira/browse/TOMEE-4345 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4345) Commons Logging 1.3.2
Richard Zowalla created TOMEE-4345: -- Summary: Commons Logging 1.3.2 Key: TOMEE-4345 URL: https://issues.apache.org/jira/browse/TOMEE-4345 Project: TomEE Issue Type: Task Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Assigned] (TOMEE-4344) MP6: OpenAPI 3.1
[ https://issues.apache.org/jira/browse/TOMEE-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla reassigned TOMEE-4344: -- Assignee: Richard Zowalla > MP6: OpenAPI 3.1 > > > Key: TOMEE-4344 > URL: https://issues.apache.org/jira/browse/TOMEE-4344 > Project: TomEE > Issue Type: Task >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4344) MP6: OpenAPI 3.1
[ https://issues.apache.org/jira/browse/TOMEE-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4344: --- Fix Version/s: 10.0.0-M2 > MP6: OpenAPI 3.1 > > > Key: TOMEE-4344 > URL: https://issues.apache.org/jira/browse/TOMEE-4344 > Project: TomEE > Issue Type: Task >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4344) MP6: OpenAPI 3.1
[ https://issues.apache.org/jira/browse/TOMEE-4344?focusedWorklogId=921024=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-921024 ] ASF GitHub Bot logged work on TOMEE-4344: - Author: ASF GitHub Bot Created on: 28/May/24 09:15 Start Date: 28/May/24 09:15 Worklog Time Spent: 10m Work Description: rzo1 opened a new pull request, #1177: URL: https://github.com/apache/tomee/pull/1177 ``` [INFO] Results: [INFO] [INFO] Tests run: 317, Failures: 0, Errors: 0, Skipped: 0 [INFO] ``` Issue Time Tracking --- Worklog Id: (was: 921024) Remaining Estimate: 0h Time Spent: 10m > MP6: OpenAPI 3.1 > > > Key: TOMEE-4344 > URL: https://issues.apache.org/jira/browse/TOMEE-4344 > Project: TomEE > Issue Type: Task >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4344) MP6: OpenAPI 3.1
Richard Zowalla created TOMEE-4344: -- Summary: MP6: OpenAPI 3.1 Key: TOMEE-4344 URL: https://issues.apache.org/jira/browse/TOMEE-4344 Project: TomEE Issue Type: Task Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4343) MP6: OpenTelemetry 1.0
Richard Zowalla created TOMEE-4343: -- Summary: MP6: OpenTelemetry 1.0 Key: TOMEE-4343 URL: https://issues.apache.org/jira/browse/TOMEE-4343 Project: TomEE Issue Type: Task Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla OpenTracing is now OpenTelemetry for MP6: https://microprofile.io/specifications/microprofile-telemetry/ -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920911=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920911 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 26/May/24 18:29 Start Date: 26/May/24 18:29 Worklog Time Spent: 10m Work Description: rzo1 commented on PR #1167: URL: https://github.com/apache/tomee/pull/1167#issuecomment-2132321489 Thx for checking it, @mawiesne and @rmannibucau for pointing out the limitations of the single instance in suites. Issue Time Tracking --- Worklog Id: (was: 920911) Time Spent: 1.5h (was: 1h 20m) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 1.5h > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920910=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920910 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 26/May/24 18:27 Start Date: 26/May/24 18:27 Worklog Time Spent: 10m Work Description: rzo1 merged PR #1167: URL: https://github.com/apache/tomee/pull/1167 Issue Time Tracking --- Worklog Id: (was: 920910) Time Spent: 1h 20m (was: 1h 10m) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4342. Resolution: Fixed > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920906=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920906 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 26/May/24 11:42 Start Date: 26/May/24 11:42 Worklog Time Spent: 10m Work Description: mawiesne commented on PR #1167: URL: https://github.com/apache/tomee/pull/1167#issuecomment-2132189148 I can confirm that adding the test class `@Classes` helps, for example: ``` @Module @Classes(cdi = true, value = {MyTest.class, App.class}) public EjbJar modules() { return new EjbJar(); } ``` Thx @rmannibucau for clarification. Thx @rzo1 for updating the docs - so community can better understand what is required in such a scenario. Issue Time Tracking --- Worklog Id: (was: 920906) Time Spent: 1h 10m (was: 1h) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920902=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920902 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 26/May/24 08:35 Start Date: 26/May/24 08:35 Worklog Time Spent: 10m Work Description: rzo1 commented on PR #1167: URL: https://github.com/apache/tomee/pull/1167#issuecomment-2132136589 Thx @rmannibucau for clarification - I will update the test, verify it works and than remove my changes and update the docs, so it is clear how to use from user perspective. Issue Time Tracking --- Worklog Id: (was: 920902) Time Spent: 1h (was: 50m) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 1h > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920896=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920896 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 26/May/24 08:13 Start Date: 26/May/24 08:13 Worklog Time Spent: 10m Work Description: rmannibucau commented on PR #1167: URL: https://github.com/apache/tomee/pull/1167#issuecomment-2132126218 Test classes are injected and resources already handled. Limit for single instance for suites is that classes must be scanned for injections to be prepared as any bean so test classes must be scanned. Can be adding it in classes or marking test classes to be a cdi bean (`@Dependent`) Issue Time Tracking --- Worklog Id: (was: 920896) Time Spent: 50m (was: 40m) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 50m > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920895=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920895 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 26/May/24 07:40 Start Date: 26/May/24 07:40 Worklog Time Spent: 10m Work Description: rzo1 commented on PR #1167: URL: https://github.com/apache/tomee/pull/1167#issuecomment-2132115318 > Shouldnt it use injector if cdi is disabled and nothing else (owbinjector)? Can mean scanning is wrongly configured for tests no? We don't have a lot of tests with `@Application`and docs are sparse in that area, so might not get it correctly. Adding the actual test class to `@Classes` of the `@Application` will inject the `@Resource` into the test otherwise it seems, that` @Resource` is not scanned anywhere else (and the fallbacks only inject `@Inject` fields). Would that be the actual way to solve it with application composer? (If so, we just need to update the docs). Issue Time Tracking --- Worklog Id: (was: 920895) Time Spent: 40m (was: 0.5h) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 40m > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920891=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920891 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 26/May/24 06:54 Start Date: 26/May/24 06:54 Worklog Time Spent: 10m Work Description: rmannibucau commented on PR #1167: URL: https://github.com/apache/tomee/pull/1167#issuecomment-2132093070 Shouldnt it use injector if cdi is disabled and nothing else (owbinjector)? Can mean scanning is wrongly configured for tests no? Issue Time Tracking --- Worklog Id: (was: 920891) Time Spent: 0.5h (was: 20m) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920885=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920885 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 25/May/24 21:12 Start Date: 25/May/24 21:12 Worklog Time Spent: 10m Work Description: mawiesne commented on PR #1167: URL: https://github.com/apache/tomee/pull/1167#issuecomment-2131459057 Once merged, could this be picked to 9.1.x maintenance branch for a potential 9.1.4 release? @rzo1 Issue Time Tracking --- Worklog Id: (was: 920885) Time Spent: 20m (was: 10m) > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 20m > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?focusedWorklogId=920877=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920877 ] ASF GitHub Bot logged work on TOMEE-4342: - Author: ASF GitHub Bot Created on: 25/May/24 19:49 Start Date: 25/May/24 19:49 Worklog Time Spent: 10m Work Description: rzo1 opened a new pull request, #1167: URL: https://github.com/apache/tomee/pull/1167 (no comment) Issue Time Tracking --- Worklog Id: (was: 920877) Remaining Estimate: 0h Time Spent: 10m > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > Time Spent: 10m > Remaining Estimate: 0h > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
[ https://issues.apache.org/jira/browse/TOMEE-4342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Wiesner updated TOMEE-4342: -- Description: Right now, {{ApplicationComposer}} driven tests (via {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject @Resource beans, declared via Properties in an {{@Application}} App class. Those Resouce instances (carrying custom config values) are, however, injected correctly into EJBs or into the App itself. Interestingly, such resources are injected perfectly fine if the Test is run via {{@RunWithEjbContainer}}. The improvement will enhance ApplicationComposer to act exactly the same as tests driven by @RunWithEjbContainer, with respect to handling resource injections. A reproducer examples is available here: [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] It demonstrates the scenario and shows that 10.0-M1 is affected. An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the pain. I've assigned @rzo1, as he will provide the patch. was: Right now, {{ApplicationComposer}} driven tests (via {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject @Resource beans, declared via Properties in an {{@Application}} App class. Those Resouce instances (carrying custom config values) are, however, injected into EJBs or into the App itself. Interestingly, such resources are injected perfectly fine if the Test is run via {{@RunWithEjbContainer}}. The improvement will enhance ApplicationComposer to act exactly the same as tests driven by @RunWithEjbContainer, with respect to handling resource injections. A reproducer examples is available here: [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] It demonstrates the scenario and shows that 10.0-M1 is affected. An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the pain. I've assigned @rzo1, as he will provide the patch. > ApplicationComposer should inject declared custom resources into tests > -- > > Key: TOMEE-4342 > URL: https://issues.apache.org/jira/browse/TOMEE-4342 > Project: TomEE > Issue Type: Improvement >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Martin Wiesner >Assignee: Richard Zowalla >Priority: Minor > Fix For: 10.0.0-M2 > > > Right now, {{ApplicationComposer}} driven tests (via > {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject > @Resource beans, declared via Properties in an {{@Application}} App class. > Those Resouce instances (carrying custom config values) are, however, > injected correctly into EJBs or into the App itself. > Interestingly, such resources are injected perfectly fine if the Test is run > via {{@RunWithEjbContainer}}. > The improvement will enhance ApplicationComposer to act exactly the same as > tests driven by @RunWithEjbContainer, with respect to handling resource > injections. > A reproducer examples is available here: > [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] > It demonstrates the scenario and shows that 10.0-M1 is affected. > An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the > pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4342) ApplicationComposer should inject declared custom resources into tests
Martin Wiesner created TOMEE-4342: - Summary: ApplicationComposer should inject declared custom resources into tests Key: TOMEE-4342 URL: https://issues.apache.org/jira/browse/TOMEE-4342 Project: TomEE Issue Type: Improvement Affects Versions: 9.1.3, 10.0.0-M1 Reporter: Martin Wiesner Assignee: Richard Zowalla Fix For: 10.0.0-M2 Right now, {{ApplicationComposer}} driven tests (via {{@RunWithApplicationComposer(mode = ExtensionMode.PER_JVM}}) do not inject @Resource beans, declared via Properties in an {{@Application}} App class. Those Resouce instances (carrying custom config values) are, however, injected into EJBs or into the App itself. Interestingly, such resources are injected perfectly fine if the Test is run via {{@RunWithEjbContainer}}. The improvement will enhance ApplicationComposer to act exactly the same as tests driven by @RunWithEjbContainer, with respect to handling resource injections. A reproducer examples is available here: [https://github.com/rzo1/ac-app|https://github.com/rzo1/ac-app] It demonstrates the scenario and shows that 10.0-M1 is affected. An enhancement on 10.0-M2-SNAPSHOT is ready on a local basis to cure the pain. I've assigned @rzo1, as he will provide the patch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920641=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920641 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 11:57 Start Date: 23/May/24 11:57 Worklog Time Spent: 10m Work Description: rzo1 commented on code in PR #1165: URL: https://github.com/apache/tomee/pull/1165#discussion_r1611564278 ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/GreetingController.java: ## @@ -0,0 +1,19 @@ +package org.apache.openejb.arquillian.tests.jaxrs.spring; Review Comment: Missing header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/DemoApplication.java: ## @@ -0,0 +1,13 @@ +package org.apache.openejb.arquillian.tests.jaxrs.spring; Review Comment: Missing header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/AlternativeGreeter.java: ## @@ -0,0 +1,22 @@ +package org.apache.openejb.arquillian.tests.jaxrs.spring; Review Comment: Missing header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/ServletInitializer.java: ## @@ -0,0 +1,13 @@ +package org.apache.openejb.arquillian.tests.jaxrs.spring; Review Comment: Missing header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/resources/spring-webmvc-pom.xml: ## @@ -0,0 +1,44 @@ + Review Comment: Missing header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/resources/spring-webmvc-pom.xml: ## @@ -0,0 +1,44 @@ + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd;> +4.0.0 + +org.springframework.boot +spring-boot-starter-parent +3.1.11 Review Comment: Spring Boot 3 has a Java 17 baseline, so this will likely fail the Java 11 based build. I think, that we would need to build an exclusion for that test if we run with a runtime below 17. Issue Time Tracking --- Worklog Id: (was: 920641) Time Spent: 2h 40m (was: 2.5h) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 2h 40m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.ja
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920640=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920640 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 11:55 Start Date: 23/May/24 11:55 Worklog Time Spent: 10m Work Description: rzo1 commented on code in PR #1166: URL: https://github.com/apache/tomee/pull/1166#discussion_r1611559629 ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/ServletInitializer.java: ## @@ -0,0 +1,13 @@ +package org.apache.openejb.arquillian.tests.jaxrs.spring; Review Comment: License header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/AlternativeGreeter.java: ## @@ -0,0 +1,22 @@ +package org.apache.openejb.arquillian.tests.jaxrs.spring; Review Comment: License header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/DemoApplication.java: ## @@ -0,0 +1,13 @@ +package org.apache.openejb.arquillian.tests.jaxrs.spring; Review Comment: License header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/resources/spring-webmvc-pom.xml: ## @@ -0,0 +1,44 @@ + Review Comment: missing header ## arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/SpringWebappTest.java: ## @@ -0,0 +1,158 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.openejb.arquillian.tests.jaxrs.spring; + +import org.apache.ziplock.WebModule; +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.junit.Arquillian; +import org.jboss.arquillian.test.api.ArquillianResource; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.exporter.ZipExporter; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.jboss.shrinkwrap.resolver.api.ResolutionException; +import org.jboss.shrinkwrap.resolver.api.ResolvedArtifact; +import org.jboss.shrinkwrap.resolver.api.maven.Maven; +import org.jboss.shrinkwrap.resolver.api.maven.MavenResolvedArtifact; +import org.jboss.shrinkwrap.resolver.api.maven.ScopeType; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.loader.tools.Libraries; +import org.springframework.boot.loader.tools.Library; +import org.springframework.boot.loader.tools.LibraryCallback; +import org.springframework.boot.loader.tools.LibraryScope; +import org.springframework.boot.loader.tools.Repackager; + +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; +import java.util.Arrays; +import java.util.stream.Collectors; + +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; + +@RunWith(Arquillian.class) +public class SpringWebappTest { + +@ArquillianResource +private URL url; + +@Deployment(testable = false) +public static WebArchive getArchive() throws Exception { +MavenResolvedArtifact[] dependencies; +try { // try offline first since it is generally faster +dependencies = Maven.configureResolver() +.workOffline() + .loadPomFromFile("src/test/resources/spring-webmvc-pom.xml") + .importCompileAndRuntimeDependencies().resolve().withTransitivity() +.asResolvedArtifact(); +} catch (ResolutionException re) { // try on central +dependencies = Maven.resolver() + .loadPomFromFile("src/test/resources/spring-webmvc-pom.xml") + .importCompileAndRuntimeDependencies().resolve().withTransitivity() +.asResolvedArtifact(); +} + + +f
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920618=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920618 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 10:03 Start Date: 23/May/24 10:03 Worklog Time Spent: 10m Work Description: jgallimore commented on PR #1165: URL: https://github.com/apache/tomee/pull/1165#issuecomment-2126716747 @venkat9 Your best bet is to join the users mailing list, and ask your question there. Best suggestion I can give concisely is to use TomEE, and if you identify bugs, discuss them on the mailing list with a view to fixing. Similarly, if you can see a feature you'd enjoy implementing, discuss that on the mailing list. Issue Time Tracking --- Worklog Id: (was: 920618) Time Spent: 2h 20m (was: 2h 10m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 2h 20m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] >
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920616=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920616 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 10:00 Start Date: 23/May/24 10:00 Worklog Time Spent: 10m Work Description: jgallimore commented on PR #1165: URL: https://github.com/apache/tomee/pull/1165#issuecomment-2126710887 Further detail on the CXF list is here: https://lists.apache.org/thread/coxrst45zm8gqmf1hhx5g7bqzbsldkhh Issue Time Tracking --- Worklog Id: (was: 920616) Time Spent: 2h (was: 1h 50m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 2h > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(Form
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920617=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920617 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 10:00 Start Date: 23/May/24 10:00 Worklog Time Spent: 10m Work Description: jgallimore commented on PR #1166: URL: https://github.com/apache/tomee/pull/1166#issuecomment-2126711412 Further detail on the CXF list is here: https://lists.apache.org/thread/coxrst45zm8gqmf1hhx5g7bqzbsldkhh Issue Time Tracking --- Worklog Id: (was: 920617) Time Spent: 2h 10m (was: 2h) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 2h 10m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(Form
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920614=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920614 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 09:59 Start Date: 23/May/24 09:59 Worklog Time Spent: 10m Work Description: jgallimore closed pull request #1131: TOMEE-4332 Patch SpringWebUtils for class loader issue URL: https://github.com/apache/tomee/pull/1131 Issue Time Tracking --- Worklog Id: (was: 920614) Time Spent: 1h 40m (was: 1.5h) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 1h 40m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920615=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920615 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 09:59 Start Date: 23/May/24 09:59 Worklog Time Spent: 10m Work Description: jgallimore commented on PR #1131: URL: https://github.com/apache/tomee/pull/1131#issuecomment-2126707943 Closed and replaced with #1166 Issue Time Tracking --- Worklog Id: (was: 920615) Time Spent: 1h 50m (was: 1h 40m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 1h 50m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920612=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920612 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 09:57 Start Date: 23/May/24 09:57 Worklog Time Spent: 10m Work Description: jgallimore closed pull request #1130: TOMEE-4332 Patch SpringWebUtils for class loader issue URL: https://github.com/apache/tomee/pull/1130 Issue Time Tracking --- Worklog Id: (was: 920612) Time Spent: 1h 20m (was: 1h 10m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 1h 20m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920613=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920613 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 09:57 Start Date: 23/May/24 09:57 Worklog Time Spent: 10m Work Description: jgallimore commented on PR #1130: URL: https://github.com/apache/tomee/pull/1130#issuecomment-2126704507 Closing and replacing with #1165 Issue Time Tracking --- Worklog Id: (was: 920613) Time Spent: 1.5h (was: 1h 20m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 1.5h > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920611=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920611 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 09:57 Start Date: 23/May/24 09:57 Worklog Time Spent: 10m Work Description: venkat9 commented on PR #1165: URL: https://github.com/apache/tomee/pull/1165#issuecomment-2126704134 may i know how to contribute something to this project.. any project setup guide etc. On Thu, May 23, 2024 at 3:25 PM Jonathan Gallimore ***@***.***> wrote: > …hen the cxf-rs service is initialized > -- > You can view, comment on, or merge this pull request online at: > > https://github.com/apache/tomee/pull/1165 > Commit Summary > >- ff60d0d > <https://github.com/apache/tomee/pull/1165/commits/ff60d0d399aec35d8bdfbadd52e105ed008efccf> >TOMEE-4332 Load SpringWebUtils in the context class loader in TomEE when >the cxf-rs service is initialized > > File Changes > > (9 files <https://github.com/apache/tomee/pull/1165/files>) > >- *M* >arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/pom.xml > <https://github.com/apache/tomee/pull/1165/files#diff-84a03152e5e61c4c8eb0fd789255924913a5282b110b39dd54fffc374dd7a2f4> >(22) >- *A* > arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/AlternativeGreeter.java > <https://github.com/apache/tomee/pull/1165/files#diff-42b4bf19f1fd00c42fd9c614651849f16953751549621f02091afe5b7928cecb> >(22) >- *A* > arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/DemoApplication.java > <https://github.com/apache/tomee/pull/1165/files#diff-8445dba18580221bb63a940955a737356a510f48c35479bbcd0441bff673a72f> >(13) >- *A* > arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/GreetingController.java > <https://github.com/apache/tomee/pull/1165/files#diff-b6dae7952f5efabf54144fdd858fc68b278943f9f47a0aa5a0a2f958678bb7be> >(19) >- *A* > arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/ServletInitializer.java > <https://github.com/apache/tomee/pull/1165/files#diff-dc56cf14f0a93124da840cd246e8b4134ed2a8824ee6e1438695f1a92e121953> >(13) >- *A* > arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/java/org/apache/openejb/arquillian/tests/jaxrs/spring/SpringWebappTest.java > <https://github.com/apache/tomee/pull/1165/files#diff-c2daf3f2afe8f5d3568572e30c3a9c1c40f617c091c9296dead7b4325e00596c> >(158) >- *A* > arquillian/arquillian-tomee-tests/arquillian-tomee-jaxrs-tests/src/test/resources/spring-webmvc-pom.xml > <https://github.com/apache/tomee/pull/1165/files#diff-cca184508061abf53c1b71496a9102638983dd5db48f48e3647f9b008ac78f45> >(44) >- *M* arquillian/arquillian-tomee-tests/pom.xml > <https://github.com/apache/tomee/pull/1165/files#diff-a2f5f4c3f55990b49f7027a8ec8ebc454867bbb1f330f56f1708d61aa1bc114a> >(1) >- *M* > server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRSService.java > <https://github.com/apache/tomee/pull/1165/files#diff-03a49e7161ba61df5ee2131dcb82aef56a3dbebd671928e25dfd3fcff9180c0c> >(6) > > Patch Links: > >- https://github.com/apache/tomee/pull/1165.patch >- https://github.com/apache/tomee/pull/1165.diff > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/tomee/pull/1165>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABL6BELFJT42EDWFXUBUG4LZDW4INAVCNFSM6ABIFJPXOSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYTENBXGQ3DGOI> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> > Issue Time Tracking --- Worklog Id: (was: 920611) Time Spent: 1h 10m (was: 1h) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project:
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920610=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920610 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 09:56 Start Date: 23/May/24 09:56 Worklog Time Spent: 10m Work Description: jgallimore opened a new pull request, #1166: URL: https://github.com/apache/tomee/pull/1166 …hen the cxf-rs service is initialized Issue Time Tracking --- Worklog Id: (was: 920610) Time Spent: 1h (was: 50m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 1h > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=920609=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-920609 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 23/May/24 09:54 Start Date: 23/May/24 09:54 Worklog Time Spent: 10m Work Description: jgallimore opened a new pull request, #1165: URL: https://github.com/apache/tomee/pull/1165 …hen the cxf-rs service is initialized Issue Time Tracking --- Worklog Id: (was: 920609) Time Spent: 50m (was: 40m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 50m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Created] (TOMEE-4341) Angus Activation 2.0.2
Richard Zowalla created TOMEE-4341: -- Summary: Angus Activation 2.0.2 Key: TOMEE-4341 URL: https://issues.apache.org/jira/browse/TOMEE-4341 Project: TomEE Issue Type: Dependency upgrade Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4341) Angus Activation 2.0.2
[ https://issues.apache.org/jira/browse/TOMEE-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4341. Resolution: Fixed > Angus Activation 2.0.2 > -- > > Key: TOMEE-4341 > URL: https://issues.apache.org/jira/browse/TOMEE-4341 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4340) Jose JWT 9.39.1 (Test)
[ https://issues.apache.org/jira/browse/TOMEE-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4340: --- Summary: Jose JWT 9.39.1 (Test) (was: Jose JWT 9.37.2 (Test)) > Jose JWT 9.39.1 (Test) > -- > > Key: TOMEE-4340 > URL: https://issues.apache.org/jira/browse/TOMEE-4340 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Reopened] (TOMEE-4340) Jose JWT 9.37.2 (Test)
[ https://issues.apache.org/jira/browse/TOMEE-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla reopened TOMEE-4340: > Jose JWT 9.37.2 (Test) > -- > > Key: TOMEE-4340 > URL: https://issues.apache.org/jira/browse/TOMEE-4340 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4340) Jose JWT 9.39.1 (Test)
[ https://issues.apache.org/jira/browse/TOMEE-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4340. Resolution: Fixed > Jose JWT 9.39.1 (Test) > -- > > Key: TOMEE-4340 > URL: https://issues.apache.org/jira/browse/TOMEE-4340 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Closed] (TOMEE-4340) Jose JWT 9.37.2 (Test)
[ https://issues.apache.org/jira/browse/TOMEE-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla closed TOMEE-4340. -- Resolution: Fixed > Jose JWT 9.37.2 (Test) > -- > > Key: TOMEE-4340 > URL: https://issues.apache.org/jira/browse/TOMEE-4340 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4340) Jose JWT 9.37.2 (Test)
Richard Zowalla created TOMEE-4340: -- Summary: Jose JWT 9.37.2 (Test) Key: TOMEE-4340 URL: https://issues.apache.org/jira/browse/TOMEE-4340 Project: TomEE Issue Type: Dependency upgrade Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
[ https://issues.apache.org/jira/browse/TOMEE-4333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Gallimore resolved TOMEE-4333. --- Resolution: Fixed > NotSerializableException with @Inject HttpServletRequest > > > Key: TOMEE-4333 > URL: https://issues.apache.org/jira/browse/TOMEE-4333 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Time Spent: 1h > Remaining Estimate: 0h > > Given this CDI Bean: > @SessionScoped > @Named > public class MyPageBean implements Serializable { > @Inject private HttpServletRequest req; > ... use the bean somewhere in EL > } > This will result in an exception when serializing the Session (For session > replication or passivation): java.lang.RuntimeException: > java.lang.RuntimeException: > [java.io|http://java.io/].NotSerializableException: > org.apache.openejb.cdi.Proxys$ThreadLocalHandler > From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] > Looking at the Proxys.java code, it contains a private static class called > ThreadLocalHandler, that is indeed not Serializable. For fun, I made > ThreadLocalHandler implement Serializable, but that just resulted in > another error because ThreadLocalHandler contains a ThreadLocal field which > is definitely not Serializable. > ThreadLocalHandler for HttpServletRequest is invoked by > TomcatWebappBuilder.setComponentsUsedByCDI(): > [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] > I'm at a bit of a loss on how to fix this. My assumption is the > ThreadLocalHandler was designed as a generic proxy object that defers to an > internal ThreadLocal object. I wonder if marking the ThreadLocal as > transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
[ https://issues.apache.org/jira/browse/TOMEE-4333?focusedWorklogId=919758=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919758 ] ASF GitHub Bot logged work on TOMEE-4333: - Author: ASF GitHub Bot Created on: 16/May/24 21:25 Start Date: 16/May/24 21:25 Worklog Time Spent: 10m Work Description: jgallimore merged PR #1138: URL: https://github.com/apache/tomee/pull/1138 Issue Time Tracking --- Worklog Id: (was: 919758) Time Spent: 50m (was: 40m) > NotSerializableException with @Inject HttpServletRequest > > > Key: TOMEE-4333 > URL: https://issues.apache.org/jira/browse/TOMEE-4333 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Time Spent: 50m > Remaining Estimate: 0h > > Given this CDI Bean: > @SessionScoped > @Named > public class MyPageBean implements Serializable { > @Inject private HttpServletRequest req; > ... use the bean somewhere in EL > } > This will result in an exception when serializing the Session (For session > replication or passivation): java.lang.RuntimeException: > java.lang.RuntimeException: > [java.io|http://java.io/].NotSerializableException: > org.apache.openejb.cdi.Proxys$ThreadLocalHandler > From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] > Looking at the Proxys.java code, it contains a private static class called > ThreadLocalHandler, that is indeed not Serializable. For fun, I made > ThreadLocalHandler implement Serializable, but that just resulted in > another error because ThreadLocalHandler contains a ThreadLocal field which > is definitely not Serializable. > ThreadLocalHandler for HttpServletRequest is invoked by > TomcatWebappBuilder.setComponentsUsedByCDI(): > [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] > I'm at a bit of a loss on how to fix this. My assumption is the > ThreadLocalHandler was designed as a generic proxy object that defers to an > internal ThreadLocal object. I wonder if marking the ThreadLocal as > transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
[ https://issues.apache.org/jira/browse/TOMEE-4333?focusedWorklogId=919759=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919759 ] ASF GitHub Bot logged work on TOMEE-4333: - Author: ASF GitHub Bot Created on: 16/May/24 21:25 Start Date: 16/May/24 21:25 Worklog Time Spent: 10m Work Description: jgallimore merged PR #1139: URL: https://github.com/apache/tomee/pull/1139 Issue Time Tracking --- Worklog Id: (was: 919759) Time Spent: 1h (was: 50m) > NotSerializableException with @Inject HttpServletRequest > > > Key: TOMEE-4333 > URL: https://issues.apache.org/jira/browse/TOMEE-4333 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Time Spent: 1h > Remaining Estimate: 0h > > Given this CDI Bean: > @SessionScoped > @Named > public class MyPageBean implements Serializable { > @Inject private HttpServletRequest req; > ... use the bean somewhere in EL > } > This will result in an exception when serializing the Session (For session > replication or passivation): java.lang.RuntimeException: > java.lang.RuntimeException: > [java.io|http://java.io/].NotSerializableException: > org.apache.openejb.cdi.Proxys$ThreadLocalHandler > From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] > Looking at the Proxys.java code, it contains a private static class called > ThreadLocalHandler, that is indeed not Serializable. For fun, I made > ThreadLocalHandler implement Serializable, but that just resulted in > another error because ThreadLocalHandler contains a ThreadLocal field which > is definitely not Serializable. > ThreadLocalHandler for HttpServletRequest is invoked by > TomcatWebappBuilder.setComponentsUsedByCDI(): > [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] > I'm at a bit of a loss on how to fix this. My assumption is the > ThreadLocalHandler was designed as a generic proxy object that defers to an > internal ThreadLocal object. I wonder if marking the ThreadLocal as > transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
[ https://issues.apache.org/jira/browse/TOMEE-4333?focusedWorklogId=919755=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919755 ] ASF GitHub Bot logged work on TOMEE-4333: - Author: ASF GitHub Bot Created on: 16/May/24 20:30 Start Date: 16/May/24 20:30 Worklog Time Spent: 10m Work Description: rzo1 commented on code in PR #1138: URL: https://github.com/apache/tomee/pull/1138#discussion_r1603990822 ## boms/tomee-plume/pom.xml: ## @@ -111,6 +111,17 @@ + Review Comment: This will most likely be automoatically removed again. ## boms/tomee-plus/pom.xml: ## @@ -111,6 +111,17 @@ + Review Comment: Same Issue Time Tracking --- Worklog Id: (was: 919755) Time Spent: 40m (was: 0.5h) > NotSerializableException with @Inject HttpServletRequest > > > Key: TOMEE-4333 > URL: https://issues.apache.org/jira/browse/TOMEE-4333 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Time Spent: 40m > Remaining Estimate: 0h > > Given this CDI Bean: > @SessionScoped > @Named > public class MyPageBean implements Serializable { > @Inject private HttpServletRequest req; > ... use the bean somewhere in EL > } > This will result in an exception when serializing the Session (For session > replication or passivation): java.lang.RuntimeException: > java.lang.RuntimeException: > [java.io|http://java.io/].NotSerializableException: > org.apache.openejb.cdi.Proxys$ThreadLocalHandler > From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] > Looking at the Proxys.java code, it contains a private static class called > ThreadLocalHandler, that is indeed not Serializable. For fun, I made > ThreadLocalHandler implement Serializable, but that just resulted in > another error because ThreadLocalHandler contains a ThreadLocal field which > is definitely not Serializable. > ThreadLocalHandler for HttpServletRequest is invoked by > TomcatWebappBuilder.setComponentsUsedByCDI(): > [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] > I'm at a bit of a loss on how to fix this. My assumption is the > ThreadLocalHandler was designed as a generic proxy object that defers to an > internal ThreadLocal object. I wonder if marking the ThreadLocal as > transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4338) Xalan 2.7.3
[ https://issues.apache.org/jira/browse/TOMEE-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4338. Resolution: Fixed > Xalan 2.7.3 > --- > > Key: TOMEE-4338 > URL: https://issues.apache.org/jira/browse/TOMEE-4338 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4339) Compress 1.16.0
[ https://issues.apache.org/jira/browse/TOMEE-4339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4339. Resolution: Fixed > Compress 1.16.0 > --- > > Key: TOMEE-4339 > URL: https://issues.apache.org/jira/browse/TOMEE-4339 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4338) Xalan 2.7.3
Richard Zowalla created TOMEE-4338: -- Summary: Xalan 2.7.3 Key: TOMEE-4338 URL: https://issues.apache.org/jira/browse/TOMEE-4338 Project: TomEE Issue Type: Dependency upgrade Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4339) Compress 1.16.0
Richard Zowalla created TOMEE-4339: -- Summary: Compress 1.16.0 Key: TOMEE-4339 URL: https://issues.apache.org/jira/browse/TOMEE-4339 Project: TomEE Issue Type: Dependency upgrade Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4337) bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar
[ https://issues.apache.org/jira/browse/TOMEE-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4337. Resolution: Fixed > bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > > > Key: TOMEE-4337 > URL: https://issues.apache.org/jira/browse/TOMEE-4337 > Project: TomEE > Issue Type: Dependency upgrade > Components: TomEE Core Server >Affects Versions: 10.0.0-M1 >Reporter: RAJU THANNEERU >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > > New vulnerabilities in bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > Looks like these are already addressed in 1.78 version, so upgrade to 1.78 or > 1.78.1 > *bcprov-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| > |[CVE-2024-34447|https://nvd.nist.gov/vuln/detail/CVE-2024-34447]| > *bcpkix-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4337) bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar
[ https://issues.apache.org/jira/browse/TOMEE-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4337: --- Fix Version/s: 10.0.0-M2 > bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > > > Key: TOMEE-4337 > URL: https://issues.apache.org/jira/browse/TOMEE-4337 > Project: TomEE > Issue Type: Dependency upgrade > Components: TomEE Core Server >Affects Versions: 10.0.0-M1 >Reporter: RAJU THANNEERU >Priority: Major > Fix For: 10.0.0-M2 > > > New vulnerabilities in bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > Looks like these are already addressed in 1.78 version, so upgrade to 1.78 or > 1.78.1 > *bcprov-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| > |[CVE-2024-34447|https://nvd.nist.gov/vuln/detail/CVE-2024-34447]| > *bcpkix-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4337) bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar
[ https://issues.apache.org/jira/browse/TOMEE-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4337: --- Affects Version/s: 10.0.0-M1 (was: 9.1.3) > bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > > > Key: TOMEE-4337 > URL: https://issues.apache.org/jira/browse/TOMEE-4337 > Project: TomEE > Issue Type: Dependency upgrade > Components: TomEE Core Server >Affects Versions: 10.0.0-M1 >Reporter: RAJU THANNEERU >Priority: Major > > New vulnerabilities in bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > Looks like these are already addressed in 1.78 version, so upgrade to 1.78 or > 1.78.1 > *bcprov-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| > |[CVE-2024-34447|https://nvd.nist.gov/vuln/detail/CVE-2024-34447]| > *bcpkix-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Assigned] (TOMEE-4337) bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar
[ https://issues.apache.org/jira/browse/TOMEE-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla reassigned TOMEE-4337: -- Assignee: Richard Zowalla > bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > > > Key: TOMEE-4337 > URL: https://issues.apache.org/jira/browse/TOMEE-4337 > Project: TomEE > Issue Type: Dependency upgrade > Components: TomEE Core Server >Affects Versions: 10.0.0-M1 >Reporter: RAJU THANNEERU >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > > New vulnerabilities in bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar > Looks like these are already addressed in 1.78 version, so upgrade to 1.78 or > 1.78.1 > *bcprov-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| > |[CVE-2024-34447|https://nvd.nist.gov/vuln/detail/CVE-2024-34447]| > *bcpkix-jdk15to18-1.76.jar* > |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| > |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| > |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4337) bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar
Richard Zowalla created TOMEE-4337: -- Summary: bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar Key: TOMEE-4337 URL: https://issues.apache.org/jira/browse/TOMEE-4337 Project: TomEE Issue Type: Dependency upgrade Components: TomEE Core Server Affects Versions: 9.1.3 Reporter: RAJU THANNEERU New vulnerabilities in bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar Looks like these are already addressed in 1.78 version, so upgrade to 1.78 or 1.78.1 *bcprov-jdk15to18-1.76.jar* |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| |[CVE-2024-34447|https://nvd.nist.gov/vuln/detail/CVE-2024-34447]| *bcpkix-jdk15to18-1.76.jar* |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4336) Upgrade bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar
RAJU THANNEERU created TOMEE-4336: - Summary: Upgrade bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar Key: TOMEE-4336 URL: https://issues.apache.org/jira/browse/TOMEE-4336 Project: TomEE Issue Type: Dependency upgrade Components: TomEE Core Server Affects Versions: 9.1.3 Reporter: RAJU THANNEERU New vulnerabilities in bcprov-jdk15to18-1.76.jar and bcpkix-jdk15to18-1.76.jar Looks like these are already addressed in 1.78 version, so upgrade to 1.78 or 1.78.1 *bcprov-jdk15to18-1.76.jar* |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| |[CVE-2024-34447|https://nvd.nist.gov/vuln/detail/CVE-2024-34447]| *bcpkix-jdk15to18-1.76.jar* |[CVE-2024-29857|https://nvd.nist.gov/vuln/detail/CVE-2024-29857]| |[CVE-2024-30171|https://nvd.nist.gov/vuln/detail/CVE-2024-30171]| |[CVE-2024-30172|https://nvd.nist.gov/vuln/detail/CVE-2024-30172]| -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
[ https://issues.apache.org/jira/browse/TOMEE-4333?focusedWorklogId=919659=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919659 ] ASF GitHub Bot logged work on TOMEE-4333: - Author: ASF GitHub Bot Created on: 16/May/24 09:07 Start Date: 16/May/24 09:07 Worklog Time Spent: 10m Work Description: rzo1 commented on PR #1138: URL: https://github.com/apache/tomee/pull/1138#issuecomment-2114620928 I just queued a full build for it :) Issue Time Tracking --- Worklog Id: (was: 919659) Time Spent: 0.5h (was: 20m) > NotSerializableException with @Inject HttpServletRequest > > > Key: TOMEE-4333 > URL: https://issues.apache.org/jira/browse/TOMEE-4333 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Given this CDI Bean: > @SessionScoped > @Named > public class MyPageBean implements Serializable { > @Inject private HttpServletRequest req; > ... use the bean somewhere in EL > } > This will result in an exception when serializing the Session (For session > replication or passivation): java.lang.RuntimeException: > java.lang.RuntimeException: > [java.io|http://java.io/].NotSerializableException: > org.apache.openejb.cdi.Proxys$ThreadLocalHandler > From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] > Looking at the Proxys.java code, it contains a private static class called > ThreadLocalHandler, that is indeed not Serializable. For fun, I made > ThreadLocalHandler implement Serializable, but that just resulted in > another error because ThreadLocalHandler contains a ThreadLocal field which > is definitely not Serializable. > ThreadLocalHandler for HttpServletRequest is invoked by > TomcatWebappBuilder.setComponentsUsedByCDI(): > [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] > I'm at a bit of a loss on how to fix this. My assumption is the > ThreadLocalHandler was designed as a generic proxy object that defers to an > internal ThreadLocal object. I wonder if marking the ThreadLocal as > transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
[ https://issues.apache.org/jira/browse/TOMEE-4333?focusedWorklogId=919657=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919657 ] ASF GitHub Bot logged work on TOMEE-4333: - Author: ASF GitHub Bot Created on: 16/May/24 09:01 Start Date: 16/May/24 09:01 Worklog Time Spent: 10m Work Description: jgallimore opened a new pull request, #1139: URL: https://github.com/apache/tomee/pull/1139 (no comment) Issue Time Tracking --- Worklog Id: (was: 919657) Time Spent: 20m (was: 10m) > NotSerializableException with @Inject HttpServletRequest > > > Key: TOMEE-4333 > URL: https://issues.apache.org/jira/browse/TOMEE-4333 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Time Spent: 20m > Remaining Estimate: 0h > > Given this CDI Bean: > @SessionScoped > @Named > public class MyPageBean implements Serializable { > @Inject private HttpServletRequest req; > ... use the bean somewhere in EL > } > This will result in an exception when serializing the Session (For session > replication or passivation): java.lang.RuntimeException: > java.lang.RuntimeException: > [java.io|http://java.io/].NotSerializableException: > org.apache.openejb.cdi.Proxys$ThreadLocalHandler > From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] > Looking at the Proxys.java code, it contains a private static class called > ThreadLocalHandler, that is indeed not Serializable. For fun, I made > ThreadLocalHandler implement Serializable, but that just resulted in > another error because ThreadLocalHandler contains a ThreadLocal field which > is definitely not Serializable. > ThreadLocalHandler for HttpServletRequest is invoked by > TomcatWebappBuilder.setComponentsUsedByCDI(): > [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] > I'm at a bit of a loss on how to fix this. My assumption is the > ThreadLocalHandler was designed as a generic proxy object that defers to an > internal ThreadLocal object. I wonder if marking the ThreadLocal as > transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
[ https://issues.apache.org/jira/browse/TOMEE-4333?focusedWorklogId=919656=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919656 ] ASF GitHub Bot logged work on TOMEE-4333: - Author: ASF GitHub Bot Created on: 16/May/24 09:00 Start Date: 16/May/24 09:00 Worklog Time Spent: 10m Work Description: jgallimore opened a new pull request, #1138: URL: https://github.com/apache/tomee/pull/1138 (no comment) Issue Time Tracking --- Worklog Id: (was: 919656) Remaining Estimate: 0h Time Spent: 10m > NotSerializableException with @Inject HttpServletRequest > > > Key: TOMEE-4333 > URL: https://issues.apache.org/jira/browse/TOMEE-4333 > Project: TomEE > Issue Type: Bug >Affects Versions: 10.0.0-M1, 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Time Spent: 10m > Remaining Estimate: 0h > > Given this CDI Bean: > @SessionScoped > @Named > public class MyPageBean implements Serializable { > @Inject private HttpServletRequest req; > ... use the bean somewhere in EL > } > This will result in an exception when serializing the Session (For session > replication or passivation): java.lang.RuntimeException: > java.lang.RuntimeException: > [java.io|http://java.io/].NotSerializableException: > org.apache.openejb.cdi.Proxys$ThreadLocalHandler > From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] > Looking at the Proxys.java code, it contains a private static class called > ThreadLocalHandler, that is indeed not Serializable. For fun, I made > ThreadLocalHandler implement Serializable, but that just resulted in > another error because ThreadLocalHandler contains a ThreadLocal field which > is definitely not Serializable. > ThreadLocalHandler for HttpServletRequest is invoked by > TomcatWebappBuilder.setComponentsUsedByCDI(): > [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] > I'm at a bit of a loss on how to fix this. My assumption is the > ThreadLocalHandler was designed as a generic proxy object that defers to an > internal ThreadLocal object. I wonder if marking the ThreadLocal as > transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4335) Jetty 11.0.20
Richard Zowalla created TOMEE-4335: -- Summary: Jetty 11.0.20 Key: TOMEE-4335 URL: https://issues.apache.org/jira/browse/TOMEE-4335 Project: TomEE Issue Type: Dependency upgrade Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (TOMEE-4334) Tomcat 10.1.24
[ https://issues.apache.org/jira/browse/TOMEE-4334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4334. Resolution: Fixed > Tomcat 10.1.24 > -- > > Key: TOMEE-4334 > URL: https://issues.apache.org/jira/browse/TOMEE-4334 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (TOMEE-4334) Tomcat 10.1.24
[ https://issues.apache.org/jira/browse/TOMEE-4334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla updated TOMEE-4334: --- Issue Type: Dependency upgrade (was: Task) > Tomcat 10.1.24 > -- > > Key: TOMEE-4334 > URL: https://issues.apache.org/jira/browse/TOMEE-4334 > Project: TomEE > Issue Type: Dependency upgrade >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (TOMEE-4334) Tomcat 10.1.24
Richard Zowalla created TOMEE-4334: -- Summary: Tomcat 10.1.24 Key: TOMEE-4334 URL: https://issues.apache.org/jira/browse/TOMEE-4334 Project: TomEE Issue Type: Task Affects Versions: 10.0.0-M1 Reporter: Richard Zowalla Assignee: Richard Zowalla Fix For: 10.0.0-M2 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=919535=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919535 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 15/May/24 14:51 Start Date: 15/May/24 14:51 Worklog Time Spent: 10m Work Description: jgallimore commented on PR #1131: URL: https://github.com/apache/tomee/pull/1131#issuecomment-2112758892 Started a thread on the CXF dev list to see if there is a more elegant solution: https://lists.apache.org/thread/coxrst45zm8gqmf1hhx5g7bqzbsldkhh Issue Time Tracking --- Worklog Id: (was: 919535) Time Spent: 40m (was: 0.5h) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 40m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > a
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=919528=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919528 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 15/May/24 14:19 Start Date: 15/May/24 14:19 Worklog Time Spent: 10m Work Description: tandraschko commented on PR #1131: URL: https://github.com/apache/tomee/pull/1131#issuecomment-2112679512 we are on the newest CXF SNAPSHOT, doesnt it make sense to fix it there? Issue Time Tracking --- Worklog Id: (was: 919528) Time Spent: 0.5h (was: 20m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 0.5h > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[s
[jira] [Created] (TOMEE-4333) NotSerializableException with @Inject HttpServletRequest
Jonathan Gallimore created TOMEE-4333: - Summary: NotSerializableException with @Inject HttpServletRequest Key: TOMEE-4333 URL: https://issues.apache.org/jira/browse/TOMEE-4333 Project: TomEE Issue Type: Bug Affects Versions: 9.1.3, 10.0.0-M1 Reporter: Jonathan Gallimore Assignee: Jonathan Gallimore Fix For: 10.0.0-M2, 9.1.4 Given this CDI Bean: @SessionScoped @Named public class MyPageBean implements Serializable { @Inject private HttpServletRequest req; ... use the bean somewhere in EL } This will result in an exception when serializing the Session (For session replication or passivation): java.lang.RuntimeException: java.lang.RuntimeException: [java.io|http://java.io/].NotSerializableException: org.apache.openejb.cdi.Proxys$ThreadLocalHandler From: [https://www.mail-archive.com/dev@tomee.apache.org/msg18097.html] Looking at the Proxys.java code, it contains a private static class called ThreadLocalHandler, that is indeed not Serializable. For fun, I made ThreadLocalHandler implement Serializable, but that just resulted in another error because ThreadLocalHandler contains a ThreadLocal field which is definitely not Serializable. ThreadLocalHandler for HttpServletRequest is invoked by TomcatWebappBuilder.setComponentsUsedByCDI(): [https://github.com/apache/tomee/blob/tomee-8.x/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java#L358] I'm at a bit of a loss on how to fix this. My assumption is the ThreadLocalHandler was designed as a generic proxy object that defers to an internal ThreadLocal object. I wonder if marking the ThreadLocal as transient is sufficient, but I could use some input. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17846639#comment-17846639 ] Jonathan Gallimore commented on TOMEE-4332: --- Started a thread on the CXF dev list to see if there is a more elegant solution: https://lists.apache.org/thread/coxrst45zm8gqmf1hhx5g7bqzbsldkhh > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 20m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=919481=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919481 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 15/May/24 10:50 Start Date: 15/May/24 10:50 Worklog Time Spent: 10m Work Description: jgallimore opened a new pull request, #1131: URL: https://github.com/apache/tomee/pull/1131 (no comment) Issue Time Tracking --- Worklog Id: (was: 919481) Time Spent: 20m (was: 10m) > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 20m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Work logged] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
[ https://issues.apache.org/jira/browse/TOMEE-4332?focusedWorklogId=919479=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-919479 ] ASF GitHub Bot logged work on TOMEE-4332: - Author: ASF GitHub Bot Created on: 15/May/24 10:43 Start Date: 15/May/24 10:43 Worklog Time Spent: 10m Work Description: jgallimore opened a new pull request, #1130: URL: https://github.com/apache/tomee/pull/1130 (no comment) Issue Time Tracking --- Worklog Id: (was: 919479) Remaining Estimate: 0h Time Spent: 10m > Using JAX-RS endpoints with a Spring Application fails > -- > > Key: TOMEE-4332 > URL: https://issues.apache.org/jira/browse/TOMEE-4332 > Project: TomEE > Issue Type: Bug >Affects Versions: 9.1.3 >Reporter: Jonathan Gallimore >Assignee: Jonathan Gallimore >Priority: Major > Fix For: 10.0.0-M2, 9.1.4 > > Attachments: demo.tar.gz > > Time Spent: 10m > Remaining Estimate: 0h > > Consider a Spring application that uses Spring Web MVC, and also makes use of > JAX-RS endpoints using CXF in TomEE (reproducer attached). > In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following > exception: > > java.lang.NoClassDefFoundError: > org/springframework/web/filter/ServerHttpObservationFilter > at > org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) > ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > ~[cxf-core-4.0.4.jar:4.0.4] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) > ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] > at > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) > ~[openejb-cxf-rs-9.1.3.jar:9.1.3] > at > org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) > ~[tomee-jaxrs-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) > ~[tomcat-websocket.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) > ~[openejb-http-9.1.3.jar:9.1.3] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) > ~[spring-web-6.0.19.jar:6.0.19] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) > ~[catalina.jar:10.0.27] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) > ~[catalina.jar:10.0.27] > at > org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) > ~[spring-web-6.0.19.jar:6.0.19
[jira] [Created] (TOMEE-4332) Using JAX-RS endpoints with a Spring Application fails
Jonathan Gallimore created TOMEE-4332: - Summary: Using JAX-RS endpoints with a Spring Application fails Key: TOMEE-4332 URL: https://issues.apache.org/jira/browse/TOMEE-4332 Project: TomEE Issue Type: Bug Affects Versions: 9.1.3 Reporter: Jonathan Gallimore Assignee: Jonathan Gallimore Fix For: 10.0.0-M2, 9.1.4 Attachments: demo.tar.gz Consider a Spring application that uses Spring Web MVC, and also makes use of JAX-RS endpoints using CXF in TomEE (reproducer attached). In TomEE 9.1.3, invoking the JAX-RS endpoint will fail with the following exception: java.lang.NoClassDefFoundError: org/springframework/web/filter/ServerHttpObservationFilter at org.apache.cxf.jaxrs.springmvc.SpringWebUtils.setHttpRequestURI(SpringWebUtils.java:51) ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] at org.apache.cxf.jaxrs.utils.HttpUtils.setHttpRequestURI(HttpUtils.java:380) ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.setExchangeProperties(JAXRSInInterceptor.java:246) ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:183) ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78) ~[cxf-rt-frontend-jaxrs-4.0.4.jar:4.0.4] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) ~[cxf-core-4.0.4.jar:4.0.4] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) ~[cxf-core-4.0.4.jar:4.0.4] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) ~[cxf-rt-transports-http-4.0.4.jar:4.0.4] at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:266) ~[openejb-cxf-rs-9.1.3.jar:9.1.3] at org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) ~[tomee-jaxrs-9.1.3.jar:9.1.3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) ~[catalina.jar:10.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) ~[catalina.jar:10.0.27] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-websocket.jar:10.0.27] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) ~[catalina.jar:10.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) ~[catalina.jar:10.0.27] at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67) ~[openejb-http-9.1.3.jar:9.1.3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) ~[catalina.jar:10.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) ~[catalina.jar:10.0.27] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-6.0.19.jar:6.0.19] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.19.jar:6.0.19] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) ~[catalina.jar:10.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) ~[catalina.jar:10.0.27] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-6.0.19.jar:6.0.19] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.19.jar:6.0.19] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) ~[catalina.jar:10.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) ~[catalina.jar:10.0.27] at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:124) ~[spring-boot-3.1.11.jar:3.1.11] at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:99) ~[spring-boot-3.1.11.jar:3.1.11] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.19.jar:6.0.19] at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:117) ~[spring-boot-3.1.11.jar:3.1.11] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) ~[catalina.jar:10.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158
[jira] [Resolved] (TOMEE-4331) BatchEE 2.0.0
[ https://issues.apache.org/jira/browse/TOMEE-4331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Zowalla resolved TOMEE-4331. Fix Version/s: 10.0.0-M2 Resolution: Fixed > BatchEE 2.0.0 > - > > Key: TOMEE-4331 > URL: https://issues.apache.org/jira/browse/TOMEE-4331 > Project: TomEE > Issue Type: Task > Components: TomEE Core Server >Affects Versions: 10.0.0-M1 >Reporter: Richard Zowalla >Assignee: Richard Zowalla >Priority: Major > Fix For: 10.0.0-M2 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)