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

Andreas Veithen commented on AXIOM-515:
---------------------------------------

Both Axiom 1.3 and 1.4 have the following dependency:

{code:xml}
        <dependency>
            <groupId>jakarta.activation</groupId>
            <artifactId>jakarta.activation-api</artifactId>
            <version>1.2.2</version>
        </dependency>
{code}

I think you are incorrectly assuming that because the group ID is 
{{jakarta.activation}}, the package name is also {{jakarta.activation}}. That's 
not the case, and 1.2.2 is the last version that uses the {{javax.activation}} 
package name. My guess is that your code uses a newer version of the 
{{jakarta.activation:jakarta.activation-api}} artifact.

> Axiom 1.3.0 has removed dependency on javax.activation.DataHandler - 
> NoClassDefFoundError
> -----------------------------------------------------------------------------------------
>
>                 Key: AXIOM-515
>                 URL: https://issues.apache.org/jira/browse/AXIOM-515
>             Project: Axiom
>          Issue Type: Bug
>          Components: Core Model
>    Affects Versions: 1.3.0
>            Reporter: Jeff Thomas
>            Priority: Major
>
> The dependency on javax.activation.DataHandler seems to have been removed 
> from Axiom (now using only jakarta). (ie. axiom-api/pom.xml).
> As such, javax.activation is not a transitive dependency of Axiom.
> But there are still many code dependencies on javax.activation.
> ie. org.apache.axiom.ext.stax.datahandler.DataHandlerReader
> This is causing a NoSuchClassException if I don't supplement with 
> javax.activation in my POM.
>  
> {code:java}
> java.lang.NoClassDefFoundError: javax/activation/DataSource    at 
> org.apache.axiom.om.impl.stream.stax.pull.AxiomXMLStreamReaderHelper.<init>(AxiomXMLStreamReaderHelper.java:44)
>     at 
> org.apache.axiom.om.impl.stream.stax.pull.AxiomXMLStreamReaderHelperFactory.createHelper(AxiomXMLStreamReaderHelperFactory.java:34)
>     at 
> org.apache.axiom.core.stream.stax.pull.input.StAXPullInput.createReader(StAXPullInput.java:48)
>     at 
> org.apache.axiom.core.impl.builder.BuilderImpl.<init>(BuilderImpl.java:38)
>     at 
> org.apache.axiom.om.impl.common.factory.meta.BuilderFactory$1.createBuilder(BuilderFactory.java:46)
>     at 
> org.apache.axiom.om.impl.llom.factory.AxiomNodeFactoryImpl.createOMBuilder(Unknown
>  Source)
>     at 
> org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:165)
>     at 
> org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:145)
>     at 
> org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:116)
>     at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:554)
>     at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:539)
>     at 
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
>     at 
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90)
>     at 
> org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:343)
>     at 
> org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:330)
>  {code}
>  
>  



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

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

Reply via email to