war 包如何部署在 websphere服务器
我在eclise中用tomcat打成war包,部署在在tomcat应用服务器中可以正常启动,并正常访问应用程序。同样的war包deploy到websphere中,The application was successfully deployed.The application was not successfully started,异常信息如下:请问在tomcat下打的war包,需要在websphere应用服务器上做另外的配置吗?
start of default/dms4/1239243033796/war failed
org.apache.geronimo.kernel.config.LifecycleException: start of default/dms4/1239243033796/war failed
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:579)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:543)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$486a9d76.startConfiguration(<generated>)
at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
at java.lang.Thread.run(Thread.java:810)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
... 14 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration default/dms4/1239243033796/war failed to start due to the following reasons:
The service J2EEApplication=null,j2eeType=WebModule,name=default/dms4/1239243033796/war did not start because ContainerBase.addChild: start: LifecycleException: java.io.IOException: Context did not start for an unknown reason
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
... 16 more
--------------------编程问答-------------------- Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration default/dms4/1239243033796/war failed to start due to the following reasons:
The service J2EEApplication=null,j2eeType=WebModule,name=default/dms4/1239243033796/war did not start because ContainerBase.addChild: start: LifecycleException: java.io.IOException: Context did not start for an unknown reason
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
... 16 more
WASCE版本的?
把后台详细的log放上来看看
SystemOut.log与SystemErr.log --------------------编程问答-------------------- " The service J2EEApplication=null,j2eeType=WebModule,name=default/dms4/1239243033796/war did not start because ContainerBase.addChild: start: LifecycleException: java.io.IOException: Context did not start for an unknown reason"
貌似contextRoot缺失。
一般情况下,WAS下的Deploy大多数时候都是EAR,所以一个解决方法,可以是新建一个EAR,然后把这个WAR包括进去。试试看deploy这个EAR。
另外,WASCE没有用过,不过在WAS上面,单独Deploy WAR的时候,需要指定context root,这步你做了吗? --------------------编程问答-------------------- --------------------编程问答-------------------- was节点也有可能坏了,请重启一下服务器,或者重新建个节点试试
补充:企业软件 , WebSphere