[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-dev
Subject:    [jira] [Comment Edited] (AXIOM-506) Upgrade to org.glassfish 3.0.1 and jakarta packages
From:       "Robert Lazarski (Jira)" <jira () apache ! org>
Date:       2023-09-25 20:49:00
Message-ID: JIRA.13378525.1621024026000.102086.1695674940074 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/AXIOM-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17768904#comment-17768904 \
] 

Robert Lazarski edited comment on AXIOM-506 at 9/25/23 8:48 PM:
----------------------------------------------------------------

I spent more time on this issue and concluded the easiest path forward is upgrading \
the {color:#000000}axiom-legacy-attachments part of Axiom to the latest jakarta libs, \
and the minimum amount of other changes to Axiom.{color}

That got me further in Axis2, getting stuck on the same xjc tests and generated \
sources as mentioned in the issue description as the non Apache foundation dependency \
(I just can't commit) contains javax package references instead of jakarta.  

{color:#000000}[https://github.com/apache/axis-axis2-java-core/blob/master/modules/metadata/pom.xml#L174]{color}


{color:#000000}Out of courtesy, see below for my local uncommitted github repo as \
numerous files need updates. Primarily they just contain package name changes. I \
can't commit really until the Axis2 metadata module is fixed as explained above. \
{color}

{color:#000000}modified:    apidocs/pom.xml
            modified:    axiom-compat/pom.xml
            modified:    \
                axiom-compat/src/main/java/org/apache/axiom/attachments/utils/DataHandlerUtils.java
                
            modified:    \
                axiom-compat/src/main/java/org/apache/axiom/util/activation/DataHandlerWrapper.java
                
            modified:    \
                axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/MimePartProvider.java
                
            modified:    \
axiom-compat/src/test/java/org/apache/axiom/util/activation/DataHandlerWrapperTest.java
  modified:    axiom-legacy-attachments/pom.xml
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/AttachmentSet.java
                
            modified:    \
                axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/Attachments.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/AttachmentsDelegate.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/CachedFileDataSource.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/ConfigurableDataHandler.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/LegacyPartDataHandler.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/LegacyTempFileBlob.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/MultipartBodyAdapter.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/lifecycle/DataHandlerExt.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PartOnFileTest.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PdfAttachmentStreamingTest.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/TextDataSource.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/om/AbstractTestCase.java  \
modified:    pom.xml  modified:    testing/saaj-testsuite/pom.xml
            modified:    \
                testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/FactorySelector.java
                
            modified:    \
                testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SAAJImplementation.java
                
            modified:    \
                testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SAAJTestCase.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SAAJTestSuiteBuilder.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SOAPSpecAdapterFactory.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/body/TestAddChildElementReification.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestAddChildElementLocalName.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestAddChildElementLocalNamePrefixAndURI.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestGetOwnerDocument.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestSetParentElement.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/header/TestExamineMustUnderstandHeaderElements.java{color}


{color:#000000}   {color}

  


was (Author: robertlazarski):
I spent more time on this issue and concluded the easiest path forward is upgrading \
the {color:#000000}axiom-legacy-attachments part of Axiom to the latest jakarta libs, \
and the minimum amount of other changes to Axiom.{color}

That got me further in Axis2, getting stuck on the same xjc tests and generated \
sources as mentioned in the issue description as the non Apache foundation dependency \
contain javax package references instead of jakarta.  

{color:#000000}[https://github.com/apache/axis-axis2-java-core/blob/master/modules/metadata/pom.xml#L174]{color}


{color:#000000}Out of courtesy, see below for my local uncommitted github repo as \
numerous files need updates. Primarily they just contain package name changes. I \
can't commit really until the Axis2 metadata module is fixed as explained above. \
{color}

{color:#000000}modified:    apidocs/pom.xml
            modified:    axiom-compat/pom.xml
            modified:    \
                axiom-compat/src/main/java/org/apache/axiom/attachments/utils/DataHandlerUtils.java
                
            modified:    \
                axiom-compat/src/main/java/org/apache/axiom/util/activation/DataHandlerWrapper.java
                
            modified:    \
                axiom-compat/src/main/java/org/apache/axiom/util/stax/xop/MimePartProvider.java
                
            modified:    \
axiom-compat/src/test/java/org/apache/axiom/util/activation/DataHandlerWrapperTest.java
  modified:    axiom-legacy-attachments/pom.xml
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/AttachmentSet.java
                
            modified:    \
                axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/Attachments.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/AttachmentsDelegate.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/CachedFileDataSource.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/ConfigurableDataHandler.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/LegacyPartDataHandler.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/LegacyTempFileBlob.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/MultipartBodyAdapter.java
                
            modified:    \
axiom-legacy-attachments/src/main/java/org/apache/axiom/attachments/lifecycle/DataHandlerExt.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PartOnFileTest.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PdfAttachmentStreamingTest.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/TextDataSource.java
                
            modified:    \
axiom-legacy-attachments/src/test/java/org/apache/axiom/om/AbstractTestCase.java  \
modified:    pom.xml  modified:    testing/saaj-testsuite/pom.xml
            modified:    \
                testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/FactorySelector.java
                
            modified:    \
                testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SAAJImplementation.java
                
            modified:    \
                testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SAAJTestCase.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SAAJTestSuiteBuilder.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/SOAPSpecAdapterFactory.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/body/TestAddChildElementReification.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestAddChildElementLocalName.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestAddChildElementLocalNamePrefixAndURI.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestGetOwnerDocument.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/element/TestSetParentElement.java
                
            modified:    \
testing/saaj-testsuite/src/main/java/org/apache/axiom/ts/saaj/header/TestExamineMustUnderstandHeaderElements.java
 {color}

{color:#000000}   {color}

  

> Upgrade to org.glassfish 3.0.1 and jakarta packages
> ---------------------------------------------------
> 
> Key: AXIOM-506
> URL: https://issues.apache.org/jira/browse/AXIOM-506
> Project: Axiom
> Issue Type: Improvement
> Reporter: Robert Lazarski
> Assignee: Andreas Veithen
> Priority: Major
> Fix For: 2.0.0
> 
> 
> The following was my attempt to upgrade axiom to the latest Glassfish and the new \
> jakarta package name that replaces javax. I am trying to upgrade Axis2 to the \
> current Glassfish release, 3.0.1. Concerning Axiom, the problem is that one of our \
> Axis2 classes extends the Axiom DataHandlerWrapper class. I got stuck on this \
> dependency in the axiom-testsuite module. \
> <groupId>com.github.veithen.maven</groupId> \
> <artifactId>xjc-maven-plugin</artifactId> The problem is that this plugin generates \
> sources with javax.xml.bind instead of jakarta.xml.bind. 
> Please see below for the required changes to support the new package name. .
> 
> sed -i 's/import javax.xml.bind/import jakarta.xml.bind/g' $(find . -type f)
> sed -i 's/import javax.activation/import jakarta.activation/g' $(find . -type f)
> sed -i 's/import javax.mail/import jakarta.mail/g' $(find . -type f)
> 
> Replaced awt classes in DataHandlerWrapper with jakarta classes.
> 
> pom.xml, and module pom.xml files:
> 
> <jaxbri.version>3.0.1</jaxbri.version>
> <activation.version>2.0.1</activation.version
> <jakarta.mail.version>2.0.1</jakarta.mail.version>
> 
> <dependency>
> <groupId>jakarta.activation</groupId> <!-- instead of com.sun.activation -->
> <artifactId>jakarta.activation-api</artifactId>
> <version>${activation.version}</version>
> </dependency>
> <dependency>
> <groupId>jakarta.mail</groupId>
> <artifactId>jakarta.mail-api</artifactId> <!-- instead of com.sun.mail -->
> <version>${jakarta.mail.version}</version>
> </dependency>
> <dependency>
> <groupId>com.sun.mail</groupId>
> <artifactId>jakarta.mail</artifactId>
> <version>2.0.1</version>
> </dependency>
> <dependency>
> <groupId>jakarta.xml.bind</groupId>
> <artifactId>jakarta.xml.bind-api</artifactId>
> <version>${jaxbri.version}</version>
> </dependency>
> 
> 
> 
> 
> 
> 
> 
> 
> 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic