互联网服务TomcatWAS 8.5.5

Tomcat应用程序迁移到was8.5.5.13异常?

Tomcat应用程序(jdk1.7)打包后在was8.5.5.13,jdk1.8下发布后应用程序启动异常,页面无法访问,SystemOut.log报错如下:
Parent: com.ibm.ws.classloader.CompoundClassLoader@bf0526cePF
Delegation Mode: PARENT_FIRST
[10/25/18 14:42:10:098 HKT] 00000083 SystemOut O Thread [server.startup : 0] start
[10/25/18 14:42:10:400 HKT] 00000083 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /home/was/jf_dbm/jf-dbm-inst1-pf2/logs/ffdc/jf-dbm-inst1-node2-srv_7bfb0302_18.10.25_14.42.10.266399431583460717750.txt com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated 1341
[10/25/18 14:42:10:402 HKT] 00000083 webapp E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0}

                             org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flash_policyServer' defined in class path resource [META-INF/dbm_applicationContext-flex.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.mina.transport.socket.nio.NioSocketAcceptor]: Constructor threw exception; nested exception is org.apache.mina.core.RuntimeIoException: Failed to initialize.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1734)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:415)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:171)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:904)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:789)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:427)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:719)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1211)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1390
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.mina.transport.socket.nio.NioSocketAcceptor]: Constructor threw exception; nested exception is org.apache.mina.core.RuntimeIoException: Failed to initialize.

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:795)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2279)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5554)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5680)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2284)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:985)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:524)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.mina.transport.socket.nio.NioSocketAcceptor]: Constructor threw exception; nested exception is org.apache.mina.core.RuntimeIoException: Failed to initialize.

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
... 38 more

Caused by: org.apache.mina.core.RuntimeIoException: Failed to initialize.

at org.apache.mina.core.polling.AbstractPollingIoAcceptor.<init>(AbstractPollingIoAcceptor.java:215)
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.<init>(AbstractPollingIoAcceptor.java:112)
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.<init>(NioSocketAcceptor.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 40 more

Caused by: java.io.IOException: Too many open files

at sun.nio.ch.IOUtil.initPipe(Native Method)
at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:61)
at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:30)
at java.nio.channels.Selector.open(Selector.java:220)
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.init(NioSocketAcceptor.java:105)
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.<init>(AbstractPollingIoAcceptor.java:207)
... 47 more

Reporter BEGIN:com.ibm.ws.webcontainer.webapp.WebAppImpl@307a69e0
com.ibm.ws.container.AbstractContainer::name:dbm#dbm.war
com.ibm.ws.container.AbstractContainer::isAlive:true
com.ibm.ws.container.AbstractContainer::subElements:null
com.ibm.ws.container.AbstractContainer::attributes BEGIN:java.util.Collections$SynchronizedMap@8c00386a
{
key:com.ibm.ws.jsf.JSF_IMPL_ENABLED
value BEGIN:com.ibm.ws.jsf.JSFConstants$JSFImplEnabled@edfe2968
java.lang.Enum::name:None
java.lang.Enum::ordinal:3
com.ibm.ws.jsf.JSFConstants$JSFImplEnabled::MyFaces:com.ibm.ws.jsf.JSFConstants$JSFImplEnabled@36c0742e depth limit reached
com.ibm.ws.jsf.JSFConstants$JSFImplEnabled::SunRI:com.ibm.ws.jsf.JSFConstants$JSFImplEnabled@b84acb6d depth limit reached
com.ibm.ws.jsf.JSFConstants$JSFImplEnabled::Custom:com.ibm.ws.jsf.JSFConstants$JSFImplEnabled@e8ddce depth limit reached
com.ibm.ws.jsf.JSFConstants$JSFImplEnabled::None:com.ibm.ws.jsf.JSFConstants$JSFImplEnabled@edfe2968
com.ibm.ws.jsf.JSFConstants$JSFImplEnabled::$VALUES:[Lcom.ibm.ws.jsf.JSFConstants$JSFImplEnabled;@56458e93 depth limit reached
END:com.ibm.ws.jsf.JSFConstants$JSFImplEnabled@edfe2968

参与14

3同行回答

bryanbryan  软件架构设计师 , 金融研发
操作系统的文件句柄数没有调整上限,导致Caused by: java.io.IOException: Too many open files,进而导致spring中的bean初始化失败,直接影响系统启动显示全部

操作系统的文件句柄数没有调整上限,导致Caused by: java.io.IOException: Too many open files,进而导致spring中的bean初始化失败,直接影响系统启动

收起
银行 · 2018-10-26
浏览6140
was85was85  其它 , IBM
1.Caused by: java.io.IOException: Too many open files先排除这个错误,查看下was server进程管理用户的ulimit值,WAS v8设置openfiles建议设置为:80002.然后排查以下报错:Error creating bean with name 'flash_policyServer' defined in class path resource [META-INF/db...显示全部

1.Caused by: java.io.IOException: Too many open files
先排除这个错误,查看下was server进程管理用户的ulimit值,WAS v8设置openfiles建议设置为:8000

2.然后排查以下报错:
Error creating bean with name 'flash_policyServer' defined in class path resource [META-INF/dbm_applicationContext-flex.xml]: Instantiation of bean failed

收起
互联网服务 · 2018-10-25
浏览6397
最爱星期一最爱星期一  网络工程师 , 中软
ffdc[10/25/18 14:42:10:269 HKT] FFDC Exception:org.springframework.beans.factory.BeanCreationException SourceId:com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated ProbeId:1341 Reporter:com.ibm.ws.webcontainer.webapp.WebAppImpl@307a...显示全部

ffdc
[10/25/18 14:42:10:269 HKT] FFDC Exception:org.springframework.beans.factory.BeanCreationException SourceId:com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated ProbeId:1341 Reporter:com.ibm.ws.webcontainer.webapp.WebAppImpl@307a69e0
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flash_policyServer' defined in class path resource [META-INF/dbm_applicationContext-flex.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.mina.transport.socket.nio.NioSocketAcceptor]: Constructor threw exception; nested exception is org.apache.mina.core.RuntimeIoException: Failed to initialize.

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
收起
互联网服务 · 2018-10-25
浏览6013

提问者

最爱星期一
网络工程师中软
擅长领域: 中间件应用服务器服务器

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2018-10-25
  • 关注会员:3 人
  • 问题浏览:8112
  • 最近回答:2018-10-26
  • X社区推广