-------------------------------------------- On Tue, 1/23/18, Christopher Schultz <ch...@christopherschultz.net> wrote:
Subject: Re: Fw: No movement at Debug mode To: users@tomcat.apache.org Date: Tuesday, January 23, 2018, 11:58 PM -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Karen, On 1/21/18 10:49 AM, Karen Goh wrote: > I want to add in additional infor : > > After I stopped the server, the console has the following error > message which beats me. > > WARNING: The web application [Hi5S] 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: java.io.WinNTFileSystem.canonicalize0(Native > Method) > java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428) > java.io.File.getCanonicalPath(File.java:618) > org.apache.catalina.webresources.AbstractFileResourceSet.file(Abstract FileResourceSet.java:90) > > org.apache.catalina.webresources.DirResourceSet.getResource(DirResourceS et.java:101) > org.apache.catalina.webresources.StandardRoot.getResourceInternal(Stan dardRoot.java:281) > > org.apache.catalina.webresources.CachedResource.validateResource(CachedR esource.java:97) > org.apache.catalina.webresources.Cache.getResource(Cache.java:69) > org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot .java:216) > > org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(Sta ndardRoot.java:225) > org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappCl assLoaderBase.java:884) > > org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClass LoaderBase.java:1005) > com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoade rs(AbandonedConnectionCleanupThread.java:90) > > com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionC leanupThread.java:63) > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j ava:1149) > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja va:624) > java.lang.Thread.run(Thread.java:748) > > I hope with the new infor, this group will be able to help me > resolve the error. The MySQL Connector/J simply has a bug. Upgrade to the latest version to see if they have fixed it. I gave up trying to convince them that it was a problem and that they needed to fix it, because I guess they fundamentally don't understand what it means to want to be able to "completely deregister the driver and shutdown all threads". - -chris Hi Chris, I added the MYSQL J connector 5.1.45.bin.jar to the build path but the thing is that it seems not able to work with Tomcat 9.0.4. There is a copy of 5.1.45.bin.jar that pasted in my Tomcat server location. The Mysql connection in my workbench MYSQL 6.3 is tested ok. I did a test connection in Eclipse and it gives me the following error : java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(JDBCConnection.java:327) at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.internalCreateConnection(JDBCConnection.java:229) at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:120) at org.eclipse.datatools.enablement.internal.mysql.connection.JDBCMySQLConnectionFactory.createConnection(JDBCMySQLConnectionFactory.java:28) at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359) at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76) at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Here's what in my pom.xml which I hope will help to give further insight into my problem : <modelVersion>4.0.0</modelVersion> <groupId>Hi5S</groupId> <artifactId>Hi5S</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-jdbc</artifactId> <version>9.0.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.10.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.10.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>2.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> <version>1.7.21</version> <scope>compile</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.45</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>5.2.10.Final</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>2.0.0.Final</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>8.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>19.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>3.19.0-GA</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-osgi-locator</artifactId> <version>1.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.jboss.logging</groupId> <artifactId>jboss-logging</artifactId> <version>3.3.1.Final</version> <scope>runtime</scope> </dependency> <dependency> <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>0.8.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-commons-annotations</artifactId> <version>3.2.0.Final</version> <scope>compile</scope> </dependency> </dependencies> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> </pluginRepository> </pluginRepositories> <build> <sourceDirectory>C:\Users\Karen\workspace5\Hi5S\src\main\java</sourceDirectory> <scriptSourceDirectory>C:\Users\Karen\workspace5\Hi5S\src\main\scripts</scriptSourceDirectory> <testSourceDirectory>C:\Users\Karen\workspace5\Hi5S\src\test\java</testSourceDirectory> <outputDirectory>C:\Users\Karen\workspace5\Hi5S\target\classes</outputDirectory> <testOutputDirectory>C:\Users\Karen\workspace5\Hi5S\target\test-classes</testOutputDirectory> <resources> <resource> <directory>C:\Users\Karen\workspace5\Hi5S\src\main\resources</directory> </resource> </resources> <testResources> <testResource> <directory>C:\Users\Karen\workspace5\Hi5S\src\test\resources</directory> </testResource> </testResources> <directory>C:\Users\Karen.Goh\workspace5\Hi5S\target</directory> <finalName>Hi5S-0.0.1-SNAPSHOT</finalName> <pluginManagement> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5</version> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <version>2.3.2</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <executions> <execution> <id>default-clean</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <executions> <execution> <id>default-testResources</id> <phase>process-test-resources</phase> <goals> <goal>testResources</goal> </goals> </execution> <execution> <id>default-resources</id> <phase>process-resources</phase> <goals> <goal>resources</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <executions> <execution> <id>default-war</id> <phase>package</phase> <goals> <goal>war</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <executions> <execution> <id>default-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> <execution> <id>default-testCompile</id> <phase>test-compile</phase> <goals> <goal>testCompile</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.12.4</version> <executions> <execution> <id>default-test</id> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>default-install</id> <phase>install</phase> <goals> <goal>install</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.7</version> <executions> <execution> <id>default-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.3</version> <executions> <execution> <id>default-site</id> <phase>site</phase> <goals> <goal>site</goal> </goals> <configuration> <outputDirectory>C:\Users\Karen\workspace5\Hi5S\target\site</outputDirectory> <reportPlugins> <reportPlugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </reportPlugin> </reportPlugins> </configuration> </execution> <execution> <id>default-deploy</id> <phase>site-deploy</phase> <goals> <goal>deploy</goal> </goals> <configuration> <outputDirectory>C:\Users\Karen\workspace5\Hi5S\target\site</outputDirectory> <reportPlugins> <reportPlugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </reportPlugin> </reportPlugins> </configuration> </execution> </executions> <configuration> <outputDirectory>C:\Users\Karen\workspace5\Hi5S\target\site</outputDirectory> <reportPlugins> <reportPlugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </reportPlugin> </reportPlugins> </configuration> </plugin> </plugins> </build> <reporting> <outputDirectory>C:\Users\Karen\workspace5\Hi5S\target\site</outputDirectory> </reporting> </project> -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlpnW44dHGNocmlzQGNo cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFh/hhAAnU0DsarH7K7NzsnG AQxptKGl9bBtw/es2D8OdvO73XzOUD4MDO1HB3rRKNaMA6Ld/Ea1SNJb+6V2DqRH aG4ppx82OWfasoK7ywlQB/k7eOERbwjIQHLOx5+N0JHwotqN83dVDeCSdd0TWHzu 7o/NWRQLRgAmoNYPe8civV3Kur5Ci+v7QlA3PeHtzOlfjYwwvNU8ZTX4XAiUA9zG HxL2jlz6cDfVd/rFw8O3q7r4fS4Im70OS4M6midSStGR+VyVDRExY8yqrh/q4sC8 e1rTFs12amf7yqnN8KbVHgpDF4RBIg8zGbqOdtXng4oXcpjsYCtfaWvVr4xFLdhn tS6vzAFIoHhRwOzsjadcluPrwxG7PLxcIbXbKPpgel21WWeg8imXE3QGa5eGoy91 BLuoLsLBLDO002uw+OPKIZzTZ5yM0EyXuqlr46C7Oc46iNg7Ub39DYC5eXHYmLc+ fh+oazznZJoTaSlZmGPJxosuBYfs70iQx+WIlzI9ggzg8Q1QdhUcFrwJImwe5S3V YuydGr5VUFhIJQ4rVxyvX1r160K695oT7Y6RIEdPcRInodSmqaGVcm0jWZVKuPMw 1NvgUmUBnD0xElvOIRxWs7p5hjSVvMlxhmWFdamDwr4TPYvBIGRIl0Z7fikV/i2q vlgjFKJpMXfCppBXuyxPOsS/MA4= =0gps -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org