5月27号晚上tomcat无法启动的蛋疼事情的原因的记录

今天更新了一下版本,

然后tomcat起来了,windows没问题,linux下项目起不来,看日志看的傻掉了

问题如下

1:java.lang.IllegalArgumentException: Illegal pattern character 'Y'
这个是SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");

不是YYYY,抄代码出问题了,nnd

2:SEVERE: The web application [/********] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

好吧,这个事切换数据库ip是端口忘写了3306

3;INFO: validateJarFile(/home/mmbk/tomcat/webapps/*******/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
这个是打包的时候把servlet-api.jar,网上讲要删掉自己的,也有讲将 servlet-api.jar拷贝至%JAVA_HOME%\jre\lib\ext\的

现在还抱这个错误

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_31/jre/lib/amd64/server:/usr/java/jdk1.6.0_31/jre/lib/amd64:/usr/java/jdk1.6.0_31/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

不过不影响了

4:log4j.appender.A1.File=D\:/log4j.log

路径还是改成linux下的吧

一个小项目这么多问题啊

你可能感兴趣的:(tomcat)