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 257714 - NoSuchMethodError: org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.<init>(Lorg/netbeans/modules/j2ee/deployment/devmodules/api/J2eeModule;)V
Summary: NoSuchMethodError: org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeplo...
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-27 14:07 UTC by Exceptions Reporter
Modified: 2017-02-03 23:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222258


Attachments
stacktrace (1.82 KB, text/plain)
2016-01-27 14:07 UTC, Exceptions Reporter
Details
stacktrace (2.86 KB, text/plain)
2016-03-04 13:35 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-01-27 14:07:00 UTC
This bug was originally marked as duplicate of bug 251284, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 8.1

User Comments:
GUEST: plugin for glassfish 2 on netbeans 8.1




Stacktrace: 
java.lang.NoSuchMethodError: org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.<init>(Lorg/netbeans/modules/j2ee/deployment/devmodules/api/J2eeModule;)V
   at org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl.<init>(ModuleConfigurationImpl.java:104)
   at org.netbeans.modules.j2ee.sun.ide.j2ee.ModConFactory.create(ModConFactory.java:63)
   at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl$1.run(ConfigSupportImpl.java:805)
   at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl$1.run(ConfigSupportImpl.java:784)
   at org.netbeans.modules.openide.util.DefaultMutexImplementation.readAccess(DefaultMutexImplementation.java:252)
   at org.openide.util.Mutex.readAccess(Mutex.java:218)
Comment 1 Exceptions Reporter 2016-01-27 14:07:02 UTC
Created attachment 158248 [details]
stacktrace
Comment 2 vovtz 2016-02-19 21:43:18 UTC
This seems to be caused by a conflict between the legacy, non-supported, GlassFish 2.x/3.x plugin and the built-in Java EE Server-plugin.

I have to maintain a legacy application using GlassFish 2.1.1. It is very unfortunate that the Java EE Server-plugin only supports GlassFish version 3.x and 4.x. Theoretically it would seem rather trivial to incorporate the legacy support in the official plugin.

There is no fix or work-around to be able to control a legacy GlassFish from NB’s Services tab. But in order to be able to open projects again you need to remove the old plugin (it lives in your ~/.netbeans folder or, under OS X, within the NB App [poor choice]).
Comment 3 Jiri Prox 2016-03-04 13:35:22 UTC
Created attachment 158741 [details]
stacktrace

Creating new web application, using GlassFish v2
Comment 4 vincewebb 2016-03-04 17:20:35 UTC
Vovtz talks about a conflict between two plugins. 

I assume the GlassFish plugin Vovotz refers to is the one named:
"GlassFish v1,v2.x"
Which resides in the file:
org-netbeans-modules-j2ee-sun-appsrv81.nbm

The one Vovotz refers to as "Java EE Server", 
I'm guessing is probably "Java EE Base" ?

Right now my priority is to build a web application for GlassFish v2.1.1 so I would be happy to remove any plugin that's in conflict with this objective.

Sadly I suspect that removing "Java EE Base" would not do me any favours.

Any ideas ?
Go back to an earlier version of NetBeans ?
Get an earlier version of "Java EE Base" ?
Comment 5 vincewebb 2016-03-04 17:52:25 UTC
NetBeans 8.1 definitely worked OK before with the old plugin "GlassFish v1,v2.x".

My previous laptop still has this configuration working OK under Windows 7 (32 bit).
Comment 6 Exceptions Reporter 2016-03-04 19:08:22 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=222258