[ https://issues.apache.org/jira/browse/AXIOM-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626237#comment-17626237 ]
Jeff Thomas commented on AXIOM-515: ----------------------------------- ah true. we are usiing 2.0.1 of the jakarta.activation library. Confusing but my mistake. :) We are doing some other jaxb xsd->java generation in our project and need to coerce it to create the jakarta imports instead of the javax imports. So we went with the most recent version. As a workaround I am still bringing in the latest version of the javax.activation-api 1.2.0 as a separate dependency. > 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