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 - NoClassDefFoundError: com/sun/webui/theme/ThemeService while loading com.sun.webui.jsf.sunthemecom.sun.webui.jsf.suntheme.SunthemeThemeService; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotF
Summary: NoClassDefFoundError: com/sun/webui/theme/ThemeService while loading com.sun....
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Zavadsky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-09 04:45 UTC by Exceptions Reporter
Modified: 2009-04-19 14:03 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143951


Attachments
stacktrace (13.48 KB, text/plain)
2009-01-09 04:45 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.