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.
IllegalStateException occurs in the message.log file when create a WebModule project with having Visual Java Server Faces as default STEPS TO REPRODUCE: 1. Install Netbean nightly build 10/08/2007 with glassfish V2 2. Create a Web Module project with selecting Visual Java Server Faces for default component BUG: java.lang.IllegalStateException: You are trying to access file: from the default package. Please see http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#defau at org.netbeans.ProxyClassLoader.printDefaultPackageWarning(ProxyClassLoader.java:500) at org.netbeans.ProxyClassLoader.getResource(ProxyClassLoader.java:280) at java.lang.ClassLoader.getResource(ClassLoader.java:972) at java.lang.ClassLoader.getResource(ClassLoader.java:972) at com.sun.webui.jsf.theme.JSFThemeContext.getResourcePath(JSFThemeContext.java:148) at com.sun.webui.jsf.util.JavaScriptUtilities.getThemeJavaScript(JavaScriptUtilities.java:515) at com.sun.webui.jsf.util.JavaScriptUtilities.getDojoConfig(JavaScriptUtilities.java:131) at com.sun.webui.jsf.renderkit.html.HeadRenderer.renderAttributes(HeadRenderer.java:134) at com.sun.webui.jsf.renderkit.html.AbstractRenderer.encodeBegin(AbstractRenderer.java:156) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1289) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1545) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1337) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1545) at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1337)
Created attachment 50454 [details] messages.log
I followed your steps and could not reproduce this exception. Has is happened just after you created new project? Anyway, looking at the exception the file which is being accessed is blank string. That's strange but let's put it aside for now. If you follow the link in exception you will learn that "Loading classes from the default (root) package is disabled. You can load resources from that package but a warning is printed. ..." So in this case it is just informational exception which is not causing any harm. So, how to reproduce this?
Feel free to reopen and provide more info on how to reproduce, how often it happens to you, does it happen only on one project or on all of them, on particular JSF file or on all of them, ... As I said earlier, exception in this case is harmless, but knowing the cause of it I could get rid of it completelly. Thx, David.
I'm able to reproduce it by following original reporters instruction. The problem must be in woodstock components trying to access ??? something. It happens anytime you open a visual jsp file.
This belongs to the theme jar. Passing to components.
*** This issue has been marked as a duplicate of 117498 ***