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 156511

Summary: NoClassDefFoundError: com/sun/webui/theme/ThemeService while loading com.sun.webui.jsf.sunthemecom.sun.webui.jsf.suntheme.SunthemeThemeService; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotF
Product: obsolete Reporter: Exceptions Reporter <exceptions_reporter>
Component: visualwebAssignee: Peter Zavadsky <pzavadsky>
Status: NEW ---    
Severity: blocker CC: ermanbas, richardmijo
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=143951
Issue Type: DEFECT Exception Reporter: 143951
Attachments: stacktrace

Description Exceptions Reporter 2009-01-09 04:45:31 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows Vista, 6.0, x86

User Comments:
GUEST: java.lang.ClassNotFoundException: com.sun.webui.theme.ThemeService
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Caused: java.lang.NoClassDefFoundError: com/sun/webui/theme/ThemeService
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:219)
	at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:263)
Caused: java.lang.NoClassDefFoundError:

juan_neufeld: Performing the "USING DATBOUND COMPONENTS TO ACCESS A DATABASE" tutorial, with Netbeans 6.5. I was in point DOING MORE, adding a Static Text. I tried to align the drop down and the static text, and IT DIDN'T WORK. THEN I TRIED TO MOVE TO THE RIGHT THE STATIC TEXT, and then I saw the red alarm at the bottom of the window.



Stacktrace: 
java.lang.NoClassDefFoundError: com/sun/webui/theme/ThemeService while loading com.sun.webui.jsf.sunthemecom.sun.webui.jsf.suntheme.SunthemeThemeService; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
        at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:267)
        at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:226)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Class.java:0)
        at java.lang.Class.forName(Class.java:247)
Comment 1 Exceptions Reporter 2009-01-09 04:45:37 UTC
Created attachment 75618 [details]
stacktrace
Comment 2 Peter Zavadsky 2009-01-13 01:43:36 UTC
Yes the problem is there:

1) Module visualweb.webui.jsf.defaulttheme, which contains webui-jsf-suntheme.jar (with SunthemeThemeService class)
is missing dependency on 2) module visualweb.woodstock.webui.jsf, which contains webui-jsf.jar (with ThemeService class).

However there is a problem to add that dependency, because the 1) module is under visualweb runtime kit which doesn't
contain designtime, while the 2) module also contains designtime classes thus needs to be in visualweb kit.

The fix requires larger change needs to divide the runtime and designtime classes.