You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Jeff Thomas (Jira)" <ji...@apache.org> on 2022/10/22 03:10:00 UTC
[jira] [Commented] (AXIOM-515) Axiom 1.3.0 has removed dependency on javax.activation.DataHandler - NoClassDefFoundError
[ https://issues.apache.org/jira/browse/AXIOM-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17622542#comment-17622542 ]
Jeff Thomas commented on AXIOM-515:
-----------------------------------
Side Note: Version 1.4.0 is showing up here in the issue tracker as unreleased even though it is available on Mavven Central :)
> 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-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org