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 232036 - NoClassDefFoundError: Could not initialize class org.netbeans.modules.glassfish.javaee.Hk2LibraryProvider
Summary: NoClassDefFoundError: Could not initialize class org.netbeans.modules.glassfi...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 3.x
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 23:03 UTC by demented
Modified: 2014-08-07 10:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201421


Attachments
stacktrace (1.69 KB, text/plain)
2013-06-29 23:03 UTC, demented
Details

Note You need to log in before you can comment on or make changes to this bug.
Description demented 2013-06-29 23:03:11 UTC
Build: NetBeans IDE 7.3 (Build 201306052037)
VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
GUEST: no momento em que abri um projeto

GUEST: i am not able to open any web project

GUEST: i does not cant open project

demented: I can'nt add a new web project because IDE says that anyone exists
I had tried to add server manually and again I tried create other java web and the IDE said me No
Comment 1 demented 2013-06-29 23:03:13 UTC
Created attachment 136501 [details]
stacktrace
Comment 2 Exceptions Reporter 2013-07-03 05:54:08 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=201421
Comment 3 Jaroslav Tulach 2013-07-08 15:14:05 UTC
Log 
http://statistics.netbeans.org/exceptions/messageslog?id=680015
shows signs of bad versioning:

java.lang.NoSuchMethodError: org.netbeans.modules.glassfish.spi.ServerUtilities.getPreludeUtilities()Lorg/netbeans/modules/glassfish/spi/ServerUtilities;
	at org.netbeans.modules.glassfish.javaee.Hk2OptionalFactory.createPrelude(Hk2OptionalFactory.java:83)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

The glassfish modules were not built on the same day:

	org.netbeans.libs.glassfish.sdk [1.9 201306052037]
	org.netbeans.modules.glassfish.common/0 [1.33 201306052037]
	org.netbeans.modules.glassfish.eecommon/0 [1.17.1.1.1 1 201302132200]
	org.netbeans.modules.j2ee.sun.appsrv/1 [1.25.1.1 1 201302132200]
	org.netbeans.modules.j2ee.sun.ddui/1 [1.27.1.1.1 1 201302132200]
	org.netbeans.modules.glassfish.javaee/0 [1.19.1 201302132200]

As the glassfish API evolves randomly, I suspect some method has just been deleted without proper versioning.
Comment 4 TomasKraus 2013-07-08 15:20:39 UTC
Think this may be known problem with not updating common and javaee modules together.
org.netbeans.modules.glassfish.javaee.Hk2OptionalFactory.createPrelude(Hk2OptionalFactory.java:83)

This is reference to v3 prelude code that was removed.

Think this is written in release notes but looks like people are not reading them. :)
Comment 5 TomasKraus 2013-07-09 14:29:33 UTC
Do you have J2EE features in NetBeans active? You may need to update both glassfish.common and glassfish.javaee modules together.

Please activate j2ee and make sure both modules are updated.

This is not 7.4 issue because in 7.4 we have both modules in j2ee cluster and also 7.3 update tool won't allow to update to 7.4.

Closing as won't fix because it makes no sense for 7.4.
Comment 6 demented 2013-10-24 17:08:22 UTC
thanks to all, I found solving but this bug is strange I had to remove netbeans and glassfish server with all configuration files (manually) and finally I had to install netbeans and glassfish with other name (netbeans 7.3=netbeans & glassfish 3.3=glassfish)...