程序发布后无法访问

war包发布之后,访问出现404错误。注意tomcat控制台有如下信息

org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/******] startup failed due to previous errors


查看tomcat的log目录localhost.2017-11-02.log文件

 Error creating bean with name 'dataSource'


需要在tomcat配置数据源连接池,在conf/context.xml文件配置,增加resource节点

程序发布后无法访问


再次启动依然还有错误

Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

需要在tomcat的lib目录增加ojdbc6的jar文件。

之前在mv调试时候mvn tomcat6:run配置了pom相关信息

程序发布后无法访问