Advertisement
Guest User

Untitled

a guest
Jan 12th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.38 KB | None | 0 0
  1. 12-Jan-2019 11:17:18.454 WARNING [http-nio-8080-exec-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ChessmanWork] registered the JDBC driver [com.mysql.cj.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.
  2. 12-Jan-2019 11:17:18.456 WARNING [http-nio-8080-exec-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ChessmanWork] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
  3. java.lang.Object.wait(Native Method)
  4. java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
  5. com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:70)
  6. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  8. java.lang.Thread.run(Thread.java:748)
  9. 12-Jan-2019 11:17:18.754 INFO [46] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
  10. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
  11. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1329)
  12. at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1006)
  13. at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:96)
  14. at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:69)
  15. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  16. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  17. at java.lang.Thread.run(Thread.java:748)
  18.  
  19. <!-- Specifying the Versions of Spring, Hiberante, MySQL etc -->
  20. <properties>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  23. </properties>
  24.  
  25. <dependencies>
  26.  
  27. <!-- Apache commons -->
  28. <dependency>
  29. <groupId>commons-io</groupId>
  30. <artifactId>commons-io</artifactId>
  31. <version>2.6</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>commons-fileupload</groupId>
  35. <artifactId>commons-fileupload</artifactId>
  36. <version>1.3.3</version>
  37. </dependency>
  38.  
  39. <!-- Spring core -->
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-core</artifactId>
  43. <version>5.1.3.RELEASE</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework</groupId>
  47. <artifactId>spring-web</artifactId>
  48. <version>5.1.3.RELEASE</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework</groupId>
  52. <artifactId>spring-webmvc</artifactId>
  53. <version>5.1.3.RELEASE</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework</groupId>
  57. <artifactId>spring-context</artifactId>
  58. <version>5.1.3.RELEASE</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework</groupId>
  62. <artifactId>spring-tx</artifactId>
  63. <version>5.1.3.RELEASE</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework</groupId>
  67. <artifactId>spring-orm</artifactId>
  68. <version>5.1.3.RELEASE</version>
  69. </dependency>
  70.  
  71. <!-- Spring Securit -->
  72. <dependency>
  73. <groupId>org.springframework.security</groupId>
  74. <artifactId>spring-security-core</artifactId>
  75. <version>5.1.2.RELEASE</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.security</groupId>
  79. <artifactId>spring-security-web</artifactId>
  80. <version>5.1.2.RELEASE</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.security</groupId>
  84. <artifactId>spring-security-config</artifactId>
  85. <version>5.1.2.RELEASE</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.springframework.security</groupId>
  89. <artifactId>spring-security-taglibs</artifactId>
  90. <version>5.1.2.RELEASE</version>
  91. </dependency>
  92.  
  93. <!-- Hibernate 4 dependencies -->
  94. <dependency>
  95. <groupId>org.hibernate</groupId>
  96. <artifactId>hibernate-core</artifactId>
  97. <version>5.4.0.Final</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.hibernate</groupId>
  101. <artifactId>hibernate-entitymanager</artifactId>
  102. <version>5.4.0.Final</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.hibernate.validator</groupId>
  106. <artifactId>hibernate-validator</artifactId>
  107. <version>6.0.13.Final</version>
  108. </dependency>
  109.  
  110. <!--MYSQL Connector -->
  111. <dependency>
  112. <groupId>mysql</groupId>
  113. <artifactId>mysql-connector-java</artifactId>
  114. <version>8.0.13</version>
  115. </dependency>
  116.  
  117. <!-- Servlet -->
  118. <dependency>
  119. <groupId>javax.servlet</groupId>
  120. <artifactId>servlet-api</artifactId>
  121. <version>2.5</version>
  122. <scope>provided</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>javax.servlet</groupId>
  126. <artifactId>jsp-api</artifactId>
  127. <version>2.0</version>
  128. <scope>provided</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>javax.servlet</groupId>
  132. <artifactId>jstl</artifactId>
  133. <version>1.2</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>taglibs</groupId>
  137. <artifactId>standard</artifactId>
  138. <version>1.1.2</version>
  139. </dependency>
  140.  
  141. <!--don't know-->
  142. <dependency>
  143. <groupId>javax.xml.bind</groupId>
  144. <artifactId>jaxb-api</artifactId>
  145. <version>2.3.1</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.fasterxml.jackson.core</groupId>
  149. <artifactId>jackson-databind</artifactId>
  150. <version>2.9.7</version>
  151. </dependency>
  152.  
  153. </dependencies>
  154.  
  155. <build>
  156. <finalName>ChessmanWork</finalName>
  157. <sourceDirectory>src/main/java</sourceDirectory>
  158. <resources>
  159. <resource>
  160. <directory>src/main/resources</directory>
  161. </resource>
  162. </resources>
  163. <plugins>
  164. <plugin>
  165. <artifactId>maven-compiler-plugin</artifactId>
  166. <version>2.3.2</version>
  167. <configuration>
  168. <source>1.8</source>
  169. <target>1.8</target>
  170. </configuration>
  171. </plugin>
  172. <plugin>
  173. <groupId>org.apache.maven.plugins</groupId>
  174. <artifactId>maven-war-plugin</artifactId>
  175. <version>3.2.2</version>
  176. <configuration>
  177. <failOnMissingWebXml>false</failOnMissingWebXml>
  178. </configuration>
  179. </plugin>
  180. </plugins>
  181. </build>
  182.  
  183. <?xml version="1.0" encoding="UTF-8"?>
  184. <Server port="8005" shutdown="SHUTDOWN">
  185. <!-- TomEE plugin for Tomcat -->
  186. <Listener className="org.apache.tomee.catalina.ServerListener" />
  187. <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  188. <!-- Security listener. Documentation at /docs/config/listeners.html
  189. <Listener className="org.apache.catalina.security.SecurityListener" />
  190. -->
  191. <!--APR library loader. Documentation at /docs/apr.html -->
  192. <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  193. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  194. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  195. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  196. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  197. <GlobalNamingResources>
  198. <Resource name="UserDatabase" auth="Container"
  199. type="org.apache.catalina.UserDatabase"
  200. description="User database that can be updated and saved"
  201. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  202. pathname="conf/tomcat-users.xml" />
  203.  
  204. <Resource name="jdbc/chessman_work"
  205. auth="Container"
  206. type="javax.sql.DataSource"
  207. maxActive="100"
  208. maxIdle="30"
  209. maxWait="10000"
  210. username="root"
  211. password="root"
  212. driverClassName="com.mysql.cj.jdbc.Driver"
  213. url="jdbc:mysql://localhost:3306/chessman_work?zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=UTC&useSSL=false"/>
  214.  
  215. </GlobalNamingResources>
  216. <Service name="Catalina">
  217. <Connector port="8080" protocol="HTTP/1.1"
  218. connectionTimeout="20000"
  219. redirectPort="8443" xpoweredBy="false" server="Apache TomEE" />
  220.  
  221. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
  222.  
  223. <Engine name="Catalina" defaultHost="localhost">
  224.  
  225. <Realm className="org.apache.catalina.realm.LockOutRealm">
  226.  
  227. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  228. resourceName="UserDatabase"/>
  229. </Realm>
  230.  
  231. <Host name="localhost" appBase="webapps"
  232. unpackWARs="true" autoDeploy="true">
  233.  
  234. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  235. prefix="localhost_access_log" suffix=".txt"
  236. pattern="%h %l %u %t "%r" %s %b" />
  237.  
  238. </Host>
  239. </Engine>
  240. </Service>
  241. </Server>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement