I am working on JSP using eclipse mars with tomcat 8, when I run my server it sometimes shows the port is being by another program and when I change it it then shows Server tomcat at localhost failed to start, 'Server at localhost' has encountered a problem.
My console looks like this:
Nov 10, 2015 12:50:32 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property
'source' to 'org.eclipse.jst.jee.server:try1' did not find a matching property.
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.28
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Oct 7 2015 18:25:21 UTC
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.28.0
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.11.1
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_45-b14
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/apple/Desktop/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /usr/local/tomcat
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: - Dcatalina.base=/Users/apple/Desktop/workspace/.metadata/.plugins/org.eclipse.wst.s erver.core/tmp0
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/usr/local/tomcat
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: - Dwtp.deploy=/Users/apple/Desktop/workspace/.metadata/.plugins/org.eclipse.wst.serv er.core/tmp0/wtpwebapps
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/usr/local/tomcat/endorsed
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Nov 10, 2015 12:50:32 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xbootclasspath/p:/Users/apple/Downloads/tomcat- juli.jar
Nov 10, 2015 12:50:32 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/apple/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Jav a/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Nov 10, 2015 12:50:33 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8081"]
Nov 10, 2015 12:50:33 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 10, 2015 12:50:33 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-9181"]
Nov 10, 2015 12:50:33 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 10, 2015 12:50:33 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 948 ms
Nov 10, 2015 12:50:33 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 10, 2015 12:50:33 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.28
Nov 10, 2015 12:50:33 AM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Nov 10, 2015 12:50:33 AM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/try1]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
Related
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'm running Tomcat 7 server in eclipse. This is working fine but http://localhost:8080 is not popping up! Please help me I'm new to eclipse and server programming.
my console status:
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.70
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 15 2016 16:27:45 UTC
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.70.0
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 8
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.2
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_102
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_102-b14
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: D:\testingp\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: D:\testingp\apache-tomcat-7.0.70-windows-x86\apache-tomcat-7.0.70
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=D:\testingp\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=D:\testingp\apache-tomcat-7.0.70-windows-x86\apache-tomcat-7.0.70
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=D:\testingp\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=D:\testingp\apache-tomcat-7.0.70-windows-x86\apache-tomcat-7.0.70\endorsed
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Jul 30, 2016 7:42:27 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_102\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_102/bin/client;C:/Program Files/Java/jre1.8.0_102/bin;C:/Program Files/Java/jre1.8.0_102/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_92\bin;<path-to-sdk>/platform-tools;C:\Users\MISSION ANDROID\Desktop\;C:\Users\MISSION ANDROID\Downloads\Compressed\eclipse-jee-indigo-SR2-win32\eclipse;;.
Jul 30, 2016 7:42:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 30, 2016 7:42:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 30, 2016 7:42:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 767 ms
Jul 30, 2016 7:42:27 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 30, 2016 7:42:27 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.70
Jul 30, 2016 7:42:28 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.
Jul 30, 2016 7:42:28 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [220] milliseconds.
Jul 30, 2016 7:42:28 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 30, 2016 7:42:28 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 30, 2016 7:42:28 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 687 ms
and deploy path is by default:
"wtpwebapps"
My application failed to start with a strange error. What does it mean?
янв 11, 2016 8:47:04 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:new_prog_22' did not find a matching property.
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.65
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Oct 9 2015 08:36:58 UTC
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.65.0
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows XP
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 5.1
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.8.0_66\jre
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_66-b18
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\spring_new_works\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\apache-tomcat-7.0.65
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\spring_new_works\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\apache-tomcat-7.0.65
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\spring_new_works\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\apache-tomcat-7.0.65\endorsed
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1251
янв 11, 2016 8:47:04 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_66\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.8.0_66/jre/bin/client;C:/Program Files/Java/jdk1.8.0_66/jre/bin;C:/Program Files/Java/jdk1.8.0_66/jre/lib/i386;C:\apache-maven-3.3.9\bin;C:\Program Files\Java\jdk1.8.0_66\jre\bin;C:\Program Files\Java\jdk1.8.0_66\bin;C:\Program Files\Java\jdk1.7.0_51\bin;C:\Ruby193\bin;C:\Program Files\PC Connectivity Solution;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Git\cmd;C:\Program Files\Skype\Phone\;;C:\eclipse-jee-luna-SR2-win32\eclipse;;.
янв 11, 2016 8:47:04 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
янв 11, 2016 8:47:04 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
янв 11, 2016 8:47:04 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 623 ms
янв 11, 2016 8:47:04 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
янв 11, 2016 8:47:04 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.65
янв 11, 2016 8:47:06 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.
янв 11, 2016 8:47:06 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
янв 11, 2016 8:47:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'webapp.root' = [C:\spring_new_works\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\new_prog_22\]
янв 11, 2016 8:47:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
20:47:06,375 INFO ContextLoader:285 - Root WebApplicationContext: initialization started
20:47:06,515 INFO AnnotationConfigWebApplicationContext:513 - Refreshing Root WebApplicationContext: startup date [Mon Jan 11 20:47:06 EET 2016]; root of context hierarchy
20:47:06,609 INFO AnnotationConfigWebApplicationContext:240 - No annotated classes found for specified class/package [control.SpringConfig]
20:47:06,687 INFO ContextLoader:325 - Root WebApplicationContext: initialization completed in 312 ms
янв 11, 2016 8:47:06 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter CacheControl
java.lang.ClassNotFoundException: filters.CacheControlFilter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4841)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5535)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
янв 11, 2016 8:47:06 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter GzipFilter
java.lang.ClassNotFoundException: util.gzip.GZipServletFilter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4841)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5535)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
янв 11, 2016 8:47:06 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file
янв 11, 2016 8:47:06 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/new_prog_22] startup failed due to previous errors
янв 11, 2016 8:47:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
20:47:06,703 INFO AnnotationConfigWebApplicationContext:873 - Closing Root WebApplicationContext: startup date [Mon Jan 11 20:47:06 EET 2016]; root of context hierarchy
янв 11, 2016 8:47:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j
янв 11, 2016 8:47:06 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
янв 11, 2016 8:47:06 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
янв 11, 2016 8:47:06 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1882 ms
Note the WARNING message in the beggining of the logs. The application really names new_prog_22 and the same name is in pom.xml. Also the filter classes are present. How to fix it?
Basically I am trying to create a simple Hello World program using Rational Software Architect. To create the server I use Tomcat and Jersey. I found that when I create the server without putting the jersey jar files into WEB-INF/lib but rather I create a custom user library with all the jar files, Tomcat will compile fine but the url will not load the "Hello World" text, just a 404 error. I simple do http://localhost:8080/project name/rest/class path name and nothing will come up. I think its because I don't have the jersey files in WEB-INF/lib but when I put the jersey jar files in that folder and try to run the tomcat server, i get a "Server Tomcat v7.0 Server at localhost failed to start." error.
Please help me out and thanks in advance.
Jun 10, 2015 12:56:28 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:RestHello' did not find a matching property.
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.62
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: May 7 2015 17:14:55 UTC
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.62.0
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 7
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.1 build 7601 Service Pack 1
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\SDP80x\jdk\jre
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: jvmwi3260sr9-20110324_78506
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: IBM Corporation
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\EzraZWS\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\RESTWS\Tomcat 7.0
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xjcl:jclscar_24
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcom.ibm.oti.vm.bootstrap.library.path=C:\SDP80x\jdk\jre\bin
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dsun.boot.library.path=C:\SDP80x\jdk\jre\bin
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.library.path=C:\SDP80x\jdk\jre\bin;.;C:/SDP80x/jdk/jre/bin/j9vm;C:/SDP80x/jdk/jre/bin;C:/SDP80x/jdk/jre/lib/i386;c:\eip40\tibco\tibrv\8.4\bin;C:\eip40\tibco\tibrv\8.3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\RationalSDLC\ClearCase\bin;C:\RationalSDLC\common;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files\Dell\Dell Data Protection\Encryption\;C:\Program Files (x86)\nodejs\;C:\SDP80x\jdk\bin;;C:\SDP80x;
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.home=C:\SDP80x\jdk\jre
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.ext.dirs=C:\SDP80x\jdk\jre\lib\ext
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Duser.dir=C:\SDP80x
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: _j2se_j9=71168
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xdump
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.class.path=c:\eip40\tibco\tibrv\8.4\lib\tibrvnative.jar;C:\eip40\tibco\tibrv\8.3\lib\tibrvnative.jar;C:\SDP80x\jdk\bin;
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\EzraZWS\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\RESTWS\Tomcat 7.0
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\EzraZWS\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\RESTWS\Tomcat 7.0\endorsed
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.class.path=C:\RESTWS\Tomcat 7.0\bin\bootstrap.jar;C:\RESTWS\Tomcat 7.0\bin\tomcat-juli.jar;C:\SDP80x\jdk\lib\tools.jar;C:\EzraZWS\RestHello\WebContent\WEB-INF\lib\jersey-client.jar;C:\EzraZWS\RestHello\WebContent\WEB-INF\lib\jersey-common.jar;C:\EzraZWS\RestHello\WebContent\WEB-INF\lib\jersey-container-servlet.jar;C:\EzraZWS\RestHello\WebContent\WEB-INF\lib\jersey-container-servlet-core.jar;C:\EzraZWS\RestHello\WebContent\WEB-INF\lib\jersey-media-jaxb.jar;C:\EzraZWS\RestHello\WebContent\WEB-INF\lib\jersey-server.jar
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dsun.java.command=org.apache.catalina.startup.Bootstrap start
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dsun.java.launcher=SUN_STANDARD
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: _port_library
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: _org.apache.harmony.vmi.portlib
Jun 10, 2015 12:56:28 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:\SDP80x\jdk\jre\bin;.;C:/SDP80x/jdk/jre/bin/j9vm;C:/SDP80x/jdk/jre/bin;C:/SDP80x/jdk/jre/lib/i386;c:\eip40\tibco\tibrv\8.4\bin;C:\eip40\tibco\tibrv\8.3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\RationalSDLC\ClearCase\bin;C:\RationalSDLC\common;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files\Dell\Dell Data Protection\Encryption\;C:\Program Files (x86)\nodejs\;C:\SDP80x\jdk\bin;;C:\SDP80x;
Jun 10, 2015 12:56:28 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 10, 2015 12:56:28 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 559 ms
Jun 10, 2015 12:56:28 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 10, 2015 12:56:28 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.62
Jun 10, 2015 12:56:28 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
Throwable occurred: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:233)
at java.util.concurrent.FutureTask.get(FutureTask.java:94)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/glassfish/jersey/servlet/init/JerseyServletContainerInitializer, offset=6
at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:540)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
at java.net.URLClassLoader.access$300(URLClassLoader.java:79)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038)
at java.security.AccessController.doPrivileged(AccessController.java:284)
at java.net.URLClassLoader.findClass(URLClassLoader.java:429)
at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:645)
at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:172)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1707)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:172)
at org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappServiceLoader.java:192)
at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:157)
at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1577)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Jun 10, 2015 12:56:28 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
Throwable occurred: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/RestHello]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:233)
at java.util.concurrent.FutureTask.get(FutureTask.java:94)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/RestHello]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/glassfish/jersey/servlet/init/JerseyServletContainerInitializer, offset=6 (unable to load class org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2961)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:172)
at org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappServiceLoader.java:192)
at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:157)
at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1577)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Jun 10, 2015 12:56:28 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
Throwable occurred: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:233)
at java.util.concurrent.FutureTask.get(FutureTask.java:94)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Jun 10, 2015 12:56:28 PM org.apache.catalina.startup.Catalina start
SEVERE: The required Server component failed to start so Tomcat is unable to start.
Throwable occurred: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Jun 10, 2015 12:56:28 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jun 10, 2015 12:56:28 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Jun 10, 2015 12:56:28 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jun 10, 2015 12:56:28 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jun 10, 2015 12:56:28 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
My code:
package RestHello;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
#Path ("/hello")
public class Hello {
#GET
#Produces(MediaType.TEXT_PLAIN)
public String sayHello() {
return "Hello";
}
}
and my web.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>RestHello</display-name>
<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<!-- Register resources and providers under com.vogella.jersey.first package. -->
<init-param>
<param-name>jersey.config.server.provider.packages</param-name>
<param-value>RestHello</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey REST Service</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
</web-app>
I finally got it. Thanks Sasikanth you were right about my error. The jre must match for apache, your project, and Jersey. The newest Jersey uses jre7 so when you install apache, use jre7 as the build path. Also my Rational project was defaulted to java 1.6 not 1.7. So you have to manually create a build path to jre7. This video teaches you how to do that (just go to java build path in properties of your project, double click jre system library, click installed jres, then add a new path to your jre directory). To find the jre directory just look up java on the start menu, click the java tab, then click view. This made my project build path jre7, tomcat should already be jre7 from the install, and jersey is jre7 as well so everything will match and your server will run correctly.
Video: https://www.youtube.com/watch?v=whQaqnI4SrU
The unsupported class version error suggests that you are using a newer version of jersey than is supported by your tomcat installation. Most likely it is because of jre version mismatch - the jersey library you are using requires a newer jre but you have an older version
I am trying retrieve data from SQLLite DB in a Java Class.
This is the part of the web app that uses the Beans and Form processing" as per the tutorial here:
http://www.jsptut.com/forms.jsp
I am getting a persistent error of java.lang.ClassNotFoundException: org.sqlite.JDBC
I have added sqlite-jdbc-3.8.7.jar to the java classpath
This is my code:
public int startConnection() {
Connection c = null;
try {
Class.forName("org.sqlite.JDBC");
c = DriverManager.getConnection("jdbc:sqlite:test.db");
} catch ( Exception e ) {
System.err.println( e.getClass().getName() + ": " + e.getMessage() );
System.exit(0);
return CONNECTION_FAILURE;
}
System.out.println("Opened database successfully");
return CONNECTION_SUCCESSFUL;
}
This is the console output:
Jan 03, 2015 2:42:15 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:webapp01' did not find a matching property.
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.57
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Nov 3 2014 08:39:16 UTC
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.57.0
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.10
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_25-b17
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/hadi/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /Users/hadi/Documents/apache-tomcat-7.0.57
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/Users/hadi/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/Users/hadi/Documents/apache-tomcat-7.0.57
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=/Users/hadi/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/Users/hadi/Documents/apache-tomcat-7.0.57/endorsed
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jan 03, 2015 2:42:15 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/hadi/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Jan 03, 2015 2:42:15 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 03, 2015 2:42:15 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 03, 2015 2:42:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1296 ms
Jan 03, 2015 2:42:15 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 03, 2015 2:42:15 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
Jan 03, 2015 2:42:16 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 03, 2015 2:42:16 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 03, 2015 2:42:16 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 913 ms
java.lang.ClassNotFoundException: org.sqlite.JDBC
Jan 03, 2015 2:42:32 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Please anyone solve this problem......Thanks....
Add the sqlite-jdbc-3.8.7.jar to the tomcat class-path by moving it to $CATALINA_HOME/lib.
See the Apache Tomcat 7 - Class Loader Howto for an in-depth look at how the Tomcat class loader works. It reads, in part,
System — This class loader is normally initialized from the contents of the CLASSPATH environment variable. All such classes are visible to both Tomcat internal classes, and to web applications. However, the standard Tomcat startup scripts ($CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of the CLASSPATH environment variable itself, and instead build the System class loader from ...