136 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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. log4j:WARN No such property [datePattern] in org.apache.log4j.FileAppender. 2018-02-27 14:45:17 [INFO]-[Thread: localhost-startStop-1]-[com.alibaba.druid.pool.DruidDataSource.init()]: {dataSource-1} inited 27-Feb-2018 14:45:19.232 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file 27-Feb-2018 14:45:19.233 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 27-Feb-2018 14:45:19.239 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 27-Feb-2018 14:45:19.240 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] 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. 27-Feb-2018 14:45:19.242 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Druid-ConnectionPool-Create-1187313166] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: sun.misc.Unsafe.park(Native Method) java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2425) 27-Feb-2018 14:45:19.245 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Druid-ConnectionPool-Destroy-1187313166] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Thread.sleep(Native Method) com.alibaba.druid.pool.DruidDataSource$DestroyConnectionThread.run(DruidDataSource.java:2522) 27-Feb-2018 14:45:19.309 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [http-nio-8080] 27-Feb-2018 14:45:19.322 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [ajp-nio-8009] 27-Feb-2018 14:45:19.324 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 32287 ms
已经是按照“https://my.oschina.net/jfinal/blog/353062” 进行部署
server.xml :
public void configPlugin(Plugins me) { Prop p = PropKit.use("a_little_config.txt"); // C3p0Plugin c3p0Plugin = new C3p0Plugin(p.get("jdbcUrl"), // p.get("user"), p.get("password")); DruidPlugin dp = new DruidPlugin(p.get("jdbcUrl"), p.get("user"), p.get("password")); // 配置初始化大小、最小、最大 dp.setInitialSize(1); dp.setMinIdle(1); dp.setMaxActive(20); // 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 dp.setTimeBetweenEvictionRunsMillis(60000); // 配置获取连接等待超时的时间 dp.setMaxWait(60000); //dp.setRemoveAbandonedTimeoutMillis(300000); // 配置一个连接在池中最小生存的时间,单位是毫秒 dp.setMinEvictableIdleTimeMillis(300000); me.add(dp); ActiveRecordPlugin arp = new ActiveRecordPlugin(dp).setShowSql(true); _MappingKit.mapping(arp); me.add(arp); // ehcache缓存插件 me.add(new EhCachePlugin()); }
项目:JFinal