Advertisement
Guest User

Untitled

a guest
May 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.20 KB | None | 0 0
  1. package ru.domain.controller;
  2.  
  3. import ru.domain.dao.PersonDAO;
  4. import ru.domain.person.Person;
  5.  
  6. import javax.servlet.RequestDispatcher;
  7. import javax.servlet.ServletException;
  8. import javax.servlet.annotation.WebServlet;
  9. import javax.servlet.http.HttpServlet;
  10. import javax.servlet.http.HttpServletRequest;
  11. import javax.servlet.http.HttpServletResponse;
  12. import java.io.IOException;
  13. import java.sql.SQLException;
  14.  
  15. @WebServlet(name = "PersonController", urlPatterns = {"/PersonController"})
  16. public class PersonController extends HttpServlet {
  17.  
  18. private static final long serialVersionUID = 1L;
  19. private PersonDAO persondao;
  20.  
  21. public PersonController() {
  22. super();
  23. persondao = new PersonDAO();
  24. }
  25.  
  26. protected void doGet(HttpServletRequest request, HttpServletResponse response)
  27. throws ServletException, IOException {
  28. String insert_or_edit = "/Person.jsp";
  29. String list_person = "/ListPerson.jsp";
  30. String forward;
  31. String action = request.getParameter("action");
  32. if (action.equalsIgnoreCase("delete")) {
  33. // the other page is sending the person id, so we can get here and
  34. // call the remove method
  35. int personid = Integer.parseInt(request.getParameter("personId"));
  36. // we remove the person from the database
  37. persondao.removePerson(personid);
  38. // set the forward string to list and put all persons in request
  39. // attribute so we can use them inside the other page
  40. forward = list_person;
  41. try {
  42. request.setAttribute("persons", persondao.getPersons());
  43. } catch (SQLException e) {
  44. e.printStackTrace();
  45. }
  46. // if the user is trying to edit a person
  47. } else if (action.equalsIgnoreCase("edit")) {
  48. forward = insert_or_edit;
  49. int personid = Integer.parseInt(request.getParameter("personId"));
  50. try {
  51. Person person = persondao.getPersonById(personid);
  52. request.setAttribute("person", person);
  53. } catch (SQLException e) {
  54. e.printStackTrace();
  55. }
  56. } else if (action.equalsIgnoreCase("listPerson")) {
  57. forward = list_person;
  58. try {
  59. request.setAttribute("persons", persondao.getPersons());
  60. } catch (SQLException e) {
  61. e.printStackTrace();
  62. }
  63. } else
  64. forward = insert_or_edit;
  65.  
  66. RequestDispatcher view = request.getRequestDispatcher(forward);
  67. view.forward(request, response);
  68. }
  69.  
  70. protected void doPost(HttpServletRequest request,
  71. HttpServletResponse response)
  72. throws IOException {
  73. Person person = new Person();
  74. person.setName(request.getParameter("name"));
  75. person.setPhone(request.getParameter("phone"));
  76. person.setProfession(request.getParameter("profession"));
  77. String personid = request.getParameter("personId");
  78. System.out.println("ola");
  79. System.out.println(personid);
  80. // what i'm trying to mean here is: if the personid coming from the
  81. // request is null
  82. // then, the user is trying to add someone, otherwise, he's trying to
  83. // update someone
  84. if (personid == null || personid.isEmpty()) {
  85. persondao.addPerson(person);
  86. } else {
  87. person.setPersonId(Integer.parseInt(personid));
  88. persondao.updatePerson(person);
  89. }
  90.  
  91. response.sendRedirect(request.getContextPath() + "/index.jsp");
  92. }
  93. }
  94.  
  95. package ru.domain.dao;
  96.  
  97. import java.sql.Connection;
  98. import java.sql.DriverManager;
  99. import java.sql.SQLException;
  100.  
  101. class ConnectionClass {
  102. Connection getConnection() throws SQLException {
  103. try {
  104. DriverManager.registerDriver(new com.mysql.cj.jdbc.Driver());
  105. } catch (Exception e) {
  106. e.printStackTrace();
  107. }
  108.  
  109. String url = "jdbc:mysql://localhost:3306/sakila" +
  110. "?verifyServerCertificate=false" +
  111. "&useSSL=false" +
  112. "&requireSSL=false" +
  113. "&useLegacyDatetimeCode=false" +
  114. "&amp" +
  115. "&serverTimezone=UTC";
  116.  
  117. return DriverManager.getConnection(
  118. url,
  119. "root",
  120. "root");
  121. }
  122. }
  123.  
  124. package ru.domain.dao;
  125.  
  126. import ru.domain.person.Person;
  127.  
  128. import java.sql.Connection;
  129. import java.sql.ResultSet;
  130. import java.sql.SQLException;
  131. import java.sql.Statement;
  132. import java.util.ArrayList;
  133.  
  134. public class PersonDAO {
  135. private Connection connection;
  136.  
  137. public PersonDAO() {
  138. ConnectionClass con = new ConnectionClass();
  139. try {
  140. connection = con.getConnection();
  141. } catch (SQLException e) {
  142. e.printStackTrace();
  143. }
  144.  
  145. ArrayList<Person> persons;
  146. try {
  147. persons = getPersons();
  148. System.out.println();
  149. } catch (SQLException e) {
  150. e.printStackTrace();
  151. }
  152. }
  153.  
  154. public void addPerson(Person person) {
  155. String query = "insert into person(name, phone, profession) "
  156. + " values('" + person.getName() + "', '" + person.getPhone()
  157. + "', '" + person.getProfession() + "')";
  158. executeQuery(query);
  159. }
  160.  
  161. private void executeQuery(String query) {
  162. try {
  163. Statement stmt = connection.createStatement();
  164. stmt.executeUpdate(query);
  165. } catch (SQLException e) {
  166. e.printStackTrace();
  167. }
  168. }
  169.  
  170. public void removePerson(int personid) {
  171. String query = "delete from person where person.idperson = " + personid + " ";
  172. executeQuery(query);
  173. }
  174.  
  175. public void updatePerson(Person person) {
  176. String query = "update person set person.name='"
  177. + person.getName() + "', person.phone='"
  178. + person.getPhone()
  179. + "', person.profession='" + person.getProfession()
  180. + "' where person.idperson = " + person.getPersonId() + " ";
  181. executeQuery(query);
  182. }
  183.  
  184. public ArrayList<Person> getPersons() throws SQLException {
  185. String query = "select * from person";
  186. ArrayList<Person> persons = new ArrayList<>();
  187. Statement stmt = connection.createStatement();
  188. ResultSet res = stmt.executeQuery(query);
  189. while (res.next()) {
  190. Person person = new Person();
  191. person.setName(res.getString("name"));
  192. person.setPhone(res.getString("phone"));
  193. person.setProfession(res.getString("profession"));
  194. person.setPersonId(res.getInt("idperson"));
  195. persons.add(person);
  196. }
  197.  
  198. return persons;
  199. }
  200.  
  201. public Person getPersonById(int personid) throws SQLException {
  202. Person person = new Person();
  203. String query = "select * from person where person.idperson = " + personid + " ";
  204. Statement stmt = connection.createStatement();
  205. ResultSet res = stmt.executeQuery(query);
  206. if (res.next()) {
  207. person.setName(res.getString("name"));
  208. person.setPhone(res.getString("phone"));
  209. person.setProfession(res.getString("profession"));
  210. person.setPersonId(res.getInt("idperson"));
  211. }
  212.  
  213. return person;
  214. }
  215. }
  216.  
  217. package ru.domain.person;
  218.  
  219. public class Person {
  220. public String name;
  221. public String phone;
  222. public String profession;
  223. public int personId;
  224.  
  225. public int getPersonId() { return personId; }
  226.  
  227. public void setPersonId(int personId) {
  228. this.personId = personId;
  229. }
  230.  
  231. public String getName() { return name; }
  232.  
  233. public void setName(String name) { this.name = name; }
  234.  
  235. public String getPhone() { return phone; }
  236.  
  237. public void setPhone(String phone) { this.phone = phone; }
  238.  
  239. public String getProfession() { return profession; }
  240.  
  241. public void setProfession(String profession) { this.profession = profession; }
  242. }
  243.  
  244. <!DOCTYPE web-app PUBLIC
  245. "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  246. "http://java.sun.com/dtd/web-app_2_3.dtd" >
  247.  
  248. <web-app>
  249. <display-name>Archetype Created Web Application</display-name>
  250. </web-app>
  251.  
  252. <%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>--%>
  253. <%@ page language="java" contentType="text/html; charset=UTF-8"
  254. pageEncoding="UTF-8" %>
  255. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  256. <html>
  257. <head>
  258. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  259. </head>
  260. <body>
  261. <jsp:forward page="/PersonController?action=listperson"/>
  262. </body>
  263. </html>
  264.  
  265. <%@ page language="java" contentType="text/html; charset=UTF-8"
  266. pageEncoding="UTF-8" %>
  267. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  268. <!doctype html>
  269.  
  270. <html lang="en">
  271. <head>
  272. <meta charset="utf-8">
  273. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  274. <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
  275. <title>Test page - ListPerson</title>
  276.  
  277. <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
  278. <link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
  279. <link href="bootstrap.css" rel="stylesheet">
  280. </head>
  281. <body>
  282.  
  283. <div class="wrap">
  284. <section>
  285. <div class="container">
  286. <table class="table table-hover">
  287. <thead>
  288. <tr>
  289. <th>#</th>
  290. <th>Name</th>
  291. <th>Phone Number</th>
  292. <th>Profession</th>
  293. </tr>
  294. </thead>
  295. <tbody>
  296. <c:forEach items="${persons}" var="person">
  297. <tr>
  298. <td><c:out value="${person.personId}"/></td>
  299. <td><c:out value="${person.name}"/></td>
  300. <td><c:out value="${person.phone}"/></td>
  301. <td><c:out value="${person.profession}"/></td>
  302. <td>
  303. <a href="PersonController?action=edit&personId=<c:out value="${person.personId}"/>">Update</a>
  304. </td>
  305. <td>
  306. <a href="PersonController?action=delete&personId=<c:out value="${person.personId}"/>">Delete</a>
  307. </td>
  308. </tr>
  309. </c:forEach>
  310. </tbody>
  311. </table>
  312. <a href="PersonController?action=insert" role="button" class="btn btn-info btn-lg" data-toggle="modal">
  313. Add new person</a>
  314. </div>
  315. </section>
  316. </div>
  317.  
  318. <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
  319. <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
  320.  
  321. </body>
  322. </html>
  323.  
  324. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  325. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4_0_0.xsd">
  326. <modelVersion>4.0.0</modelVersion>
  327.  
  328. <groupId>ru.domain</groupId>
  329. <artifactId>small_crud3</artifactId>
  330. <version>1.0-SNAPSHOT</version>
  331. <packaging>war</packaging>
  332.  
  333. <name>small_crud3 Maven Webapp</name>
  334.  
  335. <properties>
  336. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  337. <!--<maven.compiler.source>1.7</maven.compiler.source>-->
  338. <!--<maven.compiler.target>1.7</maven.compiler.target>-->
  339. </properties>
  340.  
  341. <dependencies>
  342. <!-- https://mvnrepository.com/artifact/jstl/jstl -->
  343. <dependency>
  344. <groupId>jstl</groupId>
  345. <artifactId>jstl</artifactId>
  346. <version>1.2</version>
  347. </dependency>
  348.  
  349. <!--https://mvnrepository.com/artifact/mysql/mysql-connector-java/8.0.11-->
  350. <dependency>
  351. <groupId>mysql</groupId>
  352. <artifactId>mysql-connector-java</artifactId>
  353. <version>8.0.11</version>
  354. </dependency>
  355.  
  356. <dependency>
  357. <groupId>javax</groupId>
  358. <artifactId>javaee-api</artifactId>
  359. <version>6.0</version>
  360. <scope>provided</scope>
  361. </dependency>
  362. </dependencies>
  363.  
  364. <build>
  365. <finalName>small_crud3</finalName>
  366. <!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  367. <plugins>
  368. <!--<plugin>-->
  369. <!--<artifactId>maven-clean-plugin</artifactId>-->
  370. <!--<version>3.0.0</version>-->
  371. <!--</plugin>-->
  372. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  373. <!--<plugin>-->
  374. <!--<artifactId>maven-resources-plugin</artifactId>-->
  375. <!--<version>3.0.2</version>-->
  376. <!--</plugin>-->
  377.  
  378. <plugin>
  379. <artifactId>maven-compiler-plugin</artifactId>
  380. <version>3.6.0</version>
  381. <configuration>
  382. <source>1.8</source>
  383. <target>1.8</target>
  384. </configuration>
  385. </plugin>
  386.  
  387. <!--<plugin>-->
  388. <!--<artifactId>maven-surefire-plugin</artifactId>-->
  389. <!--<version>2.20.1</version>-->
  390. <!--</plugin>-->
  391. <plugin>
  392. <artifactId>maven-war-plugin</artifactId>
  393. <version>3.2.0</version>
  394. </plugin>
  395. <!--<plugin>-->
  396. <!--<artifactId>maven-install-plugin</artifactId>-->
  397. <!--<version>2.5.2</version>-->
  398. <!--</plugin>-->
  399. <!--<plugin>-->
  400. <!--<artifactId>maven-deploy-plugin</artifactId>-->
  401. <!--<version>2.8.2</version>-->
  402. <!--</plugin>-->
  403.  
  404. <plugin>
  405. <groupId>org.apache.tomcat.maven</groupId>
  406. <artifactId>tomcat7-maven-plugin</artifactId>
  407. <version>2.2</version>
  408. <executions>
  409. <execution>
  410. <id>start-tomcat</id>
  411. <phase>pre-integration-test</phase>
  412. <goals>
  413. <goal>run</goal>
  414. </goals>
  415. </execution>
  416.  
  417. <execution>
  418. <id>stop-tomcat</id>
  419. <phase>post-integration-test</phase>
  420. <goals>
  421. <goal>shutdown</goal>
  422. </goals>
  423. </execution>
  424. </executions>
  425. <configuration>
  426. <port>8080</port>
  427. <path>/</path>
  428. <fork>true</fork>
  429. </configuration>
  430. </plugin>
  431.  
  432. <plugin>
  433. <groupId>org.codehaus.mojo</groupId>
  434. <artifactId>exec-maven-plugin</artifactId>
  435. <version>1.5.0</version>
  436. <executions>
  437. <execution>
  438. <phase>integration-test</phase>
  439. <goals>
  440. <goal>exec</goal>
  441. </goals>
  442. </execution>
  443. </executions>
  444. <configuration>
  445. <executable>run_in_browser.bat</executable>
  446. </configuration>
  447. </plugin>
  448. </plugins>
  449. </build>
  450. </project>
  451.  
  452. @echo off
  453. start /d "C:Program Files (x86)GoogleChromeApplication" chrome.exe -incognito http://localhost:8080
  454. pause
  455.  
  456. "C:Program FilesJavajdk-10.0.1binjava.exe" -Dmaven.multiModuleProjectDirectory=C:espgcodingIntellijIdeaProjectssmall_crud3 -Dmaven.home=C:UsersespgAppDataLocalJetBrainsToolboxappsIDEA-Uch-0181.4892.42pluginsmavenlibmaven3 -Dclassworlds.conf=C:UsersespgAppDataLocalJetBrainsToolboxappsIDEA-Uch-0181.4892.42pluginsmavenlibmaven3binm2.conf -javaagent:C:UsersespgAppDataLocalJetBrainsToolboxappsIDEA-Uch-0181.4892.42libidea_rt.jar=63920:C:UsersespgAppDataLocalJetBrainsToolboxappsIDEA-Uch-0181.4892.42bin -Dfile.encoding=UTF-8 -classpath C:UsersespgAppDataLocalJetBrainsToolboxappsIDEA-Uch-0181.4892.42pluginsmavenlibmaven3bootplexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.3 verify
  457. [INFO] Scanning for projects...
  458. [INFO]
  459. [INFO] ------------------------------------------------------------------------
  460. [INFO] Building small_crud3 Maven Webapp 1.0-SNAPSHOT
  461. [INFO] ------------------------------------------------------------------------
  462. [INFO]
  463. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ small_crud3 ---
  464. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  465. [INFO] skip non existing resourceDirectory C:espgcodingIntellijIdeaProjectssmall_crud3srcmainresources
  466. [INFO]
  467. [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ small_crud3 ---
  468. [INFO] Changes detected - recompiling the module!
  469. [INFO] Compiling 4 source files to C:espgcodingIntellijIdeaProjectssmall_crud3targetclasses
  470. [INFO]
  471. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ small_crud3 ---
  472. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  473. [INFO] skip non existing resourceDirectory C:espgcodingIntellijIdeaProjectssmall_crud3srctestresources
  474. [INFO]
  475. [INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ small_crud3 ---
  476. [INFO] No sources to compile
  477. [INFO]
  478. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ small_crud3 ---
  479. [INFO] No tests to run.
  480. [INFO]
  481. [INFO] --- maven-war-plugin:3.2.0:war (default-war) @ small_crud3 ---
  482. [INFO] Packaging webapp
  483. [INFO] Assembling webapp [small_crud3] in [C:espgcodingIntellijIdeaProjectssmall_crud3targetsmall_crud3]
  484. [INFO] Processing war project
  485. [INFO] Copying webapp resources [C:espgcodingIntellijIdeaProjectssmall_crud3srcmainwebapp]
  486. [INFO] Webapp assembled in [437 msecs]
  487. [INFO] Building war: C:espgcodingIntellijIdeaProjectssmall_crud3targetsmall_crud3.war
  488. [INFO]
  489. [INFO] >>> tomcat7-maven-plugin:2.2:run (start-tomcat) > process-classes @ small_crud3 >>>
  490. [INFO]
  491. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ small_crud3 ---
  492. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  493. [INFO] skip non existing resourceDirectory C:espgcodingIntellijIdeaProjectssmall_crud3srcmainresources
  494. [INFO]
  495. [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ small_crud3 ---
  496. [INFO] Nothing to compile - all classes are up to date
  497. [INFO]
  498. [INFO] <<< tomcat7-maven-plugin:2.2:run (start-tomcat) < process-classes @ small_crud3 <<<
  499. [INFO]
  500. [INFO] --- tomcat7-maven-plugin:2.2:run (start-tomcat) @ small_crud3 ---
  501. [INFO] Running war on http://localhost:8080/
  502. [INFO] Creating Tomcat server configuration at C:espgcodingIntellijIdeaProjectssmall_crud3targettomcat
  503. [INFO] create webapp with contextPath:
  504. мая 13, 2018 12:45:34 ПП org.apache.coyote.AbstractProtocol init
  505. INFO: Initializing ProtocolHandler ["http-bio-8080"]
  506. мая 13, 2018 12:45:34 ПП org.apache.catalina.core.StandardService startInternal
  507. INFO: Starting service Tomcat
  508. мая 13, 2018 12:45:34 ПП org.apache.catalina.core.StandardEngine startInternal
  509. INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
  510. мая 13, 2018 12:45:41 ПП org.apache.catalina.util.SessionIdGenerator createSecureRandom
  511. INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [410] milliseconds.
  512. [INFO]
  513. [INFO] --- exec-maven-plugin:1.5.0:exec (default) @ small_crud3 ---
  514. мая 13, 2018 12:45:41 ПП org.apache.coyote.AbstractProtocol start
  515. INFO: Starting ProtocolHandler ["http-bio-8080"]
  516. ��� �த������� ������ ���� ������� . . .
  517. мая 13, 2018 12:45:54 ПП org.apache.jasper.compiler.TldLocationsCache tldScanJar
  518. INFO: 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.
  519.  
  520.  
  521.  
  522. мая 13, 2018 12:46:03 ПП org.apache.coyote.AbstractProtocol pause
  523. INFO: Pausing ProtocolHandler ["http-bio-8080"]
  524. [INFO]
  525. [INFO] --- tomcat7-maven-plugin:2.2:shutdown (stop-tomcat) @ small_crud3 ---
  526. мая 13, 2018 12:46:03 ПП org.apache.catalina.core.StandardService stopInternal
  527. INFO: Stopping service Tomcat
  528. мая 13, 2018 12:46:03 ПП org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
  529. SEVERE: The web application [] 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.
  530. мая 13, 2018 12:46:04 ПП org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
  531. SEVERE: The web application [] 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.
  532. мая 13, 2018 12:46:04 ПП org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
  533. SEVERE: The web application [] 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.
  534. WARNING: An illegal reflective access operation has occurred
  535. WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoader (file:/C:/Users/espg/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/7.0.47/tomcat-embed-core-7.0.47.jar) to field java.lang.Thread.threadLocals
  536. WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoader
  537. WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  538. WARNING: All illegal access operations will be denied in a future release
  539. мая 13, 2018 12:46:04 ПП org.apache.coyote.AbstractProtocol stop
  540. INFO: Stopping ProtocolHandler ["http-bio-8080"]
  541. мая 13, 2018 12:46:08 ПП org.apache.catalina.loader.WebappClassLoader findResourceInternal
  542. INFO: Illegal access: this web application instance has been stopped already. Could not load . The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
  543. мая 13, 2018 12:46:09 ПП org.apache.tomcat.util.net.AbstractEndpoint shutdownExecutor
  544. [INFO] ------------------------------------------------------------------------
  545. [INFO] BUILD SUCCESS
  546. [INFO] ------------------------------------------------------------------------
  547. [INFO] Total time: 59.169 s
  548. [INFO] Finished at: 2018-05-13T12:46:09+03:00
  549. WARNING: The executor associated with thread pool [http-bio-8080] has not fully shutdown. Some application threads may still be running.
  550. [INFO] Final Memory: 30M/94M
  551. [INFO] ------------------------------------------------------------------------
  552. мая 13, 2018 12:46:09 ПП org.apache.catalina.loader.WebappClassLoader findResourceInternal
  553. INFO: Illegal access: this web application instance has been stopped already. Could not load . The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
  554.  
  555. Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement