在NetBeans中获得意外的异常

时间:2014-04-10 04:41:43

标签: maven tomcat netbeans

我在NetBeans中获得ClassNotFoundException org.netbeans.modules.maven.j2ee.J2eeActionsProvider

  

注释:从中加载时   BinaryFileMap @ b19ad5 {FO = MultiFileObject @ b4e1e7 [项目/ ORG-netbeans的模块-行家/战/查寻/ ORG-netbeans的模块-行家-J2EE的J2eeActionsProvider.instance]}   从加载时   BinaryFileMap @ b19ad5 {FO = MultiFileObject @ b4e1e7 [项目/ ORG-netbeans的模块-行家/战/查寻/ ORG-netbeans的模块-行家-J2EE的J2eeActionsProvider.instance]}   引起:java.lang.ClassNotFoundException:   org.netbeans.modules.maven.j2ee.J2eeActionsProvider从   SystemClassLoader [474模块]可能定义加载器null和   声明父母[org.netbeans.MainImpl$BootClassLoader@12c6ec2,   ModuleCL @ 4e4a22 [org.netbeans.api.annotations.common]   ModuleCL @ c7fc0e [org.openide.awt]   ModuleCL @ 7c7efa [org.netbeans.api.progress]   ModuleCL @ 5936cd [org.openide.dialogs]   ModuleCL @ 575101 [org.openide.nodes]   ModuleCL @ 1a7eac9 [org.openide.windows]   ModuleCL @ a5c529 [org.netbeans.modules.editor.mimelookup]   ModuleCL @ 1d36f2e [org.openide.text]   ModuleCL @ 134e1cc [org.netbeans.swing.tabcontrol],... 458 more] at   org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)at at   org.netbeans.ModuleManager $ SystemClassLoader.loadClass(ModuleManager.java:722)     在java.lang.ClassLoader.loadClass(ClassLoader.java:357)at   org.netbeans.modules.projectapi.LazyLookupProviders.loadPSPInstance(LazyLookupProviders.java:174)     在   org.netbeans.modules.projectapi.LazyLookupProviders.access $ 000(LazyLookupProviders.java:73)     在   org.netbeans.modules.projectapi.LazyLookupProviders $ 1 $ 1.beforeLookup(LazyLookupProviders.java:118)     在   org.openide.util.lookup.ProxyLookup.beforeLookup(ProxyLookup.java:209)     在   org.openide.util.lookup.ProxyLookup $ R.myBeforeLookup(ProxyLookup.java:667)     在   org.openide.util.lookup.ProxyLookup $ R.beforeLookup(ProxyLookup.java:689)     在   org.openide.util.lookup.ProxyLookup $ R.myBeforeLookup(ProxyLookup.java:676)     在   org.openide.util.lookup.ProxyLookup $ R.beforeLookup(ProxyLookup.java:689)     在   org.openide.util.lookup.ExcludingLookup $ R.beforeLookup(ExcludingLookup.java:328)     在   org.openide.util.lookup.ProxyLookup $ R.myBeforeLookup(ProxyLookup.java:676)     在   org.openide.util.lookup.ProxyLookup $ R.computeResult(ProxyLookup.java:549)     在   org.openide.util.lookup.ProxyLookup $ R.allInstances(ProxyLookup.java:509)     在   org.openide.util.lookup.ProxyLookup $ R.allInstances(ProxyLookup.java:505)     在   org.openide.util.lookup.SimpleProxyLookup $ ProxyResult.allInstances(SimpleProxyLookup.java:267)     在org.openide.util.Lookup.lookupAll(Lookup.java:271)at   org.netbeans.modules.maven.execute.ActionToGoalUtils.actionProviders(ActionToGoalUtils.java:120)     在   org.netbeans.modules.maven.ActionProviderImpl.getSupportedActions(ActionProviderImpl.java:179)     在   org.netbeans.modules.project.ui.ProjectsRootNode $ BadgingNode.canDestroy(ProjectsRootNode.java:884)     在   org.netbeans.modules.openide.explorer.ExplorerActionsImpl.updateActions(ExplorerActionsImpl.java:258)     在   org.netbeans.modules.openide.explorer.ExplorerActionsImpl $ ActionStateUpdater.run(ExplorerActionsImpl.java:798)     在   org.openide.util.RequestProcessor $ Task.run(RequestProcessor.java:1423)     在   org.openide.util.RequestProcessor $ Processor.run(RequestProcessor.java:2033)   引起:java.lang.ClassNotFoundException:   org.netbeans.modules.maven.j2ee.J2eeActionsProvider at   java.net.URLClassLoader $ 1.run(URLClassLoader.java:372)at   java.net.URLClassLoader $ 1.run(URLClassLoader.java:361)at   java.security.AccessController.doPrivileged(Native Method)at   java.net.URLClassLoader.findClass(URLClassLoader.java:360)at   java.lang.ClassLoader.loadClass(ClassLoader.java:424)at   sun.misc.Launcher $ AppClassLoader.loadClass(Launcher.java:308)at at   java.lang.ClassLoader.loadClass(ClassLoader.java:357)at   org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)     ...加载时还有24个   BinaryFileMap @ b19ad5 {FO = MultiFileObject @ b4e1e7 [项目/ ORG-netbeans的模块-行家/战/查寻/ ORG-netbeans的模块-行家-J2EE的J2eeActionsProvider.instance]}

为什么我会收到此异常?

1 个答案:

答案 0 :(得分:0)

ClassNotFoundException通常意味着您的安装存在问题。

在这种情况下,org.netbeans.modules.maven.j2ee.J2eeActionsProvider注册条目存在,但找不到关联的类(但通常都位于同一模块中,因此两者都应该存在或丢失)