今天更新了一下版本,

然后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下的吧

 

一个小项目这么多问题啊

 

 

GitHub 加速计划 / li / linux-dash
6
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:4 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐