Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685256 - dev-java/netbeans-ide-8.2-r1 (prepare phase): Failed to find xercesImpl.jar in xerces-2
Summary: dev-java/netbeans-ide-8.2-r1 (prepare phase): Failed to find xercesImpl.jar i...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-05-07 09:29 UTC by ascendant512+gentoo
Modified: 2019-08-15 06:57 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,3.09 KB, text/x-log)
2019-05-07 09:29 UTC, ascendant512+gentoo
Details
netbeans-ide-8.2-r2.ebuild.patch (netbeans-ide-8.2.patch,1.59 KB, patch)
2019-05-07 09:32 UTC, ascendant512+gentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ascendant512+gentoo 2019-05-07 09:29:54 UTC
Created attachment 575456 [details]
build.log

Please be aware that the dev-java/netbeans-ide ebuild has multiple issues.  

A change to dev-java/sun-jaf results in netbeans-8.2 failing to start with an error in ~/.netbeans/8.2/var/log/messages.log.1:
INFO [org.netbeans.JarClassLoader]: Cannot open /usr/share/netbeans-nb-8.2/ide/modules/ext/jaxb/activation.jar
java.io.FileNotFoundException: /usr/share/netbeans-nb-8.2/ide/modules/ext/jaxb/activation.jar (No such file or directory)

dev-java/netbeans-ide creates a symlink /usr/share/netbeans-nb-8.2/ide/modules/ext/jaxb/activation.jar to //usr/share/sun-jaf/lib/activation.jar which is not created by dev-java/sun-jaf-1.1.1-r1 due to this change:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acfb4299d21c081ad18e71c5f2a3858a1735e3fa
and will cause a different prepare phase failure in netbeans-ide-8.2.ebuild

This change is *already addressed* in dev-java/netbeans-ide-8.2-r1 which is currently ~. See:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=507f2f473c87ec201c0b05dcfc5e3d6c8c739ed3

netbeans-ide-8.2-r1 fails with:
 * ERROR: dev-java/netbeans-ide-8.2-r1::gentoo failed (prepare phase):
 *   Failed to find xercesImpl.jar in xerces-2

This appears to be related to:
https://stackoverflow.com/questions/11677572/dealing-with-xerces-hell-in-java-maven

For this reason, I made an edit to netbeans-ide-8.2-r1.ebuild renaming xercesImpl.jar references to xerces.jar
Comment 1 ascendant512+gentoo 2019-05-07 09:32:35 UTC
Created attachment 575458 [details, diff]
netbeans-ide-8.2-r2.ebuild.patch

My edits to netbeans-ide-8.2-r1.ebuild as netbeans-ide-8.2-r2.ebuild - not sure if this is a good patch format, but hopefully it is at least readable.  With these two line changes, my netbeans now builds and runs.
Comment 2 Murilo Morais 2019-06-20 14:47:15 UTC
Good morning, thank you for posting your solution, it worked perfectly.
Comment 3 Thibaud CANALE 2019-07-07 08:35:33 UTC
Hello,

I can confirm this issue about "Failed to find xercesImpl.jar in xerces-2" in the prepare phase, and then that the provided patch works to fix this issue, thanks.

However, which is not in the scope of this issue, I am still unable to build this package, compilation fails during "bootstrap", with compilation errors found by javac in "org/netbeans/nbbuild"'s .java files.

Best regards,
Comment 4 Thibaud CANALE 2019-07-07 09:07:40 UTC
Hello again,

Sorry for the noise, I finally found the bug #678536 about my issue.

Best regards.
Comment 5 Miroslav Šulc gentoo-dev 2019-08-15 06:57:22 UTC
it's obsolete now as netbeans is being removed from the main tree. if you need netbeans, see bug #685782.