Hi all, I am trying to install netbeans so one of the package that should be installed is netbeans-websvccommon, but I am getting this error: [echo] java.version=1.6.0_24, ant.version=Apache Ant(TM) version 1.8.4 compiled on August 13 2012 [xjc] /tmp/portage/dev-java/netbeans-websvccommon-7.2/work/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/jaxb is not found and thus excluded from the dependency check [xjc] Compiling file:/tmp/portage/dev-java/netbeans-websvccommon-7.2/work/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/SaasServices.xsd [xjc] Writing output to /tmp/portage/dev-java/netbeans-websvccommon-7.2/work/websvc.saas.api/src [xjc] classLoader = java.net.URLClassLoader@6f87c74 [xjc] SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@35988e16 [nbmerge] Failed to build target: all-websvc.saas.api
Created attachment 323758 [details] build.log
Created attachment 323760 [details] emerge --info
An off topic: why is it using icedtea6-bin instead of icedtea7?
(In reply to comment #3) > An off topic: why is it using icedtea6-bin instead of icedtea7? It depends on virtual/jdk:1.6.
Any ideas about the bug?
can you try to build netbeans using icedtea-bin-7 or icedtea-7 or oracle-jdk-bin-1.7?
How can I do that? I have installed icedtea7, but it uses icedtea6-bin
well, i just noticed that it will complain about wrong jdk version so instead use sun-jdk-1.6: JAVA_PKG_FORCE_VM="icedtea-bin-7" emerge -va1 netbeans-websvccommon
I have installed sun-jdk, simply: - emerge -Ca icedtea-bin - emerge -1a sun-jdk But same error
Using: JAVA_PKG_FORCE_VM="icedtea-bin-7" emerge -va1 netbeans-websvccommon Gives me this error: /tmp/portage/dev-java/netbeans-websvccommon-7.2/work/nbbuild/build.xml:1189: The following error occurred while executing this line: /tmp/portage/dev-java/netbeans-websvccommon-7.2/work/nbbuild/build.xml:462: The following error occurred while executing this line: /tmp/portage/dev-java/netbeans-websvccommon-7.2/work/nbbuild/templates/projectized.xml:96: You are attempting to build NetBeans using JDK 7 (or higher). This is forbidden as it may lead to accidental usage of JDK 7+ APIs. Either run Ant with JDK 6, or set nbjdk.home=<JDK 6 home> in /tmp/portage/dev-java/netbeans-websvccommon-7.2/work/nbbuild/user.build.properties (can be set from IDE by opening a module project's Properties dialog and picking the right Java Platform in Libraries). You can alternatively set this property in /root/.nbbuild.properties to affect all checkouts on this machine. If you are sure you want to build with JDK 7+ anyway, use: -Dpermit.jdk7.builds=true
sorry, should be: JAVA_PKG_FORCE_VM="sun-jdk-1.6" emerge -va1 netbeans-websvccommon
Same error. Should I run something after "emerge sun-jdk"?
did you check it really uses sun-jdk-1.6?
eselect java-vm list Available Java Virtual Machines: [1] icedtea-bin-7 system-vm [2] sun-jdk-1.6 java-config -L The following VMs are available for generation-2: *) IcedTea JDK 7.2.3.2 [icedtea-bin-7] 2) Sun JDK 1.6.0.35 [sun-jdk-1.6] From build.log: java.version=1.6.0_35, ant.version=Apache Ant(TM) version 1.8.4 compiled on August 13 2012 So I think that it uses sun-jdk-1,6
maybe you could try the latest version (slot 9999) of netbeans from my git repo. it also allows to compile netbeans using jdk 7. you can get the repo via layman.
fordfrog overlay?
Using that overlay: - simply emerging dev-java/netbeans-websvccommon-9999_p20120918 it uses sun-jdk-1.6: same error - JAVA_PKG_FORCE_VM="icedtea-bin-7" emerge -va1 netbeans-websvccommon: same error model-gen: [echo] java.version=1.7.0_07, ant.version=Apache Ant(TM) version 1.8.4 compiled on August 13 2012 [xjc] /tmp/portage/dev-java/netbeans-websvccommon-9999_p20120918/work/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/jaxb is not found and thus excluded from the dependency check [xjc] Compiling file:/tmp/portage/dev-java/netbeans-websvccommon-9999_p20120918/work/websvc.saas.api/src/org/netbeans/modules/websvc/saas/model/SaasServices.xsd [xjc] Writing output to /tmp/portage/dev-java/netbeans-websvccommon-9999_p20120918/work/websvc.saas.api/src [nbmerge] Failed to build target: all-websvc.saas.api BUILD FAILED /tmp/portage/dev-java/netbeans-websvccommon-9999_p20120918/work/nbbuild/build.xml:1189: The following error occurred while executing this line: /tmp/portage/dev-java/netbeans-websvccommon-9999_p20120918/work/nbbuild/build.xml:462: The following error occurred while executing this line: /tmp/portage/dev-java/netbeans-websvccommon-9999_p20120918/work/websvc.saas.api/build.xml:73: java.lang.IllegalArgumentException: Illegal pattern character 'g'
I found that this error can be releated to jaxb according this http://java.net/jira/browse/JAXB-915?page=com.atlassian.streams.streams-jira-plugin%3Aactivity-stream-issue-tab Any ideas?
Another thing taht can be important when I run the emerge: >>> Verifying ebuild manifests >>> Running pre-merge checks for dev-java/netbeans-java-7.2 find: `/usr/share/netbeans-java-7.2/ant': File o directory non esistente >>> Starting parallel fetch >>> Emerging (1 of 12) dev-java/netbeans-websvccommon-7.2 >>> Jobs: 0 of 12 complete, 1 running Load avg: 0.90, 0.73, 0.46
Changing Linguas from it to en same problem.
yellowhat, still having the issue?
I do not use netbeans at the moment.
ok. as nobody else reported this issue, i will close this issue with needinfo and you can reopen it later if needed. thanks.
Please reopen this bug, 'cause I have the same exact problem with both 7.2 (since it became stable) and 7.3 so I'm stuck with 7.1.2. Just to be sure, I already tried MAKEOPTS="-j1" with both 7.2 and 7.3 but nothing changed. I read the comments so I'll try at least some of the things written there and let you know. Right now I'm using icedtea-bin-6. To gain some time, I'm attaching build.log and emerge --info for 7.3. Thanks in advance!
Created attachment 352474 [details] Build log for 7.3
Created attachment 352476 [details] emerge --info for 7.3
I tried emerging icedtea-bin-7, eselect-ing it and using JAVA_PKG_FORCE_VM="icedtea-bin-7", but nothing changed. I then found this forum thread https://forums.gentoo.org/viewtopic-t-942706.html which suggested using LC_ALL="en_US.utf8": I tried it and it worked! This is obviously a workaround, but it could be a starting point to fix the problem. Thanks in advance!
does this problem still occur with the latest portage?
This package is no more. Consider using =dev-util/netbeans-8.0.2.
Created attachment 403730 [details] Compilation fails even for 8.0.2 Please reopen this bug since the compilation problem is still present in 8.0.2 (see attachment).
Indeed. :[ This error is very trivial to fix btw. Somewhere in the code, an instance of the SimpleDateFormat class has been declared with a wrong list of values (this class is usually used for readily formatting dates) and hence, javac chokes on it. I don't have netbeans-websvccommon-8.0.2 sources handy. Could you grep for the string 'SimpleDateFormat' in /var/tmp/portage/dev-java/netbeans-websvccommon-8.0.2/work/? Run this: # grep -iR --color=always 'SimpleDateFormat' /var/tmp/portage/dev-java/netbeans-websvccommon-8.0.2/work/* and show me the output.
Created attachment 403734 [details] grep SimpleDateFormat in "work" directory Here's the grep output you asked for. I saw you changed the report summary: note that in 8.0.2 compilation fails at build.xml:73, not line 72. I don't know if it's a generated file hence different for every system, but could be worth mentioning.
Apparently, this a known issue upstream. See this bug: https://netbeans.org/bugzilla/show_bug.cgi?id=251566 Apparently, the bundled version of JAXB in NetBeans causes this snag. We should look into unbundling it.
This bug is also worth a read: https://netbeans.org/bugzilla/show_bug.cgi?id=216575
Before undertaking any action, I've asked NetBeans developers for help. https://netbeans.org/bugzilla/show_bug.cgi?id=251566#c4 Let's wait and see..
Quoted from https://netbeans.org/bugzilla/show_bug.cgi?id=251566#c6: "Legal administrativia should be already under way. In the meantime, if you can apply source patches to upstream sources, use https://java.net/jira/secure/attachment/51015/italian-patch.patch" There's also another workaround: "As a quick help, set your language to en ("-J-Duser.language=en" to netbeans_default_options in netbeans.conf)"
# ChangeLog for dev-java/netbeans-websvccommon # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-websvccommon/ChangeLog,v 1.27 2015/06/17 10:48:09 fordfrog Exp $ 17 Jun 2015; Miroslav Šulc <fordfrog@gentoo.org> netbeans-websvccommon-8.0.2.ebuild, +files/italian-patch.patch: fixed bug #435022 thanks for finding cause of the issue and the fix
* Applying netbeans-8.0.2-build.xml.patch ... [ ok ] * Applying italian-patch.patch ... * Failed Patch: italian-patch.patch ! * ( /usr/portage/dev-java/netbeans-websvccommon/files/italian-patch.patch ) * * Include in your bugreport the contents of: * * /var/calculate/tmp/portage/dev-java/netbeans-websvccommon-8.0.2/temp/italian-patch.patch.out * ERROR: dev-java/netbeans-websvccommon-8.0.2::gentoo failed (prepare phase): * Failed Patch: italian-patch.patch! * * Call stack: * ebuild.sh, line 93: Called src_prepare * environment, line 3970: Called epatch '/usr/portage/dev-java/netbeans-websvccommon/files/italian-patch.patch' * environment, line 950: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!"; *
According to bug 553898, comment #7, the patch really needs to be applied to jaxb-xjc.jar installed by netbeans.
(In reply to Zac Medico from comment #39) > According to bug 553898, comment #7, the patch really needs to be applied to > jaxb-xjc.jar installed by netbeans. that's true. but as they provide just the jar and not the sources (afaik), there's nothing i can do about it. if i'm not right, just anybody let me know how it could be solved.
it's obsolete now as netbeans is being removed from the main tree. if you need netbeans, see bug #685782.