我从这里下载了 Glassfish v2.1.1 服务器
并按照此安装说明进行操作。另外,我在org-netbeans-modules-j2ee-sun-appsrv81.nbm
NetBeans 7.3.1 中添加了“Glassfish v1、v2x”插件。当我尝试通过 NetBeans 7.3.1 中的“添加服务器实例”对话框添加 GlassFish v2.1.1 时出现问题。这是我得到的例外:
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 ModuleCL@156d4d5[org.netbeans.modules.j2ee.sun.appsrv81] with possible defining loaders [ModuleCL@171098d[org.netbeans.modules.glassfish.eecommon]] and declared parents [ModuleCL@1037517[org.netbeans.modules.project.ant], ModuleCL@481b29[org.openide.loaders], ModuleCL@ed723b[org.netbeans.api.debugger.jpda], org.netbeans.MainImpl$BootClassLoader@1eb1dbd, ModuleCL@188fa1d[org.jdesktop.layout], ModuleCL@c92353[org.openide.awt], ModuleCL@9b3e9e[org.openide.text], ModuleCL@9c4789[org.netbeans.modules.j2ee.sun.ddui], ModuleCL@4b38f9[org.netbeans.modules.j2eeserver], ModuleCL@1dcd634[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)