You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Michael Vorburger (Jira)" <ji...@apache.org> on 2020/05/08 12:13:00 UTC

[jira] [Comment Edited] (FINERACT-940) The package javax.xml.parsers is accessible from more than one module: , java.xml (Eclipse only?)

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

Michael Vorburger edited comment on FINERACT-940 at 5/8/20, 12:12 PM:
----------------------------------------------------------------------

Yeah so this is probably an Eclipse specific issue, I'm seeing this in both Eclipse 2019-12 (4.14.0) and 2020-03 (4.15.0); here's some useful background:

* https://stackoverflow.com/questions/51094274/eclipse-cant-find-xml-related-classes-after-switching-build-path-to-jdk-10
* https://stackoverflow.com/questions/55571046/eclipse-is-confused-by-imports-accessible-from-more-than-one-module
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=545621
* https://bugs.openjdk.java.net/browse/JDK-8215739

So this is because e.g. DocumentBuilderFactory is both in Java 11 but also in xml-apis-1.3.03.jar.. let me try to see if we can just exclude the JARs causing this as dependencies...


was (Author: vorburger):
Yeah so this is probably an Eclipse specific issue, I'm seeing this in both Eclipse 2019-12 (4.14.0) and 2020-03 (4.15.0); here's some useful background:

* https://stackoverflow.com/questions/51094274/eclipse-cant-find-xml-related-classes-after-switching-build-path-to-jdk-10
* https://stackoverflow.com/questions/55571046/eclipse-is-confused-by-imports-accessible-from-more-than-one-module
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=545621
* https://bugs.openjdk.java.net/browse/JDK-8215739

> The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml (Eclipse only?)
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-940
>                 URL: https://issues.apache.org/jira/browse/FINERACT-940
>             Project: Apache Fineract
>          Issue Type: Bug
>            Reporter: Michael Vorburger
>            Priority: Major
>             Fix For: 1.4.0
>
>
> When I open the current develop branch in Eclipse, following FINERACT-846, I get the following red errors, in (only) the {{XBRLBuilderTest}}, only in the Eclipse IDE (building on the CLI with Gradle doesn't seem to care):
> {{The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml}}
> in the import of {{javax.xml.parsers.DocumentBuilderFactory}} and {{javax.xml.parsers.ParserConfigurationException}}
> and similarly:
> {{The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml}}
> on the import of {{org.w3c.dom.NodeList}} and {{org.xml.sax.SAXException}}.
> There are also {{...cannot be resolved to a type}} for NodeList, DocumentBuilderFactory, SAXException, ParserConfigurationException later, which presumably are just effects of above.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)