问题描述
我在eclise中用tomcat打成war包,部署在在tomcat应用服务器中可以正常启动,并正常访问应用程序。同样的war包deploy到websphere中,Theapplicationwassuccessfullydeployed.Theapplicationwasnotsuccessfullystarted,异常信息如下:请问在tomcat下打的war包,需要在websphere应用服务器上做另外的配置吗?startofdefault/dms4/1239243033796/warfailedorg.apache.geronimo.kernel.config.LifecycleException:startofdefault/dms4/1239243033796/warfailedatorg.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:579)atorg.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:543)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:618)atorg.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)atorg.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)atorg.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)atorg.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)atorg.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)atorg.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)atorg.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$486a9d76.startConfiguration(<generated>)atorg.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)atjava.lang.Thread.run(Thread.java:810)Causedby:org.apache.geronimo.kernel.config.InvalidConfigException:Unknownstartexceptionatorg.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)atorg.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)atorg.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)...14moreCausedby:org.apache.geronimo.gbean.InvalidConfigurationException:Configurationdefault/dms4/1239243033796/warfailedtostartduetothefollowingreasons:TheserviceJ2EEApplication=null,j2eeType=WebModule,name=default/dms4/1239243033796/wardidnotstartbecauseContainerBase.addChild:start:LifecycleException:java.io.IOException:Contextdidnotstartforanunknownreasonatorg.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)...16more
解决方案
解决方案二:
Causedby:org.apache.geronimo.gbean.InvalidConfigurationException:Configurationdefault/dms4/1239243033796/warfailedtostartduetothefollowingreasons:TheserviceJ2EEApplication=null,j2eeType=WebModule,name=default/dms4/1239243033796/wardidnotstartbecauseContainerBase.addChild:start:LifecycleException:java.io.IOException:Contextdidnotstartforanunknownreasonatorg.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)...16moreWASCE版本的?把后台详细的log放上来看看SystemOut.log与SystemErr.log
解决方案三:
"TheserviceJ2EEApplication=null,j2eeType=WebModule,name=default/dms4/1239243033796/wardidnotstartbecauseContainerBase.addChild:start:LifecycleException:java.io.IOException:Contextdidnotstartforanunknownreason"貌似contextRoot缺失。一般情况下,WAS下的Deploy大多数时候都是EAR,所以一个解决方法,可以是新建一个EAR,然后把这个WAR包括进去。试试看deploy这个EAR。另外,WASCE没有用过,不过在WAS上面,单独DeployWAR的时候,需要指定contextroot,这步你做了吗?
解决方案四:
该回复于2009-05-05 20:28:24被版主删除
解决方案五:
was节点也有可能坏了,请重启一下服务器,或者重新建个节点试试