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

Freeman Yue Fang commented on CXF-9084:
---------------------------------------

Hi [~bitan],

The error in log like this
{code}
[13 18:19:42.421] | class file has wrong version 61.0, should be 55.0
[13 18:19:42.421] | Please remove or make sure it appears in the correct 
subdirectory of the classpath.
[13 18:19:42.421] | [ERROR] 
/tmp/pkgs_raw/cxf-rt-frontend-jaxws/4.0.5/core/src/main/java/org/apache/cxf/bus/spring/BusApplicationContext.java:[59,35]
 cannot access org.springframework.core.io.UrlResource
[13 18:19:42.421] | bad class file: 
/root/.m2/repository/org/springframework/spring-core/6.0.22/spring-core-6.0.22.jar(/org/springframework/core/io/UrlResource.class)
{code}
indicates that your Java version is JDK11, however, when build CXF 4.0.x with 
Spring/Spring Boot involved, you need to use JDK 17.

Please find the CXF 4.0.x migration guide here to find more details about this 
requirement
https://cxf.apache.org/docs/40-migration-guide.html

Freeman

> Failure building CXF Packages
> -----------------------------
>
>                 Key: CXF-9084
>                 URL: https://issues.apache.org/jira/browse/CXF-9084
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 4.0.5
>            Reporter: Bitan Paul
>            Priority: Major
>         Attachments: build-cxf-rt-frontend-jaxws.txt
>
>
> I’m encountering a consistent build failure with cxf-rt-frontend-jaxws-4.0.5. 
> Specifically, all the CXF packages are failing with the following error log:
> [ERROR] The following builds failed:
> [ERROR] * jaxb-xjc-runtime-sources/pom.xml
> [ERROR] * mark-generated/pom.xml
> [ERROR] * wsdl-artifact-resolution/pom.xml
> [ERROR] * jdk-cxf-with-toolchain/pom.xml
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.7.0:verify (test-integration) 
> on project cxf-codegen-plugin: 4 builds failed. See console output above for 
> details. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-invoker-plugin:3.7.0:verify 
> (test-integration) on project cxf-codegen-plugin: 4 builds failed. See 
> console output above for details.
> I think this error is related to the maven-invoker-plugin found in the POM 
> file within the codegen-plugin folder. I’ve tried different Java versions and 
> various build commands, but the error persists across all attempts. 
> Additionally, even when fetching the failing dependencies online, the main 
> package still fails for the same reason.



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

Reply via email to