启动GlassFish 2.1时出错

时间:2012-12-28 05:24:08

标签: glassfish

我在我的应用中使用GlassFish 2.1。

但似乎GlassFish启动设置存在一些问题。

启动GlassFish时出现以下错误。

    SEVERE: loader.error_while_loading_app_desc
java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/MEjbApp
    at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:356)
    at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:112)
    at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:88)
    at com.sun.enterprise.server.ExtendedApplicationLoader.<init>(ExtendedApplicationLoader.java:94)
    at com.sun.enterprise.server.pluggable.ExtendedApplicationLoaderFactory.createApplicationLoader(ExtendedApplicationLoaderFactory.java:63)
    at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:395)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)

SEVERE: ERROR while loading application MEjbApp
SEVERE: LDR5006: Failed to load deployment descriptor
com.sun.enterprise.config.ConfigException: java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/MEjbApp
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:389)
    at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:112)
    at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:88)
    at com.sun.enterprise.server.ExtendedApplicationLoader.<init>(ExtendedApplicationLoader.java:94)
    at com.sun.enterprise.server.pluggable.ExtendedApplicationLoaderFactory.createApplicationLoader(ExtendedApplicationLoaderFactory.java:63)
    at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:395)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/MEjbApp
    at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:356)
    ... 22 more

SEVERE: core.unexpected_error_occured_while_loading_system_app
javax.management.MBeanException
    at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:295)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:398)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.lang.NullPointerException
    at com.sun.enterprise.management.util.J2EEManagementObjectManager.createAppMBean(J2EEManagementObjectManager.java:547)
    at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:284)
    ... 17 more

SEVERE: loader.error_while_loading_app_desc
java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/__ejb_container_timer_app
    at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:356)
    at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:112)
    at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:88)
    at com.sun.enterprise.server.ExtendedApplicationLoader.<init>(ExtendedApplicationLoader.java:94)
    at com.sun.enterprise.server.pluggable.ExtendedApplicationLoaderFactory.createApplicationLoader(ExtendedApplicationLoaderFactory.java:63)
    at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:395)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)

SEVERE: ERROR while loading application __ejb_container_timer_app
SEVERE: LDR5006: Failed to load deployment descriptor
com.sun.enterprise.config.ConfigException: java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/__ejb_container_timer_app
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:389)
    at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:112)
    at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:88)
    at com.sun.enterprise.server.ExtendedApplicationLoader.<init>(ExtendedApplicationLoader.java:94)
    at com.sun.enterprise.server.pluggable.ExtendedApplicationLoaderFactory.createApplicationLoader(ExtendedApplicationLoaderFactory.java:63)
    at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:395)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/__ejb_container_timer_app
    at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:356)
    ... 22 more

SEVERE: core.unexpected_error_occured_while_loading_system_app
javax.management.MBeanException
    at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:295)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:398)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.lang.NullPointerException
    at com.sun.enterprise.management.util.J2EEManagementObjectManager.createAppMBean(J2EEManagementObjectManager.java:547)
    at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:284)
    ... 17 more

SEVERE: loader.error_while_loading_app_desc
java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/__JWSappclients
    at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:356)
    at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:112)
    at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:88)
    at com.sun.enterprise.server.ExtendedApplicationLoader.<init>(ExtendedApplicationLoader.java:94)
    at com.sun.enterprise.server.pluggable.ExtendedApplicationLoaderFactory.createApplicationLoader(ExtendedApplicationLoaderFactory.java:63)
    at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:395)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)

SEVERE: ERROR while loading application __JWSappclients
SEVERE: LDR5006: Failed to load deployment descriptor
com.sun.enterprise.config.ConfigException: java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/__JWSappclients
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:389)
    at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:112)
    at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:88)
    at com.sun.enterprise.server.ExtendedApplicationLoader.<init>(ExtendedApplicationLoader.java:94)
    at com.sun.enterprise.server.pluggable.ExtendedApplicationLoaderFactory.createApplicationLoader(ExtendedApplicationLoaderFactory.java:63)
    at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:166)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:395)
    at com.sun.enterprise.server.AbstractManager$SystemAppStarter.doRun(AbstractManager.java:664)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:210)
    at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:331)
    at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:162)
    at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:108)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/__JWSappclients
    at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:79)
    at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:356)
    ... 22 more

即使我尝试部署应用程序时,它也没有提供任何错误详细信息或消息,例如“应用已成功部署”。

有谁能告诉我,什么是javax.management.MBeanException。当它生成?

1 个答案:

答案 0 :(得分:0)

看起来真正的问题是:java.io.FileNotFoundException: D:/glassfish/domains/domain1/applications/j2ee-apps/__JWSappclients

您可以尝试通过删除文件夹D:/glassfish/domains/domain1/applications/j2ee-apps来解决此问题。然后,您可以尝试Glassfish启动时没有错误并重新部署您的应用程序。如果在部署期间再次出现错误,则表明您的应用程序出现了问题。您应该添加一些有关环境的信息,以详细描述问题。