websphere启动报/WEB-INF/applicationContext-orm- hibernate.xml]: Could not resolve placeholder 'hibe
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了websphere启动报/WEB-INF/applicationContext-orm- hibernate.xml]: Could not resolve placeholder 'hibe相关的知识,希望对你有一定的参考价值。
启动websphere错误:
[17-11-20 16:19:52:834 CST] 0000008e webapp I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet 消息 - [market_war#market.war]:.Initializing Spring root WebApplicati onContext [17-11-20 16:19:53:361 CST] 0000008e SystemOut O 2017-11-20 16:19:53,323 [WebContainer : 6] ERROR o.s.web.context.ContextLoader ContextLoader#initWebApplicationContext [ContextLo ader.java:319] Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘sessionFactory‘ defined in ServletContext resource [/WEB-INF/applicationContext-orm- hibernate.xml]: Could not resolve placeholder ‘hibernate.hbm2ddl.auto‘ in string value "${hibernate.hbm2ddl.auto}" at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELE ASE] at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELE ASE] at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEAS E] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694) ~[spring-context-3.2.4.RELEASE.jar:3.2.4 .RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:669) ~[spring-context-3.2.4.RELEASE.jar:3.2.4 .RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) ~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) ~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) ~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1651) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:414) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1170) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:769) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1364) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2169) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5429) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5555) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621) [com.ibm.ws.runtime.jar:na] at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1256) [com.ibm.ws.runtime.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:6.0] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) ~[na:6.0] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) ~[na:6.0] at java.lang.reflect.Method.invoke(Method.java:611) ~[na:6.0] at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49) [na:6.0] at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) ~[na:6.0] at java.lang.reflect.Method.invoke(Method.java:611) ~[na:6.0] at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256) [na:6.0] at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085) [na:6.0] at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966) [na:6.0] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848) [na:6.0] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773) [na:6.0] at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335) [com.ibm.ws.admin.core.jar:na] at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118) [bootstrap.jar:WAS85.SERV1 [gm1216.02]] at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228) [com.ibm.ws.admin.core.jar:na] at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251) [com.ibm.ws.admin.core.jar:na] at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:241) [wsccore-core_module.jar:na] at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:578) [appmanagement-appmanagement_module.jar:na] at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source) [struts.jar:na] at org.apache.struts.action.RequestProcessor.process(Unknown Source) [struts.jar:na] at org.apache.struts.action.ActionServlet.process(Unknown Source) [struts.jar:na] at org.apache.struts.action.ActionServlet.doPost(Unknown Source) [struts.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [javax.j2ee.servlet.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) [javax.j2ee.servlet.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:77) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384) [com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:193) [com.ibm.ws.webcontainer.jar:na] at org.apache.struts.action.RequestProcessor.doForward(Unknown Source) [struts.jar:na] at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source) [struts.jar:na] at org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown Source) [struts.jar:na] at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown Source) [struts.jar:na]
修改:
再次启动即可成功!
以上是关于websphere启动报/WEB-INF/applicationContext-orm- hibernate.xml]: Could not resolve placeholder 'hibe的主要内容,如果未能解决你的问题,请参考以下文章
websphere容器启动jdbc连接异常,db2报Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=MARKET.ALL_SEQUENCES, DRIVER