[jira] [Created] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Mark Kahl (Jira)
Mark Kahl created CXF-8889:
--

 Summary: Compilation of CXF fails due to a "jakarta..." vs. 
"javax..." issue.
 Key: CXF-8889
 URL: https://issues.apache.org/jira/browse/CXF-8889
 Project: CXF
  Issue Type: Bug
  Components: Build system
Affects Versions: 4.0.2, 3.6.0
 Environment: h1. Environments

The issue appeared on two machines in different networks:
 # Windows 10
Java: 11.0.15, Eclipse Adoptium
apache-maven-3.8.5
 # Windows 11
Java: 11.0.14.9-hotspot, Eclipse Adoptium
apache-maven-3.6.1
Reporter: Mark Kahl


h1. Issue

When cloning CXF fresh from Github and building it:
 * mvn clean package verify

The following Error is signaled:
 * [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) 
on project cxf-rt-transports-http: Compilation failure: Compilation failure:
[ERROR] 
/C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
 cannot access javax.servlet.ServletContext
[ERROR] class file for javax.servlet.ServletContext not found
[ERROR] 
/C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
 cannot access javax.servlet.ServletConfig
[ERROR] class file for javax.servlet.ServletConfig not found

h1. Reason

The reason is that in the method:
 * org.apache.cxf.transport.servlet/CXFServle#loadBus

the call to:
 * WebApplicationContextUtils.            
getWebApplicationContext(servletConfig.getServletContext());

is required to return a:
 * {*}jakarta{*}.servlet.ServletContext

however the method return value stems from:
 * 
org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
 (spring-web-5.3.24)

which delivers a:
 * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Mark Kahl (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Kahl updated CXF-8889:
---
Attachment: cxfmvn.lst

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 3.6.0, 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Priority: Major
> Attachments: cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-8889:
--
Fix Version/s: 4.0.3

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.0.3
>
> Attachments: cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-8889:
--
Affects Version/s: (was: 3.6.0)

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Attachments: cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko reassigned CXF-8889:
-

Assignee: Andriy Redko

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 3.6.0, 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Attachments: cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Andriy Redko (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17736175#comment-17736175
 ] 

Andriy Redko commented on CXF-8889:
---

Thanks [~agitatra] , there were some Apache Maven profile leftovers we haven't 
cleaned up, but in general to build 4.x you need JDK-17 (this is Spring 
Framework 6 based line).

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.0.3
>
> Attachments: cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko resolved CXF-8889.
---
Resolution: Fixed

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.0.3
>
> Attachments: cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Mark Kahl (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Kahl updated CXF-8889:
---
Attachment: cxfmvn-2.lst

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.0.3
>
> Attachments: cxfmvn-2.lst, cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Mark Kahl (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17736195#comment-17736195
 ] 

Mark Kahl commented on CXF-8889:


Dear [~reta] thank you for coming back to me so fast, and please excuse for not 
reading: "BUILDING.txt" thoroughly enough.

However, switching to Java 17 (Eclipse Adoptium; jdk-17.0.7.7-hotspot) did not 
change the outcome.  Still the {*}javax{*}-Problem persists:
 * [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) 
on project cxf-rt-transports-http: Compilation failure: Compilation failure:
[ERROR] 
/D:/Tmp/Zeitenwende/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
 cannot access {*}javax{*}.servlet.ServletContext
[ERROR]   class file for javax.servlet.ServletContext not found
[ERROR] 
/D:/Tmp/Zeitenwende/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
 cannot access {*}javax{*}.servlet.ServletConfig
[ERROR]   class file for javax.servlet.ServletConfig not found

As mentioned above CXFServlet.java references spring-web-5.3.24 which returns: 
{*}javax{*}.servlet.ServletConfig not {*}jakarta{*}.servlet.ServletConfig

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.0.3
>
> Attachments: cxfmvn-2.lst, cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8889) Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.

2023-06-22 Thread Andriy Redko (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17736197#comment-17736197
 ] 

Andriy Redko commented on CXF-8889:
---

That has been fixed in `main` if you pull the latest changes, thank you

> Compilation of CXF fails due to a "jakarta..." vs. "javax..." issue.
> 
>
> Key: CXF-8889
> URL: https://issues.apache.org/jira/browse/CXF-8889
> Project: CXF
>  Issue Type: Bug
>  Components: Build system
>Affects Versions: 4.0.2
> Environment: h1. Environments
> The issue appeared on two machines in different networks:
>  # Windows 10
> Java: 11.0.15, Eclipse Adoptium
> apache-maven-3.8.5
>  # Windows 11
> Java: 11.0.14.9-hotspot, Eclipse Adoptium
> apache-maven-3.6.1
>Reporter: Mark Kahl
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.0.3
>
> Attachments: cxfmvn-2.lst, cxfmvn.lst
>
>
> h1. Issue
> When cloning CXF fresh from Github and building it:
>  * mvn clean package verify
> The following Error is signaled:
>  * [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
> (default-compile) on project cxf-rt-transports-http: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[55,60]
>  cannot access javax.servlet.ServletContext
> [ERROR] class file for javax.servlet.ServletContext not found
> [ERROR] 
> /C:/Users/bleh/Documents/Projekte/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java:[137,13]
>  cannot access javax.servlet.ServletConfig
> [ERROR] class file for javax.servlet.ServletConfig not found
> h1. Reason
> The reason is that in the method:
>  * org.apache.cxf.transport.servlet/CXFServle#loadBus
> the call to:
>  * WebApplicationContextUtils.            
> getWebApplicationContext(servletConfig.getServletContext());
> is required to return a:
>  * {*}jakarta{*}.servlet.ServletContext
> however the method return value stems from:
>  * 
> org.springframework.web.context.support.WebApplicationContextUtils#getRequiredWebApplicationContext
>  (spring-web-5.3.24)
> which delivers a:
>  * {*}javax{*}.servlet.ServletContext



--
This message was sent by Atlassian Jira
(v8.20.10#820010)