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.
Hi, I have multiple instances where a netbeans project file gets corrupted. To reproduce, pick the Netbeans visual development pack. Create a web project..Create fewpages and deploy. Go to the source view, change the default sessuon bean "SessionBean1" to "WhateverNameBean" and refactor the rest. Try building and close open. Now your project won't show session beans. Also when you try opening the Session bean it will give javax.faces.FacesException(Unable to import and Jar not found). Your well working project start functioning strange. You got to throw away the project. I have numerous instances project functioning strange. The best thing I do is Just go to eclipse and remain with eclipse. Never Trust Netbeans!!! Beware of Netbeans!! This is my inner feeling. Serious issues are not closed.
Reassigning to visualweb for further evaluation.
Some additional info: I was able to reproduce this, the bean does seem to get renamed correctly, but after renaming the bean and closing/reopening the project the session beans view has disappeared. I didn't get that exception when opening it though.
Looks like Visual Web Pack has some code-insync issue when refactoring session/application/request bean files. When I rename SessionBean1.java to MySessionBean.java, one page bean file has the following codes: protected SessionBean1 getSessionBean1() { return (MySessionBean)getBean("SessionBean1"); } However, I don't see any exceptions! And The bean node is still visible. The Beans view will be redesign for the future release anyway. The issue is the refactoring for bean files. The workaround to fix your project is to manually change all 'SessionBean1' to 'MySessionBean'.
I was not able to reproduce the Session bean accessor not getting renamed problem. The SessionBean1 disappearing after being renamed to MySessionBean has something to do with project code looking for names starting with SessionBean*. Also the javax.faces.FacesException seems like a problem with JSF library being removed from the project. Was the App server changed?
Refactoring issue has been fixed and will be in the final release. The root node disappear issue will be redesigned in the next release.
Because VWP allows to add new request, session and application scope managed beans, we may need to change the 'Bean' node to a folder because we don't want to mess up the project root view.