Product Version: NetBeans IDE 6.0.1 (Build 200801231200)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; MS932; en (nb)
Build JNLP Application fails in ml build only on Windows. It didn't happen on English NetBeans 6.0
and ML NetBeans 5.5.1, also it works in other platform. I verified Solaris and Linux work fine.
1. Start NB
2. Create sample app of NetBeans module e.g. Paint App
3. Run to run "Build JNLP Application"
It fails with the following error.
Signing JAR: C:\Program Files\NetBeans 6.0.1\platform7\core\locale\core_pt_BR.jar to C:\Documents and
Documents\NetBeansProjects\PaintApp2\build\jnlp\netbeans\org-netbeans-core-startup\locale\core_pt_BR.jar as jnlp
jarsigner: [can not create] : C:\Documents and Settings\katakai\My
[enter password for keystore:]
C:\Program Files\NetBeans 6.0.1\harness\suite.xml:342: The following error occurred while executing this line:
C:\Program Files\NetBeans 6.0.1\harness\jnlp.xml:172: jarsigner returned: 1
BUILD FAILED (total time: 3 seconds)
I think it will also fail on English environment, so it's not just ml issue, it will be critical for all developer.
Can anyone try it on *pure* English environment? I tried it with --locale en option on Japanese Windows.
Probably it will work if you manually create the directory
C:\Documents and Settings\katakai\My
Try that and let me know if it works.
Created attachment 55554 [details]
Possible patch (untested by me)
removing the i18n from summary since happens even in en locale on windows
when using ml release - in this experiment the error was on the _ja.jar file
rather than pt_BR one.
Will route to QE team to see if this is viewed as showstopper for 6.0.1
since this is filed as p1.
I would say very annoying for people using NB 6.0.1, works fine for NB 6.0 (even after update).
Creating directory "locale" in specific directory helps, at least manually.
really painfull workaround - add the locale directory to every directory where the build fails -> downgrading to P2 (not
stopper for 6.0.1) but the fix should be provided in the patch1 for the 6.0.1
Jesse, please fix in trunk asap
Can someone who has already reproduced it please check if the supplied patch works or not?
Created attachment 55659 [details]
Replacement for harness/tasks.jar including patch
using patched harness.jar on windows, en xp and using ja regional settings also:
many jars appear to be built and signed, both en ones and localized ones;
the build stops with attached error message on not finding org-jdesktop-layout.jar file,
so its not known if all jars are built since there might be some needed
to be after that one.
Created attachment 55667 [details]
error msg from jnlp build
I see the org-jdesktop-layout jars being built in build/jnlp but the error msg attached does refer
to that jar.
Sorry, patch was bad. Better fix in 3b80aed04040.
Created attachment 55670 [details]
Replacement tasks.jar with corrected task
the task still fails with slightly different msg about URI syntax exception - see attached
Created attachment 55674 [details]
href='org-jdesktop-layout/locale\org-jdesktop-layout_pt_BR.jar' is likely some unrelated Windows-specific bug which
should be filed separately.
filed 126160 as per Jesse's suggestion, on the situation related to attachment
based on comments from issue 126160 - verified
*** Issue 127105 has been marked as a duplicate of this issue. ***
The fix has been ported into the release601_fixes branch.
Checking in antsrc/org/netbeans/nbbuild/MakeJNLP.java;
/cvs/nbbuild/antsrc/org/netbeans/nbbuild/Attic/MakeJNLP.java,v <-- MakeJNLP.java
new revision: 188.8.131.52; previous revision: 1.27