首页 新闻 搜索 专区 学院

linux系统在tomcat上部署web项目报错

-1
[待解决问题]

在本地项目是可以增长启动的,打成war包放在linux上,就不能启动!启动一半就停止了

SEVERE: Context [/essc] startup failed due to previous errors

INFO : 2019-12-06 11:39:13,735: Configuration[line:1465}: Configured SessionFactory: null
INFO : 2019-12-06 11:39:13,773: NamingHelper[line:26}: JNDI InitialContext properties:{}
INFO : 2019-12-06 11:39:13,774: DatasourceConnectionProvider[line:61}: Using datasource: java:comp/env/jdbc/insiis
INFO : 2019-12-06 11:40:33,550: ContextLoader[line:285}: Root WebApplicationContext: initialization started
INFO : 2019-12-06 11:40:33,632: AbstractApplicationContext[line:510}: Refreshing Root WebApplicationContext: startup date [Fri Dec 06 11:40:33 CST 2019]; root of context hierarchy
INFO : 2019-12-06 11:40:33,672: XmlBeanDefinitionReader[line:317}: Loading XML bean definitions from class path resource [context-sys.xml]
INFO : 2019-12-06 11:40:33,714: ContextLoader[line:325}: Root WebApplicationContext: initialization completed in 164 ms
Dec 06, 2019 11:40:33 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Dec 06, 2019 11:40:33 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/essc] startup failed due to previous errors
INFO : 2019-12-06 11:40:33,720: AbstractApplicationContext[line:862}: Closing Root WebApplicationContext: startup date [Fri Dec 06 11:40:33 CST 2019]; root of context hierarchy
INFO : 2019-12-06 11:40:33,732: SlOdinAppListener[line:27}: 利博赛企业级应用平台已停止。
Dec 06, 2019 11:40:33 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /usr/local/apache-tomcat-7.0.96/webapps/essc.war has finished in 133,798 ms
INFO : 2019-12-06 11:41:21,051: ContextLoader[line:285}: Root WebApplicationContext: initialization started
INFO : 2019-12-06 11:41:21,124: AbstractApplicationContext[line:510}: Refreshing Root WebApplicationContext: startup date [Fri Dec 06 11:41:21 CST 2019]; root of context hierarchy
INFO : 2019-12-06 11:41:21,157: XmlBeanDefinitionReader[line:317}: Loading XML bean definitions from class path resource [context-sys.xml]
INFO : 2019-12-06 11:41:21,240: ContextLoader[line:325}: Root WebApplicationContext: initialization completed in 189 ms
Dec 06, 2019 11:41:21 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Dec 06, 2019 11:41:21 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/essc] startup failed due to previous errors
INFO : 2019-12-06 11:41:21,250: AbstractApplicationContext[line:862}: Closing Root WebApplicationContext: startup date [Fri Dec 06 11:41:21 CST 2019]; root of context hierarchy
INFO : 2019-12-06 11:41:21,264: SlOdinAppListener[line:27}: 利博赛企业级应用平台已停止。
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /usr/local/apache-tomcat-7.0.96/webapps/essc.war has finished in 134,722 ms
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.96/webapps/host-manager
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.96/webapps/host-manager has finished in 122 ms
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.96/webapps/manager
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.96/webapps/manager has finished in 104 ms
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.96/webapps/examples
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.96/webapps/examples has finished in 189 ms
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.96/webapps/docs
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.96/webapps/docs has finished in 80 ms
Dec 06, 2019 11:41:21 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Dec 06, 2019 11:41:21 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Dec 06, 2019 11:41:21 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 135300 ms

问题补充:

SEVERE: Exception sending context initialized event to listener instance of class com.insigma.odin.framework.webcontroller.SlOdinAppListener
java.lang.ExceptionInInitializerError
at com.insigma.odin.framework.persistence.HBUtil.getHBSessionFactory(HBUtil.java:40)
at com.insigma.odin.framework.persistence.HBUtil.getHBSession(HBUtil.java:152)
at com.insigma.odin.framework.persistence.HBUtil.getValueFromTab(HBUtil.java:259)
at com.insigma.odin.framework.safe.util.SafeConst.getCueProductName(SafeConst.java:149)
at com.insigma.odin.framework.safe.util.SafeConst.<clinit>(SafeConst.java:43)
at com.insigma.odin.framework.webcontroller.SlOdinAppListener.contextInitialized(SlOdinAppListener.java:36)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1018)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2020)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.destroyObject(PoolableConnectionFactory.java:643)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1738)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1721)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1486)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1103)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1933)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1216)
at com.lbs.leaf.persistence.HibernateHelper.<clinit>(Unknown Source)
... 19 more

Dec 06, 2019 11:41:21 AM org.apache.catalina.core.ApplicationContext log

二毛605332的主页 二毛605332 | 初学一级 | 园豆:179
提问于:2019-12-06 14:08
< >
分享
所有回答(1)
-1

你这个好像是war包有问题

避凉闲庭 | 园豆:409 (菜鸟二级) | 2019-12-06 18:26
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册