2013-06-26 80 views
1

我從here 下載了Glassfish v2.1.1服務器,並按照此installation instructions。 另外,我在NetBeans 7.3.1中添加了「Glassfish v1,v2x」插件:org-netbeans-modules-j2ee-sun-appsrv81.nbm。 當我嘗試通過NetBeans 7.3.1中的添加服務器實例對話框添加GlassFish v2.1.1時,會出現此問題。這是例外,我得到:無法將Glassfish v2.1.1服務器添加到NetBeans 7.3.1。 - ClassNotFoundException

java.lang.ClassNotFoundException: org.netbeans.modules.glassfish.eecommon.api.RegisterDatabase 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423) 
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222) 
Caused: java.lang.ClassNotFoundException: org.netbeans.modules.glassfish.eecommon.api.RegisterDatabase starting from [email protected][org.netbeans.modules.j2ee.sun.appsrv81] with possible defining loaders [[email protected][org.netbeans.modules.glassfish.eecommon]] and declared parents [[email protected][org.netbeans.modules.project.ant], [email protected][org.openide.loaders], [email protected][org.netbeans.api.debugger.jpda], [email protected], [email protected][org.jdesktop.layout], [email protected][org.openide.awt], [email protected][org.openide.text], [email protected][org.netbeans.modules.j2ee.sun.ddui], [email protected][org.netbeans.modules.j2eeserver], [email protected][org.netbeans.api.java.classpath], ...24 more] 
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 
Caused: java.lang.NoClassDefFoundError: org/netbeans/modules/glassfish/eecommon/api/RegisterDatabase 
    at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.AddDomainWizardIterator.createIP(AddDomainWizardIterator.java:395) 
    at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.AddDomainWizardIterator.createInstance(AddDomainWizardIterator.java:362) 
    at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.AddDomainWizardIterator.instantiate(AddDomainWizardIterator.java:301) 
    at org.netbeans.modules.j2ee.deployment.impl.bridge.BridgingServerWizardProvider$InstantiatingIteratorBridge.instantiate(BridgingServerWizardProvider.java:101) 
    at org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard$AddServerInstanceWizardIterator.instantiate(AddServerInstanceWizard.java:409) 
    at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1590) 
    at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1531) 
    at org.openide.WizardDescriptor.access$2200(WizardDescriptor.java:90) 
    at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2171) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) 
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044) 
+0

更好地嘗試在安裝NetBeans時安裝服務器,因爲它要求安裝Glassfish和Apache Tomcat。 Netbeans中存在一個通常在外部集成模塊時發生的錯誤。嘗試重新安裝並查看。 – Saqib

回答

1

嘗試手動從這裏安裝NetBeans插件:http://dlc.sun.com.edgesuite.net/netbeans/updates/6.9/uc/m1/dev/modules/enterprise/org-netbeans-modules-j2ee-sun-appsrv81.nbm

在本地,然後提交由NB下載:

工具插件 - 下載 - 添加插件

修復它爲我的NB 7.3.1。

(見glassfish v2 in Netbeans 7.2

+0

我引用:///// 嘗試從這裏手動安裝Netbeans插件:http://dlc.sun.com.edgesuite.net/netbeans/updates/6.9/uc/m1/dev/modules/enterprise /org-netbeans-modules-j2ee-sun-appsrv81.nbm ///// 此URL現已停用。 有誰知道這個插件可以從哪裏下載? – user835745