I am using tomcat7 as application server to run my java web application (.war) when I restart tomcat it take 20-25 mins to deploy may war file.
i get this log when i restart tomcat :
Sep 24, 2016 9:45:29 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 24, 2016 9:45:29 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.68 (Ubuntu)
Sep 24, 2016 9:45:29 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/tnu.war
Sep 24, 2016 9:45:30 AM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/tnu/WEB-INF/lib/javax.servlet-api-3.0.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
Sep 24, 2016 9:45:33 AM org.apache.catalina.startup.TldConfig execute
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.
Sep 24, 2016 9:46:51 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
Sep 24, 2016 9:46:51 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
Sep 24, 2016 9:46:51 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
Sep 24, 2016 9:46:51 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
Sep 24, 2016 9:46:51 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
Sep 24, 2016 9:46:51 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.68 (Ubuntu)
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 27 2016 18:13:17 UTC
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.68.0
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 4.4.0-36-generic
INFO: Server version: Apache Tomcat/7.0.68 (Ubuntu)
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 27 2016 18:13:17 UTC
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.68.0
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 4.4.0-36-generic
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /var/lib/tomcat7
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /usr/share/tomcat7
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.awt.headless=true
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx128m
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:+UseConcMarkSweepGC
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/var/lib/tomcat7
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/usr/share/tomcat7
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp
INFO: Command line argument: -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp
Sep 24, 2016 9:46:52 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 744 ms
Sep 24, 2016 9:46:52 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 24, 2016 9:46:52 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.68 (Ubuntu)
Sep 24, 2016 9:46:52 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/tnu.war
Sep 24, 2016 9:46:53 AM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/tnu/WEB-INF/lib/javax.servlet-api-3.0.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
Sep 24, 2016 9:46:56 AM org.apache.catalina.startup.TldConfig execute
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.
Sep 24, 2016 10:03:01 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [965,010] milliseconds.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
24 Sep 2016 10:03:01,669 - [localhost-startStop-1] DEBUG [org.jboss.logging] [] - Logging Provider: org.jboss.logging.Log4jLoggerProvider
24 Sep 2016 10:03:01,694 - [localhost-startStop-1] DEBUG [logging.loggers.YWLogger] [] - Sat Sep 24 10:03:01 UTC 2016 - [ ConstantReader ] File Found
File Found
24 Sep 2016 10:03:01,697 - [localhost-startStop-1] DEBUG [reqfilter.interceptor.MobReqFilter] [] - MobRequestFilter : init + webapp path : /var/lib/tomcat7/webapps/tnu/
24 Sep 2016 10:03:01,698 - [localhost-startStop-1] DEBUG [reqfilter.interceptor.MobReqFilter] [] - init params : WEB-INF/classes/log4j.properties
Sep 24, 2016 10:03:05 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/tomcat7/webapps/tnu.war has finished in 973,344 ms
Sep 24, 2016 10:03:05 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Sep 24, 2016 10:03:05 AM org.apache.catalina.core.StandardContext setPath
WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
Sep 24, 2016 10:03:06 AM org.apache.catalina.startup.TldConfig execute
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.
Sep 24, 2016 10:03:06 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat7/webapps/ROOT has finished in 331 ms
Sep 24, 2016 10:03:06 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Sep 24, 2016 10:03:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 973768 ms
I have to wait for 20-25 mins after i restart tomcat7.Any solution for this?
Note : OS - ubuntu 14.04 on digitalocean cloud.
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [965,010] milliseconds.
This is the process that takes a lot of server time.
Creation of SecureRandom itself takes 16.0835 Minutes.
Fortunately, Apache wiki has a workaround for this:
Tomcat 7+ heavily relies on SecureRandom class to provide random values for its session ids and in other places. Depending on your JRE it can cause delays during startup if entropy source that is used to initialize SecureRandom is short of entropy. You will see warning in the logs when this happens, e.g.:
<DATE> org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [5172] milliseconds.
There is a way to configure JRE to use a non-blocking entropy source by setting the following system property: -Djava.security.egd=file:/dev/./urandom
In case of headless servers, Haveged is a possible solution for tomcat being too slow to start due to low entropy. One important advantage of using Haveged over urandom is, you don't have to compromise on security to speed up the tomcat start up. I had a similar post.
Tomcat takes too much time to start - Java SecureRandom.
Read this Tomcat takes too long to start
Related
Problem summary
I've created a basic Spring MVC application in Eclipse, and manually added the Spring JARs to the lib. I'm using XML configs. It returns a 404 error when I run it. The WARN output in my console tells me WARNING: No mapping for GET /Spring-MVC-Demo/
What I've tried
My web.xml file has the <absolute-ordering /> tag as suggested in other answers to similar questions.
I've also updated the <context:component-scan base-package="com.demo.springdemo.mvc" /> to reflect my own src package name, as suggested in another answer to a similar question.
I understand that the console WARN is pretty explicit in telling me what's wrong, but I just don't know how else to fix it.
Here is the source code
https://drive.google.com/drive/folders/1GTuRmBdIugvQT-8OxW4g-EcdHdRAsj49?usp=sharing
Console Output:
Feb 14, 2021 8:43:49 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name: Apache Tomcat/9.0.43
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jan 28 2021 20:25:45 UTC
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.43.0
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_271
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_271-b09
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\odubh\Workspace_Eclipse\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 9.0
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\odubh\Workspace_Eclipse\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\odubh\Workspace_Eclipse\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 9.0\endorsed
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Feb 14, 2021 8:43:50 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Loaded Apache Tomcat Native library [1.2.26] using APR version [1.7.0].
Feb 14, 2021 8:43:50 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Feb 14, 2021 8:43:50 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
Feb 14, 2021 8:43:50 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized [OpenSSL 1.1.1i 8 Dec 2020]
Feb 14, 2021 8:43:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Feb 14, 2021 8:43:50 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [948] milliseconds
Feb 14, 2021 8:43:50 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Feb 14, 2021 8:43:50 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.43]
Feb 14, 2021 8:43:51 PM org.apache.jasper.servlet.TldScanner scanJars
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.
Feb 14, 2021 8:43:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring DispatcherServlet 'dispatcher'
Feb 14, 2021 8:43:51 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: Initializing Servlet 'dispatcher'
Feb 14, 2021 8:43:52 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: Completed initialization in 1335 ms
Feb 14, 2021 8:43:52 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Feb 14, 2021 8:43:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [2323] milliseconds
Feb 14, 2021 8:43:53 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for GET /Spring-MVC-Demo/
Versions
Tomcat: 9.0
Eclipse: 2020-12 (4.18.0)
JDK: 1.8.0_271
I had a typo in naming my "main-menu.jsp". I accidently called it "main-manu.jsp". This question may be of no use to anyone other than to say check your spellings on filenames.
Dec 11, 2019 1:21:24 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Add3' did not find a matching property.
Dec 11, 2019 1:21:24 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Add33' did not find a matching property.
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.32
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Feb 2 2016 19:34:53 UTC
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.32.0
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 7
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.1
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_221
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_221-b11
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\wtpwebapps
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\endorsed
Dec 11, 2019 1:21:24 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Dec 11, 2019 1:21:24 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_221\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3\bin;;.
Dec 11, 2019 1:21:24 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8082"]
Dec 11, 2019 1:21:27 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Dec 11, 2019 1:21:27 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Dec 11, 2019 1:21:27 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Dec 11, 2019 1:21:27 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4612 ms
Dec 11, 2019 1:21:27 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 11, 2019 1:21:27 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.32
Dec 11, 2019 1:21:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\docs
Dec 11, 2019 1:21:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\docs has finished in 71 ms
Dec 11, 2019 1:21:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\examples
Dec 11, 2019 1:21:29 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 11, 2019 1:21:29 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Dec 11, 2019 1:21:29 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\examples has finished in 1,244 ms
Dec 11, 2019 1:21:29 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\host-manager
Dec 11, 2019 1:21:29 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\host-manager has finished in 68 ms
Dec 11, 2019 1:21:29 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\manager
Dec 11, 2019 1:21:29 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\manager has finished in 65 ms
Dec 11, 2019 1:21:29 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\ROOT
Dec 11, 2019 1:21:30 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\HP\Downloads\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32\webapps\ROOT has finished in 113 ms
Dec 11, 2019 1:21:30 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8082"]
Dec 11, 2019 1:21:30 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Dec 11, 2019 1:21:30 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2296 ms
my localhost:8080 cannot connect on chrome..it runs successfully but i wont show me the page for successful connection.
my system is windows 64 bit.
The only thing you have to do is change the port to 8082, if it still shows you nothing, the problem would be that it is not a localhost.
Dec 11, 2019 1:21:30 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8082"]
Also if you upload the code it would be easier to help you.
I hope I helped you with the information provided
I got source code from my client.
Spring with tomcat. I use Eclipse STS IDE for spring.
and got error in weblogic :
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<wls:weblogic-version>12.1.3</wls:weblogic-version>
<wls:context-root>api.elastic</wls:context-root>
<wls:container-descriptor>
<wls:prefer-application-packages>
<wls:package-name>com.fasterxml.jackson</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
</wls:weblogic-web-app>
invalid content was found with element : wls:prefer-application-packages
and when I tried to force run it with tomcat server :
Jul 23, 2018 3:53:11 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:api.elastic' did not find a matching property.
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.53
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 29 2018 14:42:45 UTC
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.53.0
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.13.6
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_144-b01
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/emerio-ridho/Documents/workspace-sts/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /Users/emerio-ridho/Downloads/apache-tomcat-8.0.53
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/Users/emerio-ridho/Documents/workspace-sts/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/Users/emerio-ridho/Downloads/apache-tomcat-8.0.53
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=/Users/emerio-ridho/Documents/workspace-sts/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/Users/emerio-ridho/Downloads/apache-tomcat-8.0.53/endorsed
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jul 23, 2018 3:53:11 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/emerio-ridho/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Jul 23, 2018 3:53:11 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Jul 23, 2018 3:53:11 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jul 23, 2018 3:53:11 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Jul 23, 2018 3:53:11 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jul 23, 2018 3:53:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 563 ms
Jul 23, 2018 3:53:11 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 23, 2018 3:53:11 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.53
Jul 23, 2018 3:53:14 PM org.apache.jasper.servlet.TldScanner scanJars
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.
Jul 23, 2018 3:53:18 PM org.apache.jasper.servlet.TldScanner scanJars
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.
Jul 23, 2018 3:53:18 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Jul 23, 2018 3:53:18 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Jul 23, 2018 3:53:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6577 ms
I've tried google any clue, but I dont solve it untill now.
Can the following namespace be used as suggested here?
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd
http://xmlns.oracle.com/weblogic/weblogic-web-app
http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
<wls:weblogic-version>12.1.3</wls:weblogic-version>
<wls:context-root>api.elastic</wls:context-root>
<wls:container-descriptor>
<wls:prefer-application-packages>
<wls:package-name>com.fasterxml.jackson</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
</wls:weblogic-web-app>
I am doing spring web MVC tutorial from the following link
https://www.tutorialspoint.com/spring/spring_mvc_hello_world_example.htm
The project works fine when I added only specified specified JAR files to WEB-INF/lib
commons-logging-1.2.jar
spring-aop-4.3.7.RELEASE.jar
spring-aspects-4.3.7.RELEASE.jar
spring-beans-4.3.7.RELEASE.jar
spring-context-4.3.7.RELEASE.jar
spring-core-4.3.7.RELEASE.jar
spring-expression-4.3.7.RELEASE.jar
spring-web-4.3.7.RELEASE.jar
spring-webmvc-4.3.7.RELEASE.jar
But when I add ALL spring 4.3.7 java jars, the URL mappings are not working.
Can someone here please explain why this happens? How would I debug such problems? Does Spring have debugging flags that I can turn on?
PS: I don't want to use maven because it kind of hides such complexities.
Tomcat console log is here
cat ~/failurepath
Apr 27, 2017 7:40:59 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWebTake2' did not find a matching property.
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.5.14
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Apr 13 2017 12:55:45 UTC
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.5.14.0
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.12.4
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_121-b13
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/raghuramg/wstutorialspoint/.metadata/.plugins/org.eclipse.wst.server.core/tmp5
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /Users/raghuramg/mysoftwares/apache-tomcat-8.5.14
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/Users/raghuramg/wstutorialspoint/.metadata/.plugins/org.eclipse.wst.server.core/tmp5
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/Users/raghuramg/mysoftwares/apache-tomcat-8.5.14
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=/Users/raghuramg/wstutorialspoint/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/Users/raghuramg/mysoftwares/apache-tomcat-8.5.14/endorsed
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Apr 27, 2017 7:40:59 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/raghuramg/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Apr 27, 2017 7:40:59 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Apr 27, 2017 7:40:59 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Apr 27, 2017 7:40:59 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Apr 27, 2017 7:40:59 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Apr 27, 2017 7:40:59 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 439 ms
Apr 27, 2017 7:40:59 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 27, 2017 7:40:59 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.14
Apr 27, 2017 7:41:00 AM org.apache.jasper.servlet.TldScanner scanJars
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.
Apr 27, 2017 7:41:00 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 27, 2017 7:41:00 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'HelloWeb'
Apr 27, 2017 7:41:00 AM org.springframework.web.servlet.DispatcherServlet initServletBean
INFO: FrameworkServlet 'HelloWeb': initialization started
Apr 27, 2017 7:41:01 AM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'HelloWeb-servlet': startup date [Thu Apr 27 07:41:01 PDT 2017]; root of context hierarchy
Apr 27, 2017 7:41:01 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/HelloWeb-servlet.xml]
Apr 27, 2017 7:41:01 AM org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
INFO: Mapped URL path [/hello] onto handler 'helloController'
Apr 27, 2017 7:41:01 AM org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
INFO: Mapped URL path [/hello.*] onto handler 'helloController'
Apr 27, 2017 7:41:01 AM org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping registerHandler
INFO: Mapped URL path [/hello/] onto handler 'helloController'
Apr 27, 2017 7:41:01 AM org.springframework.web.servlet.DispatcherServlet initServletBean
INFO: FrameworkServlet 'HelloWeb': initialization completed in 567 ms
Apr 27, 2017 7:41:01 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Apr 27, 2017 7:41:01 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Apr 27, 2017 7:41:01 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1710 ms
Apr 27, 2017 7:41:02 AM org.springframework.web.servlet.PageNotFound noHandlerFound
WARNING: No mapping found for HTTP request with URI [/HelloWebTake2/] in DispatcherServlet with name 'HelloWeb'
enter code here
The following isn't working but I think it might be a configuration issue. I'm using eclipse ee and tomcat 8. Here's the code followed by the console messages. Not sure what to do - just a beginner at this so any help much appreciated.
package finproj;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class Email{
public static void main(String[] args){
Properties props = new Properties();
props.setProperty("mail.host","smtp.gmail.com");
props.setProperty("mail.smtp.port","587");
props.setProperty("mail.smtp.auth","true");
Authenticator auth = new Authenticator(){
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("abcxyz#gmail.com","grskxstrdsgbmzzf");
}
};
Session session = Session.getDefaultInstance(props,auth);
Message msg = new MimeMessage(session);
try {
msg.setSubject("test message");
msg.setText("we made it!");
msg.setFrom(new InternetAddress("abcxyz#gmail.com"));
msg.setRecipient(Message.RecipientType.TO,new InternetAddress("abcxyz#gmail.com"));
Transport.send(msg);
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("finished");
}
}
and here's the console output:
Nov 28, 2015 9:52:47 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Final Project' did not find a matching property.
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.28
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Oct 7 2015 18:25:21 UTC
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.28.0
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_66
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_66-b17
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\OldSalt\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 8.0
INFO: Command line argument: -Dcatalina.base=C:\Users\OldSalt\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.0
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\OldSalt\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Nov 28, 2015 9:52:47 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_66\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_66/bin/server;C:/Program Files/Java/jre1.8.0_66/bin;C:/Program Files/Java/jre1.8.0_66/lib/amd64;C:\Program Files (x86)\PHP\v5.5;C:\Python34\;C:\Python34\Scripts;C:\PROGRAMDATA\ORACLE\JAVA\JAVAPATH;C:\PROGRAM FILES (X86)\NVIDIA CORPORATION\PHYSX\COMMON;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;C:\PROGRAM FILES (X86)\QUICKTIME\QTSYSTEM\;;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\File Viewer Lite\lib\magick;C:\Users\OldSalt\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;c:\users\oldsalt\appdata\local\enthought\canopy32\user\scripts;c:\users\oldsalt\appdata\local\enthought\canopy\user\scripts;C:\Users\OldSalt\AppData\Local\Enthought\Canopy\User;C:\Users\OldSalt\AppData\Local\Enthought\Canopy\User\Scripts;C:\Users;C:\Ruby21\bin;c:\users\oldsalt\appdata\local\enthought\canopy32\user\scripts;c:\users\oldsalt\appdata\local\enthought\canopy\user\scripts;C:\Users\OldSalt\AppData\Local\Enthought\Canopy\User;C:\Users\OldSalt\AppData\Local\Enthought\Canopy\User\Scripts;C:\Users\OldSalt\AppData\Local\Enthought\Canopy32\User;C:\Users\OldSalt\AppData\Local\Enthought\Canopy32\User\Scripts;C:\Program Files (x86)\HMA! Pro VPN\bin;C:\Program Files\Java\jdk1.8.0_66/bin;%JRE_HOME%/bin;C:\Users\OldSalt\Desktop\eclipse EE\eclipse\plugins\org.apache.ant_1.9.4.v201504302020/bin;C:\Users\OldSalt\AppData\Local\Programs\Git\cmd;C:\Program Files\Eclipse EE;;.
Nov 28, 2015 9:52:47 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Nov 28, 2015 9:52:47 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 28, 2015 9:52:47 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Nov 28, 2015 9:52:47 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 28, 2015 9:52:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 744 ms
Nov 28, 2015 9:52:47 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 28, 2015 9:52:47 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.28
Nov 28, 2015 9:52:48 PM org.apache.jasper.servlet.TldScanner scanJars
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.
Nov 28, 2015 9:52:49 PM org.apache.jasper.servlet.TldScanner scanJars
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.
Nov 28, 2015 9:52:49 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Nov 28, 2015 9:52:49 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Nov 28, 2015 9:52:49 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1171 ms
Try to set properties like this? It works for me.
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");