2011-03-19 88 views
0

奇怪的是:當我通過autodeploy目錄將Web應用程序部署到GF 3.1時,我收到以下錯誤。通過管理控制檯的部署工作正常與同一場戰爭!Glassfish 3.1:在部署Web應用程序時發生彈出錯誤

這裏是個例外:

[#| 2011-03-19T20:36:06.836 + 0000 |信息| glassfish3.1 | javax.enterprise.system.std.com.sun.enterprise。 server.logging | _ThreadID = 51; _ThreadName =線程1; |加入 單爲WebappClassLoader (委託= FALSE; 庫= WEB-INF /類/)|#]

[#| 2011-03- 19T20:36:14.876 + 0000 | SEVERE | glassfish3.1 | org.apache.catalina.core.ContainerBase | _ThreadID = 25; _ThreadName = Thread-1; | ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException異常: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: 錯誤創建管理對象 類 組織.springframework.web.context.ContextLoaderListener 在org.apache.catalina.core.StandardContext.start(StandardContext.java:5271) 在com.sun.enterprise.web.WebModule.start(WebModule.java:500) 在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache。 catalina.core.StandardHost.addChild(StandardHost.java:755) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer。 java:1630) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:100) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish。 internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy( ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glass fish.deployment.admin.DeployCommand.execute(DeployCommand.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl $ 1.execute(CommandRunnerImpl.java:360) at com.sun.enterprise.v3.admin .CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access $ 1200( CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1247) at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145) at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:577) at org.glassfish.deployment.autodeploy.AutoD在org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:380)上的org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:395) 上的eployer.deployAll(AutoDeployer.java:463) 。 at org.glassfish.deployment.autodeploy.AutoDeployService $ 1.run(AutoDeployService.java:213) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread。運行(Timer.java:462) 所致: java.lang.IllegalArgumentException異常: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: 錯誤創建管理對象 類 org.springframework.web.context.ContextLoaderListener 在org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2688) 在org.apache.catalina.core.StandardContext.addApplicationListener(StandardContext.java:1932 ) at com.sun.enterprise.web.TomcatDeploymentConfig.configureApplicationListener(TomcatDeploymentConfig.java:234) at com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule(TomcatDeploymentConfig.jav (WebModuleContextConfig.java:172) at org.apache。 catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:149) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5268) ... 26更多原因:javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: 錯誤創建管理對象用於在 org.apache.catalina.core.StandardContext.createListener(StandardContext 類org.springframework.web.context.ContextLoaderListener 。 java:2798) at org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4745) at com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1603) at org.apache.catalina.core。 StandardContext.addListener(StandardContext.java:2685) ... 33更多由:com.sun.enterprise.container.common.spi.util.InjectionException: 創建管理對象爲 類 org.springframework.web錯誤。 context.ContextLoaderListener at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:317) at com.sun.enterprise.web.WebContainer.createListenerInstance(WebContainer.java:734) 在com.sun.enterprise.web.WebModule.createListener實例(WebModule.java:1981) 在org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2796) ...所致更多36 :在的com.sun顯示java.lang.NullPointerException 。 enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:485) 在com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:428) 在COM。 sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:300) ...... 39多個

正式版中的NPE?這不是GF中新bug的指標嗎?

我的web.xml的海賊王:

<listener> 
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
    </listener> 

採用最新(3.0.2.RELEASE)版本春網的

感謝。

回答

1

錯誤報告是在這裏: http://java.net/jira/browse/GLASSFISH-16237

竟然是錯誤與Spring的依賴。

我希望這有一個真正的解決方案。因爲我也有這個問題,我的應用根本不使用Spring! GlassFish 3.1中的Just Weld/CDI + EJB。

+0

謝謝,亨迪,那只是我自己的傑拉任務:) – bitec 2011-04-05 04:38:20

相關問題