This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 103301

Summary: When building jnlp in IDE installed from en packages localized jars are required
Product: apisupport Reporter: mslama <mslama>
Component: HarnessAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker CC: jf4jbug, jglick, kfrank, rmichalsky
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description mslama 2007-05-04 09:55:09 UTC
This happens for Ubuntu netbeans5.5 package:

1. install just English IDE, not ja,zh_CH and pt_BR
    (You can try this on Windows/Solaris. After you install NetBeans,
    please remove localized jar files from installation)
2. start IDE
3. create PaitApp sample project from new project wizard
4. Try "Build JNLP Application"

It causes an error like

Signing JAR: /usr/share/netbeans/5.5/platform6/core/locale/core_pt_BR.jar
jarsigner: unable to open jar file:
/usr/share/netbeans/5.5/platform6/core/locale/core_pt_BR.jar
/usr/share/netbeans/5.5/harness/suite.xml:194: The following error
occurred while executing this line:
/usr/share/netbeans/5.5/harness/jnlp.xml:126: exec returned: 1
BUILD FAILED (total time: 2 seconds)
Comment 1 mslama 2007-05-04 10:55:03 UTC
It is for latest 5.5-2 package which is currently available from "deb
http://download.java.net/ubuntu/ feisty/". See
http://blogs.sun.com/tmarble/entry/netbeans_in_ubuntu to find out how to install it.
Comment 2 Ken Frank 2007-05-30 04:57:32 UTC
If localized jars are installed, arent there some data written to product dir
that notes about localized files, so that it might be expected if the files are
removed ?

is this when running in other locale or only in en locale ?

ken.frank@sun.com
Comment 3 Jaroslav Tulach 2007-06-29 09:57:42 UTC
I know where is the problem, I'll fix it by ignoring missing files in locale/* directories.
Comment 4 Jaroslav Tulach 2007-06-29 15:49:12 UTC
"#103301: Ignoring missing localization files during JNLP packaging"
Checking in nbbuild/antsrc/org/netbeans/nbbuild/MakeJNLP.java;
/cvs/nbbuild/antsrc/org/netbeans/nbbuild/MakeJNLP.java,v  <--  MakeJNLP.java
new revision: 1.23; previous revision: 1.22
done
Checking in nbbuild/test/unit/src/org/netbeans/nbbuild/MakeJNLPTest.java;
/cvs/nbbuild/test/unit/src/org/netbeans/nbbuild/MakeJNLPTest.java,v  <--  MakeJNLPTest.java
new revision: 1.17; previous revision: 1.16
done
Checking in 
apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/jnlp/GenerateJNLPApplicationTest.java;
/cvs/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/jnlp/GenerateJNLPApplicationTest.java,v  
<--  GenerateJNLPApplicationTest.java
new revision: 1.22; previous revision: 1.21
Comment 5 Jesse Glick 2008-07-09 18:52:51 UTC
(Sorry to rmi - Firefox too fast.)

rmichalsky's recent

http://hg.netbeans.org/core-main/rev/9504e123ce36

makes GenerateJNLPApplicationTest.testBuildJNLPWhenLocalizedFilesAreMissing fail for me:

Finished ok expected:<0> but was:<1>
Comment 6 Quality Engineering 2008-07-10 04:14:10 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #310 build
Changeset: http://hg.netbeans.org/main/rev/9504e123ce36
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #61014: GenerateJNLPApplicationTest + ignoring missing locale files in VerifyJNLP (see #103301)
Comment 7 rmichalsky 2008-07-10 09:38:06 UTC
Strange, that line failed for me without changes to VerifyJNLP.java. Discussed with Jarda who suggested that validation
should skip missing localizing files as well. Perhaps Linux-Win difference (I fixed two things in the test that
obviously worked on Linux but not on Win)? What is the reason of the task failure?