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 101494 - JSF Configuration Loader does NOT load VWP config file.
Summary: JSF Configuration Loader does NOT load VWP config file.
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 01:23 UTC by Joelle Lam
Modified: 2007-05-02 21:10 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Loading issue image (42.11 KB, image/jpeg)
2007-04-18 01:24 UTC, Joelle Lam
Details
It did get loaded. (432.38 KB, application/octet-stream)
2007-04-18 01:41 UTC, Joelle Lam
Details
faces-config file that is sometimes picked up by the loader. (3.48 KB, application/octet-stream)
2007-04-18 15:49 UTC, Joelle Lam
Details
beginning faces config. (1.52 KB, application/octet-stream)
2007-04-18 15:52 UTC, Joelle Lam
Details
session settings pop-up error (174.11 KB, image/jpeg)
2007-04-18 20:13 UTC, sjangity
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joelle Lam 2007-04-18 01:23:04 UTC
Jsf config loader does not pick up VWP faces-config.xml.  Please refer to the
picture attached.  The lower project is vwp project while the upper one is
simply a jsf project.  Notice the icon attached to the faces-config.

This problem seems to be intermittent. I believe I have seen a VWP project with
this loaded correctly.  This also seems to be a new issue as it did not seem to
be a problem before April 17, 2007.  

The JSF Configuration File Loader is looking for Mime Type : text/x-jsf+xml
Comment 1 Joelle Lam 2007-04-18 01:24:07 UTC
Created attachment 41126 [details]
Loading issue image
Comment 2 Joelle Lam 2007-04-18 01:32:38 UTC
Confirmation: Sometimes the jsf configuration loader does pick up this file even
in VWP, but most of the times it does not.  But it does seem in only works once
and then does not work again.
Comment 3 Joelle Lam 2007-04-18 01:41:01 UTC
Created attachment 41127 [details]
It did get loaded.
Comment 4 Joelle Lam 2007-04-18 01:41:37 UTC
I restarted the ide this time, and it came back. See the image I just attached.
Comment 5 _ potingwu 2007-04-18 01:43:15 UTC
I can always reproduce here. Looks like the
org.netbeans.modules.web.jsf.JSFConfigLoader is filtered out the config file
from other places. I.e., it only accepts config file created by JSF framework.
Comment 6 Petr Pisl 2007-04-18 09:01:51 UTC
JSFConfigDataLoader doesn't have any notion about jsf framework. It's standard
dataloader. Could you attach the file, which is not recognized properly?
Comment 7 Joelle Lam 2007-04-18 15:49:13 UTC
Created attachment 41177 [details]
faces-config file that is sometimes picked up by the loader.
Comment 8 Joelle Lam 2007-04-18 15:52:20 UTC
Created attachment 41178 [details]
beginning faces config.
Comment 9 sjangity 2007-04-18 20:11:19 UTC
VWP users rely on a visual page navigation design experience. I've seen this bug
almost 3-4 times today on our latest bits (VWP 070418_4). Bumping priority due
to following:

- frequently observed
- loss of expected VWP design functionality

Interestingly, when I re-started the IDE to test the workaround, I saw the
pop-up message shown in the attached image.
Comment 10 sjangity 2007-04-18 20:13:09 UTC
Created attachment 41195 [details]
session settings pop-up error
Comment 11 Petr Pisl 2007-04-18 20:16:56 UTC
The message is just result, that the serialized top component is not not able to
deserialized. The reason is that the file in the opened editor is handled by
different DataLoader, then was diring serialization. 
Comment 12 Joanne Lau 2007-04-20 00:33:06 UTC
NB 0704171800 and VW 070419_1

I'm seeing every time when a new project is created.
I have to close and restart the IDE. 
Comment 13 _ potingwu 2007-04-20 01:40:38 UTC
I have workaround for this issue.

Currently visualweb creates "faces-config.xml" by using
DataObject.createFromTemplate API. If I change the creating exactly just like
JSF framework by using FileUtil.createData instead, then it works.

Looks like there is some kind of race condition among the DataLoader.

Petr, any comments?
Comment 14 _ potingwu 2007-04-20 04:39:52 UTC
This workaround is now in the trunk. Please verify.
Comment 15 _ potingwu 2007-04-20 21:40:25 UTC
Try creating more than 40 projects so far today and all work.
Comment 16 Petr Pisl 2007-04-23 12:21:51 UTC
I'm sorry to be quiet so far. How does the template look like, when you use
DataObject.createFromTemplate ? The template has the appropriate content or you
include the content after? If you include the content after creation it has to
be done in the same atomic action as creating. 
Comment 17 sjangity 2007-05-02 21:10:14 UTC
Verified the fix in Build 200705021220, WinXP JDK 1.5U11.