TongWeb部署Dm数据库的项目报错
項目正常部署到tomcat上沒啥問題但是部署到tongweb就出錯
[2022-08-15 17:19:34 121] [SEVERE] [http-nio2-0.0.0.0-9061-exec-6] [core] [Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appConfig' defined in class path resource [spring/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'initLoad' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Connections could not be acquired from the underlying database!; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
?? ?at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
?? ?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:276)
?? ?at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
?? ?at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
?? ?at com.tongweb.catalina.core.StandardContext.listenerStart(StandardContext.java:4813)
?? ?at com.tongweb.catalina.core.StandardContext.startInternal(StandardContext.java:5293)
?? ?at com.tongweb.catalina.core.ThanosStandardContext.startInternal(ThanosStandardContext.java:199)
?? ?at com.tongweb.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
?? ?at com.tongweb.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:734)
?? ?at com.tongweb.catalina.core.ContainerBase.addChild(ContainerBase.java:710)
?? ?at com.tongweb.catalina.core.StandardHost.addChild(StandardHost.java:727)
?? ?at com.tongweb.catalina.core.ThanosStandardHost.addChild(ThanosStandardHost.java:645)
?? ?at com.tongweb.web.thanos.startup.ThanosHostConfig.deployWar(ThanosHostConfig.java:231)
?? ?at com.tongweb.tw.thanos.ThanosWebtierWebAppBuilder.fireWebtierProcess(ThanosWebtierWebAppBuilder.java:472)
?? ?at com.tongweb.tw.thanos.ThanosWebtierWebAppBuilder.deployApplication(ThanosWebtierWebAppBuilder.java:383)
?? ?at com.tongweb.deploy.TongWebDeployer.deploy0(TongWebDeployer.java:358)
?? ?at com.tongweb.deploy.TongWebDeployer.deploy(TongWebDeployer.java:318)
?? ?at com.tongweb.deploy.commands.DeployCommand.deploy(DeployCommand.java:278)
?? ?at com.tongweb.console.deployer.service.DeployerService.deploy(DeployerService.java:841)
?? ?at com.tongweb.console.deployer.controller.DeployerController.deploy(DeployerController.java:415)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
?? ?at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
?? ?at java.lang.reflect.Method.invoke(Method.java:498)
?? ?at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
?? ?at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
?? ?at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
?? ?at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237)
?? ?at org.jboss.resteasy.springmvc.ResteasyHandlerAdapter.createModelAndView(ResteasyHandlerAdapter.java:96)
?? ?at org.jboss.resteasy.springmvc.ResteasyHandlerAdapter.handle(ResteasyHandlerAdapter.java:82)
?? ?at org.jboss.resteasy.springmvc.ResteasyHandlerAdapter.handle(ResteasyHandlerAdapter.java:26)
?? ?at org.jboss.resteasy.springmvc.ResteasyWebHandlerTemplate.handle(ResteasyWebHandlerTemplate.java:39)
?? ?at org.jboss.resteasy.springmvc.ResteasyHandlerAdapter.handle(ResteasyHandlerAdapter.java:47)
?? ?at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
?? ?at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
?? ?at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
?? ?at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
?? ?at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
?? ?at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
?? ?at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.web.websocket.server.WsFilter.doFilter(WsFilter.java:53)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.catalina.filters.CsrfPreventionFilter.protectCSRF(CsrfPreventionFilter.java:183)
?? ?at com.tongweb.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:151)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.console.util.SpringI18nFilter.doFilter(SpringI18nFilter.java:92)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.console.commons.LoginFilter.doFilter(LoginFilter.java:50)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.console.commons.ConsoleFilter.doFilter(ConsoleFilter.java:88)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
?? ?at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.tw.SignAuthFilter.doFilter(SignAuthFilter.java:66)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.tw.AuthorityFilter.doFilter(AuthorityFilter.java:49)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.console.commons.NoCacheFilter.doFilter(NoCacheFilter.java:18)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.console.audit.AuditFilter.doFilter(AuditFilter.java:115)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
?? ?at com.tongweb.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
?? ?at com.tongweb.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
?? ?at com.tongweb.catalina.core.StandardContextValve.invoke0(StandardContextValve.java:123)
?? ?at com.tongweb.catalina.core.ThanosStandardContextValve.invoke0(ThanosStandardContextValve.java:14)
?? ?at com.tongweb.catalina.core.StandardContextValve.invoke(StandardContextValve.java:114)
?? ?at com.tongweb.catalina.core.ThanosStandardContextValve.invoke(ThanosStandardContextValve.java:103)
?? ?at com.tongweb.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
?? ?at com.tongweb.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:570)
?? ?at com.tongweb.catalina.core.StandardHostValve.invoke(StandardHostValve.java:346)
?? ?at com.tongweb.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
?? ?at com.tongweb.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
?? ?at com.tongweb.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
?? ?at com.tongweb.catalina.core.ThanosStandardEngineValve.invoke(ThanosStandardEngineValve.java:43)
?? ?at com.tongweb.catalina.realm.RealmValve.invoke(RealmValve.java:21)
?? ?at com.tongweb.catalina.connector.ThanosCoyoteAdaptor.service(ThanosCoyoteAdaptor.java:469)
?? ?at com.tongweb.coyote.http11.Http11Processor.service(Http11Processor.java:870)
?? ?at com.tongweb.coyote.http11.ThanosHttp11Processor.service(ThanosHttp11Processor.java:19)
?? ?at com.tongweb.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
?? ?at com.tongweb.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:921)
?? ?at com.tongweb.web.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1635)
?? ?at com.tongweb.web.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
?? ?at com.tongweb.web.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:867)
?? ?at com.tongweb.web.util.net.Nio2Endpoint$Nio2SocketWrapper$4.completed(Nio2Endpoint.java:634)
?? ?at com.tongweb.web.util.net.Nio2Endpoint$Nio2SocketWrapper$4.completed(Nio2Endpoint.java:612)
?? ?at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
?? ?at sun.nio.ch.Invoker$2.run(Invoker.java:218)
?? ?at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
?? ?at com.tongweb.web.util.threads.TWThreadPoolExecutor.runWorker(TWThreadPoolExecutor.java:1172)
?? ?at com.tongweb.web.util.threads.TWThreadPoolExecutor$Worker.run(TWThreadPoolExecutor.java:628)
?? ?at com.tongweb.web.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
?? ?at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'initLoad' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Connections could not be acquired from the underlying database!; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
?? ?at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
?? ?at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)
?? ?... 113 more
[2022-08-15 17:19:34 138] [INFO] [http-nio2-0.0.0.0-9061-exec-6] [jsf-impl] [jsf.config.listener.version]
[2022-08-15 17:19:34 962] [SEVERE] [http-nio2-0.0.0.0-9061-exec-6] [core] [One or more listeners failed to start. Full details will be found in the appropriate container log file]
[2022-08-15 17:19:34 963] [SEVERE] [http-nio2-0.0.0.0-9061-exec-6] [core] [Context [SiitScanR_kjda] startup failed due to previous errors]
[2022-08-15 17:19:34 964] [INFO] [http-nio2-0.0.0.0-9061-exec-6] [core] [Closing Spring root WebApplicationContext]
[2022-08-15 17:19:34 976] [INFO] [http-nio2-0.0.0.0-9061-exec-6] [deployment] [Undeploying app: /root/TongWeb7.0/deployment/SiitScanR_kjda]
[2022-08-15 17:19:34 980] [WARNING] [http-nio2-0.0.0.0-9061-exec-6] [core] [The web application [SiitScanR_kjda] registered the JDBC driver [dm.jdbc.driver.DmDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.]
[2022-08-15 17:19:35 546] [SEVERE] [http-nio2-0.0.0.0-9061-exec-6] [web-container] [Error deploying web application directory /root/TongWeb7.0/deployment/SiitScanR_kjda]
[2022-08-15 17:19:35 548] [SEVERE] [http-nio2-0.0.0.0-9061-exec-6] [web-container] [Error deploying web application archive /root/TongWeb7.0/deployment/SiitScanR_kjda]
總結
以上是生活随笔為你收集整理的TongWeb部署Dm数据库的项目报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Eclipse中执行Ant脚本出现Cou
- 下一篇: 常州win8如何禁用应用商店_Win8系