java.lang.NoClassDefFoundError: Lcom/sun/webui/jsf/component/Page;
843844Apr 9 2008 — edited Apr 10 2008Suddenly, for no apparent reason to me, I'm getting this error on my project. The weird thing is it happens on my desktop computer, in both Windows and Ubuntu, but on my laptop the same revision of the project runs just fine!
If I remove all webuijsf-tags (which I don't really even use, but NetBeans keeps adding them for some reason) in the jsp's, this error goes away, but I'm still left with these:
Cannot load com.sun.webui.jsf.util.UploadFilter reason : com.sun.webui.jsf.util.UploadFilter
java.lang.ClassNotFoundException: com.sun.webui.jsf.util.UploadFilter
...
Cannot load com.sun.webui.theme.ThemeServlet reason : com.sun.webui.theme.ThemeServlet
java.lang.ClassNotFoundException: com.sun.webui.theme.ThemeServlet
It's really weird, because up until now the project ran fine with them there. Then, if I remove references to these servlets in web.xml, since I don't need them(?), I get this instead:
LifecycleId com.sun.faces.lifecycle.PARTIAL does not exist
WebModule[Weboptic]StandardWrapper.Throwable
java.lang.IllegalArgumentException: Cant create Lifecycle for id: com.sun.faces.lifecycle.PARTIAL.
So what's going on? I strongly doubt I did something to cause this. All of the code is just like it was prior to everything not working, and besides, it works just fine on my laptop with the same version of NetBeans, same JDK, same project revision, same OS etc.