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 100558 - I18N - cant create a vwp project if there is localized webui-jsf-suntheme.jar
Summary: I18N - cant create a vwp project if there is localized webui-jsf-suntheme.jar
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ potingwu
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-04-11 02:59 UTC by Ken Frank
Modified: 2007-05-29 15:39 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
t (2.32 KB, text/plain)
2007-04-11 03:02 UTC, Ken Frank
Details
exception on project creation (2.72 KB, text/plain)
2007-05-21 17:53 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-04-11 02:59:41 UTC
Using pseudo localized vwp6, using 0410 or 0405 builds,
cannot create a vwp project (and get exception)
when there is a pseudo localized webui-jsf-suntheme_ja.jar
(even when the messages_ja.properties in it is empty and there are no
localized html files)

1. we get this jar from other team and they localize it also, but for testing
now, we pseudo localize it.

2. this was not a problem about a week ago.

3. removing this pseudo localized jar from modules/ext - a vwp project
can be created.

all other pseudo localized jars in all nb module subdirs can be present -
its just this one jar.


4. even adding the manifest information to MANIFEST.MF,
X-Informational-Archive-Locale: ja
as has been done in earlier releases, does not work.

5. running in some other locale for which there are no pseudo localized files,
all is ok also.

===> this is a blocking kind of issue since it does help to emulate what
the real localzied bits will be; even though we get this jar from other team.

6. exception is attached.
Comment 1 Ken Frank 2007-04-11 03:02:03 UTC
Created attachment 40722 [details]
t
Comment 2 Ken Frank 2007-04-11 03:28:36 UTC
using the real localized jar delivered by ws team from shortfin, the problem
is still there.  I realize eventual woodstock jar for vwp6 might be different
but assuming the layout will be same, but in any case, the main experiment uses
the one in vwp6 as a basis.

ken.frank@sun.com
Comment 3 _ potingwu 2007-04-11 04:14:06 UTC
Please attach 'the real localized jar' for me to test.
Comment 4 Ken Frank 2007-04-11 07:31:14 UTC
I'm not aware of a real localized jar for netbeans 6 since we get those
deliveries later.  I take the en one and pseudo localize it, so I'll send
you that one separately.

ken.frank@sun.com
Comment 5 _ potingwu 2007-04-11 19:49:31 UTC
I think this is a web project classpath modifier bug. As I tracked, when adding
a jar file (e.g.,
URL="file:/D:/.../nbbuild/netbeans/visualweb1/modules/ext/locale/webui-jsf-suntheme_ja.jar"),
I got this assert error from
org.netbeans.modules.web.project.classpath.WebProjectClassPathModifier, at line#128:
    assert classPathRoots[i].toExternalForm().endsWith("/");    //NOI18N

It expects the URL must be ended with "/". Is that a standard that we should
follow? After I comment out this line, I do see the jar file has been
successfully added into the project.
Comment 6 Ken Frank 2007-04-11 19:53:27 UTC
To developers, I know we are not releasing localized now, but this info or solution
is critical now for ongoing vwp testing, which simulates the localized situation.
So if you could reply to the question in previous comment soon it will be very
helpful and appreciated.

ken.frank@sun.com
Comment 7 Radko Najman 2007-04-13 10:27:30 UTC
Classpath modifier works fine in web project as well as in j2se project and
there were no changes in last few days in it so if Ken says that this problem
wasn't there a week ago I would say that something changed in the visual web.

Po-Ting, see how the URL is constructed in
org.netbeans.modules.web.project.classpath.WebProjectClassPathExtender.addArchiveFiles(...)
method.
   FileObject fo...;
   FileObject archiveFile = FileUtil.getArchiveRoot(fo);
   URL[] archiveFileURL = archiveFile.getURL();

Hopefully it can help.
Comment 8 _ potingwu 2007-04-13 21:17:32 UTC
Fixed. Looks like the new API now requires the archive-root and not allows the
file itself.
Comment 9 Ken Frank 2007-05-21 17:53:27 UTC
Created attachment 42605 [details]
exception on project creation
Comment 10 Ken Frank 2007-05-21 17:56:35 UTC
ignore latestg attachment; it was meant for another issue.
Comment 11 Ken Frank 2007-05-23 00:45:41 UTC
verified - now the localized suntheme jar and some other localized ones are
mounted in
project libraries tab.

ken.frank@sun.com