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

Robert Lazarski updated AXIOM-506:
----------------------------------
    Description: 
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>
  
  
  
  

 

 

 

 

 

  was:
The following was my attempt to upgrade axiom to the latest Glassfish and the 
new jakarta package name that replaces javax.

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>
 
 
 
 

 

 

 

 

 


> 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
>            Priority: Major
>
> 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.3.4#803005)

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

Reply via email to