So I created a new maven project in IntelliJ. To run it I am using Smart Tomcat. Here you can see its settings.
When I run the project I get his log output.
Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:04 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification/lib], exists: [false], isDirectory: [false], canRead: [false]
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name: Apache Tomcat/9.0.16
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Feb 4 2019 16:30:29 UTC
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.16.0
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.14.4
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_131-b11
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /Users/theodosiostziomakas/.SmartTomcat/emailservice/web-service-verification
Apr 06, 2019 8:37:05 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Apr 06, 2019 8:37:05 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/theodosiostziomakas/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Apr 06, 2019 8:37:06 AM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [1,415] milliseconds
Apr 06, 2019 8:37:06 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Apr 06, 2019 8:37:06 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.16]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Apr 06, 2019 8:37:06 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Apr 06, 2019 8:37:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in [717] milliseconds
http://localhost:8080/web-service-verification
Finally I type http://localhost:8080/web-service-ve,rification in Chrome browser. However, I am getting that annoying 404 error. Should I make any additional settings in the project? I repeat it is a Maven and not a Spring boot project.
You can clone and run the project if you want to see what I am talking about.
https://github.com/theo82/email-service
Related
I trying to setup the spring-mvc project on intellij community edition 2019-3 on mac. I am using smart tomcat for it.
I am trying the example given by journalDev https://www.journaldev.com/14476/spring-mvc-example
It's getting build successfully.
Stacktrace
"/Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home/bin/java" -Dfile.encoding=UTF-8 -classpath /Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/bin/tomcat-juli.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/bin/commons-daemon.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/bin/bootstrap.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-ko.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/el-api.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-es.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-websocket.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/jasper.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/jasper-el.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-util.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-de.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/catalina-storeconfig.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/jsp-api.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/catalina-tribes.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-cs.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/catalina.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-jni.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-pt-BR.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/ecj-4.13.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/websocket-api.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-coyote.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/catalina-ha.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-api.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/annotations-api.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/jaspic-api.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-zh-CN.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/catalina-ant.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/servlet-api.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-util-scan.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-ja.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-ru.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-jdbc.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-i18n-fr.jar:/Users/slandge/Documents/Tomcat/apache-tomcat-9.0.29/lib/tomcat-dbcp.jar org.apache.catalina.startup.Bootstrap start
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/slandge/.SmartTomcat/spring-mvc-example/spring-mvc-example/lib], exists: [false], isDirectory: [false], canRead: [false]
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/slandge/.SmartTomcat/spring-mvc-example/spring-mvc-example/lib], exists: [false], isDirectory: [false], canRead: [false]
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/slandge/.SmartTomcat/spring-mvc-example/spring-mvc-example/lib], exists: [false], isDirectory: [false], canRead: [false]
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/slandge/.SmartTomcat/spring-mvc-example/spring-mvc-example/lib], exists: [false], isDirectory: [false], canRead: [false]
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name: Apache Tomcat/9.0.29
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Nov 16 2019 17:29:07 UTC
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.29.0
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.14.5
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 11.0.4+10-b520.11
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: JetBrains s.r.o
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/slandge/.SmartTomcat/spring-mvc-example/spring-mvc-example
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /Users/slandge/.SmartTomcat/spring-mvc-example/spring-mvc-example
Dec 12, 2019 7:18:17 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Dec 12, 2019 7:18:17 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/slandge/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
Dec 12, 2019 7:18:18 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Dec 12, 2019 7:18:18 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Dec 12, 2019 7:18:18 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [503] milliseconds
Dec 12, 2019 7:18:18 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Dec 12, 2019 7:18:18 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.29]
Dec 12, 2019 7:18:18 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Dec 12, 2019 7:18:18 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Dec 12, 2019 7:18:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [338] milliseconds
http://localhost:8080/spring-mvc-example
When I am trying to access the above url. I am getting below error.
HTTP Status 404 – Not Found
Type Status Report
Message /spring-mvc-example/
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.29
Following are the run configuration
I've seen similar posts, but none that seem to be similar enough to help. I'm running Tomcat 7.0.68 and Java 1.8.0_231 on CentOS 6.10 and so far have been unable to install thredds successfully. I followed the instructions at https://www.unidata.ucar.edu/software/tds/current/tutorial/GettingStarted.html#deploying, dropping the thredds.war file into the /opt/tomcat7/webapps directory, and while the thredds directory structure was unpacked, I could not hit localhost:8080/thredds, nor did the /opt/tomcat7/content directory get created.
Here's the pertinent snippet from catalina.out:
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.68
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Feb 8 2016 20:25:54 UTC
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.68.0
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 2.6.32-754.23.1.el6.x86_64
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/java/jre1.8.0_231-amd64
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_231-b11
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /opt/tomcat7
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /opt/tomcat7
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/opt/tomcat7/conf/logging.properties
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx36864m
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xms16384m
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/opt/tomcat7/endorsed
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/opt/tomcat7
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/opt/tomcat7
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/opt/tomcat7/temp
Nov 14, 2019 4:11:43 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: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Nov 14, 2019 4:11:43 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Nov 14, 2019 4:11:43 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 780 ms
Nov 14, 2019 4:11:43 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 14, 2019 4:11:43 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.68
Nov 14, 2019 4:11:43 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /opt/apache-tomcat-7.0.68/webapps/thredds.war
Nov 14, 2019 4:11:43 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFO: validateJarFile(/opt/tomcat7/webapps/thredds/WEB-INF/lib/javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
Nov 14, 2019 4:11:47 PM 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.
Nov 14, 2019 4:11:49 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Nov 14, 2019 4:12:16 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/thredds] startup failed due to previous errors
Nov 14, 2019 4:12:16 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/thredds] appears to have started a thread named [Log4j2-TF-6-Scheduled-2] but has failed to stop it. This is very likely to create a memory leak.
Nov 14, 2019 4:12:16 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /opt/apache-tomcat-7.0.68/webapps/thredds.war has finished in 33,195 ms
Nov 14, 2019 4:12:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.68/webapps/ROOT
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/apache-tomcat-7.0.68/webapps/ROOT has finished in 31 ms
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.68/webapps/manager
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/apache-tomcat-7.0.68/webapps/manager has finished in 27 ms
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.68/webapps/host-manager
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/apache-tomcat-7.0.68/webapps/host-manager has finished in 22 ms
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.68/webapps/docs
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/apache-tomcat-7.0.68/webapps/docs has finished in 18 ms
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/apache-tomcat-7.0.68/webapps/examples
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/apache-tomcat-7.0.68/webapps/examples has finished in 90 ms
Nov 14, 2019 4:12:17 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Nov 14, 2019 4:12:17 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Nov 14, 2019 4:12:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 33435 ms
I should note that I haven't been able to find the referenced "container log file", so I've run into somewhat of a roadblock. Thanks in advance for any help.
THREDDS Data Server: Deployment fails in Tomcat 8 gave me the hint to look for a log file named "localhost.2019-11-14.log". In it I noticed this line:
"tds.content.root.path" property isn't defined.
Sure enough, thredds started successfully when I added this line to /opt/tomcat7/webapps/thredds/WEB-INF/classes/thredds/server/tds.properties:
tds.content.root.path=/opt/apache-tomcat-7.0.68/webapps/
I cannot initialize my app on Eclipse's tomcat. It was working fine 8 hours ago. I left it unattended.
Upon my return I had some unrelated issues where a type from the same package could not be resolved so I: 1. Cleaned Maven, 2. Updated project 3. Deleted / RE-added server 4. Rebooted Eclipse
After this the app will not initialize on tomcat. I ran maven build and that built .war if that makes any difference.
Please see server initialization log, servlet initializer, web.xml below.
Some notes:
- I did not edit my pom.xml
App runs on annotations not xml
The sysout's on servlet initializer don't get printed so it doesn't get to that stage.
Servlet Init
package domain.config;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
public class ServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
#Override
protected Class<?>[] getRootConfigClasses() {
System.out.println("Security Servlet init");
return new Class[] { SecurityConfig.class };
}
#Override
protected Class<?>[] getServletConfigClasses() {
System.out.println("Config Servlet init");
return new Class[] { ConfigClass.class };
}
#Override
protected String[] getServletMappings() {
return new String[] { "/" };
}
}
Tomcat log
Nov 29, 2018 4:42:06 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:applicationform' did not find a matching property.
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/9.0.10
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 20 2018 17:32:21 UTC
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 9.0.10.0
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.8.0_144\jre
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_144-b01
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\OUYanis\Documents\live\.metadata\.plugins\org.eclipse.wst.server.core\tmp4
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\OUYanis\Documents\live\.metadata\.plugins\org.eclipse.wst.server.core\tmp4
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\OUYanis\Documents\live\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\endorsed
Nov 29, 2018 4:42:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Nov 29, 2018 4:42:06 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\jdk1.8.0_144\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files (x86)/Java/jre1.8.0_161/bin/client;C:/Program Files (x86)/Java/jre1.8.0_161/bin;C:/Program Files (x86)/Java/jre1.8.0_161/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Acer\Remote Files\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\PuTTY\;C:\WINDOWS\System32\OpenSSH\;C:\Users\OUYanis\AppData\Local\Microsoft\WindowsApps;C:\sts-3.9.5.RELEASE;;.]
Nov 29, 2018 4:42:07 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Nov 29, 2018 4:42:07 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 29, 2018 4:42:07 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Nov 29, 2018 4:42:07 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 29, 2018 4:42:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2540 ms
Nov 29, 2018 4:42:07 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Nov 29, 2018 4:42:07 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/9.0.10
Nov 29, 2018 4:42:21 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 29, 2018 4:42:21 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Nov 29, 2018 4:42:21 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Nov 29, 2018 4:42:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13723 ms
Edit, Deployment Assembly
Yanis, I'm glad that did work for you, I actually had the same issue on my side and it did take me a time to figure out that the setting that I had to change was the Deployment Assembly like the screenshot you've posted there.
I've been trying to change to a CAS 5.1.x Server from a 4.X Server for the past 3 days with various searches and research and next to no progress. Whenever I remove the dependency to cas-server-webapp-tomcat, the artifact deploys on the local tomcat apache server however it does not show anything except the standard Apache 404 error page. Here is the log for that case:
"C:\Program Files\Java\jdk1.8.0_144\bin\java" -Dcatalina.base=C:\Users\dhogue\.IntelliJIdea2017.1\system\tomcat\Unnamed_src-cas_2 "-Dcatalina.home=C:\Tomcat 70" "-Djava.io.tmpdir=C:\Tomcat 70\temp" -Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=127.0.0.1 -cp "C:\Tomcat 70\bin\bootstrap.jar;C:\Tomcat 70\bin\tomcat-juli.jar" org.apache.catalina.startup.Bootstrap start
[2017-09-27 01:11:17,832] Artifact src-cas:war: Server is not connected. Deploy is not available.
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.63
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 30 2015 08:08:33 UTC
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.63.0
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 7
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.1
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.8.0_144\jre
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_144-b01
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\dhogue\.IntelliJIdea2017.1\system\tomcat\Unnamed_src-cas_2
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Tomcat 70
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\dhogue\.IntelliJIdea2017.1\system\tomcat\Unnamed_src-cas_2
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Tomcat 70
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=C:\Tomcat 70\temp
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcom.sun.management.jmxremote=
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcom.sun.management.jmxremote.port=1099
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
Sep 27, 2017 1:11:19 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\jdk1.8.0_144\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\phantomjs-2.1.1-windows\bin;C:\Program Files\jscoverage-0.5.1;C:\Ruby22-x64\bin;C:\Program Files\apache-ant-1.9.9/bin;C:\Program Files\apache-maven-3.0.4\bin;C:\ProgramData\Oracle\Java\javapath;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files (x86)\Skype\Phone\;.
Sep 27, 2017 1:11:19 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-9090"]
Sep 27, 2017 1:11:19 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-9009"]
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 929 ms
Sep 27, 2017 1:11:19 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 27, 2017 1:11:19 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.63
Sep 27, 2017 1:11:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-9090"]
Sep 27, 2017 1:11:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-9009"]
Sep 27, 2017 1:11:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 54 ms
Connected to server
[2017-09-27 01:11:19,924] Artifact src-cas:war: Artifact is being deployed, please wait...
Sep 27, 2017 1:11:22 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Tomcat 70\webapps\ROOT\WEB-INF\lib\el-api-2.2.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class
Sep 27, 2017 1:11:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Tomcat 70\webapps\manager
Sep 27, 2017 1:11:29 PM 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 27, 2017 1:11:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Tomcat 70\webapps\manager has finished in 195 ms
Sep 27, 2017 1:11:30 PM 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 27, 2017 1:11:30 PM org.apache.catalina.core.ApplicationContext log
INFO: 1 Spring WebApplicationInitializers detected on classpath
[2017-09-27 01:11:30,468] Artifact src-cas:war: Artifact is deployed successfully
[2017-09-27 01:11:30,468] Artifact src-cas:war: Deploy took 10,544 milliseconds
Whenever I try to run it with the cas-server-webapp-tomcat dependency no matter what I've tried, I've always ended up with an error as shown in the following log: Error with cas-server-webapp-tomcat
Here is my current Pom file...excuse the mess: cas.pom
IDE: IntelliJ IDEA
Not sure what else would be needed, ask and I'll provide whatever you need to help me.
Two things stand out to me:
cas-server-webapp-tomcat contains an embedded tomcat container. If you are using an external one, use cas-server-webapp.
It looks like your external tomcat is 7.x. You need at least Tomcat 8.
https://apereo.github.io/cas/5.1.x/installation/Configuring-Servlet-Container.html
I'm starting a newly extracted tomcat in the command line on windows 10. I'm using java 8
startup.bat
Since tomcat is not starting I ran:
catalina.bat run
Here's the full stack trace:
INFO: Server version: Apache Tomcat/7.0.69
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Apr 11 2016 07:57:09 UTC
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.69.0
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.8.0_91\jre
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_91-b14
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -D java.util.logging.config.file=C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\conf\logging.properties
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -D java.util.logging.manager= org.apache.juli.ClassLoaderLogManager
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -D java.endorsed.dirs=C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\endorsed
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69
Jun 06, 2016 11:44:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -D java.io.tmpdir=C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\temp
Jun 06, 2016 11:44:59 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\jdk1.8.0_91\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\DevSuiteHome\jdk\jre\bin\classic;C:\DevSuiteHome\jdk\jre\bin;C:\DevSuiteHome\jdk\jre\bin\client;C:\DevSuiteHome\jlib;C:\DevSuiteHome\bin;C:\DevSuiteHome\jre\1.4.2\bin\client;C:\DevSuiteHome\jre\1.4.2\bin;C:\Program
Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;c:\Program
Files (x86)\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program
Files\Java\jdk1.8.0_91\bin;C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\bin;.
Jun 06, 2016 11:45:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 06, 2016 11:45:00 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.ServerSocket.createImpl(ServerSocket.java:307)
at java.net.ServerSocket.getImpl(ServerSocket.java:257)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Jun 06, 2016 11:45:00 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.ServerSocket.createImpl(ServerSocket.java:307)
at java.net.ServerSocket.getImpl(ServerSocket.java:257)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
... 13 more
Jun 06, 2016 11:45:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 06, 2016 11:45:00 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"]
java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.ServerSocket.createImpl(ServerSocket.java:307)
at java.net.ServerSocket.getImpl(ServerSocket.java:257)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Jun 06, 2016 11:45:00 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.ServerSocket.createImpl(ServerSocket.java:307)
at java.net.ServerSocket.getImpl(ServerSocket.java:257)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
... 13 more
Jun 06, 2016 11:45:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2083 ms
Jun 06, 2016 11:45:00 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 06, 2016 11:45:00 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.69
Jun 06, 2016 11:45:00 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\docs
Jun 06, 2016 11:45:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\docs has finished in 595 ms
Jun 06, 2016 11:45:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\examples
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\examples has finished in 1,403
ms
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\host-manager
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\host-manager has finished in
84 ms
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\manager
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\manager has finished in 81
ms
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\ROOT
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Rene\Downloads\apache-tomcat-7.0.69\apache-tomcat-7.0.69\webapps\ROOT has finished in 55 ms
Jun 06, 2016 11:45:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2308 ms
Jun 06, 2016 11:45:02 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.ServerSocket.createImpl(ServerSocket.java:307)
at java.net.ServerSocket.getImpl(ServerSocket.java:257)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:444)
at org.apache.catalina.startup.Catalina.await(Catalina.java:781)
at org.apache.catalina.startup.Catalina.start(Catalina.java:727)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Jun 06, 2016 11:45:02 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jun 06, 2016 11:45:02 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Jun 06, 2016 11:45:02 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jun 06, 2016 11:45:02 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jun 06, 2016 11:45:02 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jun 06, 2016 11:45:03 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Jun 06, 2016 11:45:03 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
What is this? How can I fix this? I am sure no one is using the ports 8005, 8009 and 8080. What should I do?