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.
On 080102 trunk build running on JDK 1.6.0_02: To reproduce, 1) Create VehicleIncidentReport sample app 2) Open AddVehicle.jsp The following exception is thrown and the page does not open: java.lang.NullPointerException at org.netbeans.modules.visualweb.jsfsupport.container.JsfTagSupport.<init>(JsfTagSupport.java:101) at org.netbeans.modules.visualweb.jsfsupport.container.JsfTagSupport.getInstance(JsfTagSupport.java:60) at org.netbeans.modules.visualweb.jsfsupport.container.FacesContainer.findComponentClass(FacesContainer.java:369) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:396) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bind(FacesPageUnit.java:432) at org.netbeans.modules.visualweb.insync.beans.BeansUnit.sync(BeansUnit.java:215) at org.netbeans.modules.visualweb.insync.live.LiveUnitWrapper.sync(LiveUnitWrapper.java:152) at org.netbeans.modules.visualweb.insync.models.FacesModel.syncImpl(FacesModel.java:1081) at org.netbeans.modules.visualweb.insync.Model.sync(Model.java:219) at org.netbeans.modules.visualweb.insync.models.FacesModelSet.getFacesModel(FacesModelSet.java:543) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.getFacesModel(JsfForm.java:287) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.getFacesModel(JsfForm.java:297) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.loadFacesModel(JsfForm.java:2943) Caused: java.lang.IllegalStateException: FacesModel was not loaded for DataObject, dataObject=org.netbeans.modules.visualweb.project.jsfloader.JsfJspDataObject@1906fc6[MasterFileObject@26ccc1[C:/Documents and Settings/qn145415/My Documents/NetBeansProjects/VehicleIncidentReportApplication3/web/AddVehicle.jsp]] at org.netbeans.modules.visualweb.designer.jsf.JsfForm.loadFacesModel(JsfForm.java:2946) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.access$000(JsfForm.java:130) at org.netbeans.modules.visualweb.designer.jsf.JsfForm$1.modelSetAdded(JsfForm.java:348) at org.netbeans.modules.visualweb.insync.ModelSet.fireModelSetAdded(ModelSet.java:171) at org.netbeans.modules.visualweb.insync.ModelSet.getInstance(ModelSet.java:247) at org.netbeans.modules.visualweb.insync.ModelSet$1.run(ModelSet.java:209) [catch] at java.lang.Thread.run(Thread.java:619)
Fixed. The problem was, Standard JSF component library did not follow the stndard URL pattern for faces-config file. Also I removed all the hard coded TLD locations. Now the Classpath is scanned to find the TLD and faces-config files. IDE:------------------------------------------------- IDE: [1/3/08 6:27 PM] Committing "src" started Checking in FacesContainer.java; /cvs/visualweb/jsfsupport/src/org/netbeans/modules/visualweb/jsfsupport/container/FacesContainer.java,v <-- FacesContainer.java new revision: 1.6; previous revision: 1.5 done Checking in JsfTagSupport.java; /cvs/visualweb/jsfsupport/src/org/netbeans/modules/visualweb/jsfsupport/container/JsfTagSupport.java,v <-- JsfTagSupport.java new revision: 1.3; previous revision: 1.2 done Checking in Bundle.properties; /cvs/visualweb/jsfsupport/src/org/netbeans/modules/visualweb/jsfsupport/container/Bundle.properties,v <-- Bundle.properties new revision: 1.4; previous revision: 1.3 done IDE: [1/3/08 6:27 PM] Committing "src" finished
After this fix, I'm getting the following exception when creating a new vw project: java.lang.IllegalArgumentException: Unrecognized taglib uri - http://www.sun.com/webui/webuijsf at org.netbeans.modules.visualweb.jsfsupport.container.JsfTagSupport.<init>(JsfTagSupport.java:162) at org.netbeans.modules.visualweb.jsfsupport.container.JsfTagSupport.getInstance(JsfTagSupport.java:116) at org.netbeans.modules.visualweb.jsfsupport.container.FacesContainer.findComponentClass(FacesContainer.java:373) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:396) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bindMarkupBeans(FacesPageUnit.java:420) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.bind(FacesPageUnit.java:432) at org.netbeans.modules.visualweb.insync.beans.BeansUnit.sync(BeansUnit.java:215) at org.netbeans.modules.visualweb.insync.live.LiveUnit.sync(LiveUnit.java:337) at org.netbeans.modules.visualweb.insync.live.LiveUnitWrapper.getLiveUnit(LiveUnitWrapper.java:114) at org.netbeans.modules.visualweb.insync.models.FacesModel.getLiveUnit(FacesModel.java:587) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.initDesignProjectListening(JsfForm.java:699) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.initListening(JsfForm.java:269) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.init(JsfForm.java:240) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.access$600(JsfForm.java:130) [catch] at org.netbeans.modules.visualweb.designer.jsf.JsfForm$4.run(JsfForm.java:2958) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Forgot to add that this was observed on Windows.
Fixed now on Windows also IDE:------------------------------------------------- IDE: [1/7/08 3:15 PM] Committing "src" started Checking in JsfTagSupport.java; /cvs/visualweb/jsfsupport/src/org/netbeans/modules/visualweb/jsfsupport/container/JsfTagSupport.java,v <-- JsfTagSupport.java new revision: 1.4; previous revision: 1.3 done IDE: [1/7/08 3:15 PM] Committing "src" finished
Fix checked in to the trunk.
Verified.