tomcat server not starting in eclipse - java

my tomcat server not starting with timeout 45seconds... getting following message
Mar 16, 2016 3:14:34 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:PosDashboard' did not find a matching property.
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.68
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Feb 8 2016 20:25:54 UTC
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.68.0
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 8.1
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.3
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files (x86)\Java\jdk1.7.0_79\jre
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.7.0_79-b15
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: H:\Tomcat7.0
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: H:\Tomcat7.0
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=H:\Tomcat7.0
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=H:\Tomcat7.0
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=H:\Tomcat7.0\wtpwebapps
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=H:\Tomcat7.0\endorsed
Mar 16, 2016 3:14:34 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Mar 16, 2016 3:14:34 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Loaded APR based Apache Tomcat Native library 1.2.5 using APR version 1.5.1.
Mar 16, 2016 3:14:34 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
I need help. Please give me some solution
this is an error.. hope u can view it

please, increase tomcat's time-out seconds see below will help out how
to increase it into eclipse,
by-default tomcat's time-out seconds are : 45-seconds, we can manually
increase it.
do as likewise,

Related

How to fix applet working in eclipse but not in any browser

I want to use java applet in dynamic web project but it's not working.
I created small applet:
`public class MyApplet extends JApplet {
static final long serialVersionUID = 1L;
private JTextField textField;`
/**
* Create the applet.
*/
public MyApplet() {
getContentPane().setLayout(null);
JLabel lblTag = new JLabel("Tag:");
lblTag.setBounds(91, 51, 46, 14);
getContentPane().add(lblTag);
textField = new JTextField();
textField.setBounds(126, 48, 86, 20);
getContentPane().add(textField);
textField.setColumns(10);
}
}`
Then i putted it to .JAR file
Next i created Dynamic Web Project and allocate .JAR file in folder in which index.html file is.
I put also
`<applet code="MyApplet.class" archive="name.jar" width="500" height="500" ></applet>`
to index.html file.
When i open this project on apache server i can see html file propertly with styles but aplet is not showing. It happend in every browser. I have not any error in console:
`sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.5.37
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Dec 12 2018 12:07:02 UTC
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.5.37.0
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_121
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_121-b13
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Admin\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Users\Admin\Desktop\Projekty PWJJ\apache-tomcat-8.5.37\apache-tomcat-8.5.37
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Admin\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Users\Admin\Desktop\Projekty PWJJ\apache-tomcat-8.5.37\apache-tomcat-8.5.37
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\Admin\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Users\Admin\Desktop\Projekty PWJJ\apache-tomcat-8.5.37\apache-tomcat-8.5.37\endorsed
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1250
sty 20, 2019 9:13:47 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jre1.8.0_121\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\MinGW\bin;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Users\Admin\AppData\Local\GitHubDesktop\bin;C:\WINDOWS\system32;;.]
sty 20, 2019 9:13:47 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
sty 20, 2019 9:13:47 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
sty 20, 2019 9:13:47 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
sty 20, 2019 9:13:47 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
sty 20, 2019 9:13:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 608 ms
sty 20, 2019 9:13:47 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
sty 20, 2019 9:13:47 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.37
sty 20, 2019 9:13:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
sty 20, 2019 9:13:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
sty 20, 2019 9:13:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 274 ms`
This will not work with modern browsers. Java plugins allowing to run Applets are obsolete for quite some time now e.g. Firefox did this in 2016:
Websites and publishers which currently use plugins such as Silverlight or Java should accelerate their transition to Web technologies. The Web platform is powerful and can usually do everything that a plugin can do. In the rare cases where a site needs to extend Web technologies, the recommended solution is to develop the additional features as a Firefox add-on. Site maintainers should prepare for plugins to stop working in all versions of Firefox by the end of 2016.

HTTP status 404 error when running cloned project from github on Tomcat 9.0

I have created a simple spring mvc web app and after successfully running it on the server I pushed it on github. Later I cloned this project and have imported it as a maven project as shown below (now it is already imported)
Now I am trying to run it but unfortunately I get HTTP Status 404 error:
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/9.0.13
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Nov 2 2018 14:27:55 UTC
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 9.0.13.0
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_191
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_191-b12
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Alexander\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 9.0
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Alexander\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\Alexander\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 9.0\endorsed
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Nov 27, 2018 9:58:50 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_191\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_191/bin/server;C:/Program Files/Java/jre1.8.0_191/bin;C:/Program Files/Java/jre1.8.0_191/lib/amd64;C:\Program Files\Microsoft MPI\Bin\;C:\OracleHome\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\nodejs\;C:\Users\Alexander\AppData\Local\Microsoft\WindowsApps;C:\Users\Alexander\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Alexander\.dotnet\tools;C:\Users\Alexander\AppData\Local\GitHubDesktop\bin;C:\Users\Alexander\AppData\Roaming\npm;C:\Windows\system32;;.]
Nov 27, 2018 9:58:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8089"]
Nov 27, 2018 9:58:50 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 27, 2018 9:58:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8010"]
Nov 27, 2018 9:58:50 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Nov 27, 2018 9:58:50 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 795 ms
Nov 27, 2018 9:58:51 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Nov 27, 2018 9:58:51 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/9.0.13
Nov 27, 2018 9:58:51 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Nov 27, 2018 9:58:51 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8089"]
Nov 27, 2018 9:58:52 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8010"]
Nov 27, 2018 9:58:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1088 ms
I have seen several similar topics and it seems that everything is correct:
What I am missing?
Update 1:
https://github.com/AlexDev5/javaTesting
Update 2:
https://www.youtube.com/watch?v=CiTrERL4Htw&t=12s

Unable to start tomcat 8.0.39

I am using Eclipse Mars IDE, JRE 1.8.0_51, and Tomcat 8.0.39. Is there any compatibility issue? Please suggest.
Server Tomcat v8.0 Server at localhost was unable to start within 45
seconds. If the server requires more time, try increasing the timeout
in the server editor.
I have also tried increasing the timeouts, but it didn't work.
Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Server
version: Apache Tomcat/8.0.39 Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Server
built: Nov 9 2016 08:48:39 UTC Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Server
number: 8.0.39.0 Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: OS Name:
Windows 7 Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: OS
Version: 6.1 Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO:
Architecture: amd64 Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Java Home:
C:\Program Files\Java\jre1.8.0_51 Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: JVM
Version: 1.8.0_51-b16 Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: JVM
Vendor: Oracle Corporation Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO:
CATALINA_BASE:
C:\Users\esboddu.metadata.plugins\org.eclipse.wst.server.core\tmp0
Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO:
CATALINA_HOME:
D:\softwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39 Dec
12, 2016 8:27:23 PM org.apache.catalina.startup.VersionLoggerListener
log INFO: Command line argument:
-Dcatalina.base=C:\Users\esboddu.metadata.plugins\org.eclipse.wst.server.core\tmp0
Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Command
line argument:
-Dcatalina.home=D:\softwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39
Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Command
line argument:
-Dwtp.deploy=C:\Users\esboddu.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Command
line argument:
-Djava.endorsed.dirs=D:\softwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39\endorsed
Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.VersionLoggerListener log INFO: Command
line argument: -Dfile.encoding=Cp1252 Dec 12, 2016 8:27:23 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_51\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program
Files/Java/jre1.8.0_51/bin/server;C:/Program
Files/Java/jre1.8.0_51/bin;C:/Program
Files/Java/jre1.8.0_51/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Informatica\9.6.1\clients\tools\datadirect;C:\app\esboddu\product\11.2.0\client_2\bin;C:\app\esboddu\product\11.2.0\client_1;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\TortoiseSVN\bin;C:\Program Files (x86)\Skype\Phone\;C:\Program
Files\Java\jdk1.8.0_51\bin;D:\hadoop-home\hadoop-common-2.2.0-bin-master\bin\;C:\Program
Files\Java\jdk1.8.0_51\jre;C:\Users\esboddu\AppData\Local\Programs\EmEditor;C:\Program Files\Java\jdk1.8.0_51\bin;D:\softwares\eclipse-jee-mars-2-win32-x86_64\eclipse;;.
Dec 12, 2016 8:27:23 PM org.apache.coyote.AbstractProtocol init INFO:
Initializing ProtocolHandler ["http-nio-8080"] Dec 12, 2016 8:27:23 PM
org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO:
Using a shared selector for servlet write/read Dec 12, 2016 8:27:23 PM
org.apache.coyote.AbstractProtocol init INFO: Initializing
ProtocolHandler ["ajp-nio-8009"] Dec 12, 2016 8:27:23 PM
org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO:
Using a shared selector for servlet write/read Dec 12, 2016 8:27:23 PM
org.apache.catalina.startup.Catalina load INFO: Initialization
processed in 464 ms Dec 12, 2016 8:27:23 PM
org.apache.catalina.core.StandardService startInternal INFO: Starting
service Catalina Dec 12, 2016 8:27:23 PM
org.apache.catalina.core.StandardEngine startInternal INFO: Starting
Servlet Engine: Apache Tomcat/8.0.39 Dec 12, 2016 8:27:24 PM
org.apache.catalina.startup.HostConfig deployDescriptor INFO:
Deploying configuration descriptor
C:\Users\esboddu.metadata.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\will.xml
Dec 12, 2016 8:27:24 PM
org.apache.catalina.startup.SetContextPropertiesRule begin WARNING:
[SetContextPropertiesRule]{Context} Setting property 'source' to
'org.eclipse.jst.jee.server:will' did not find a matching property.
Dec 12, 2016 8:27:24 PM org.apache.catalina.startup.HostConfig
deployDescriptor INFO: Deployment of configuration descriptor
C:\Users\esboddu.metadata.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\will.xml
has finished in 49 ms Dec 12, 2016 8:27:24 PM
org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["http-nio-8080"] Dec 12, 2016 8:27:24 PM
org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["ajp-nio-8009"] Dec 12, 2016 8:27:24 PM
org.apache.catalina.startup.Catalina start INFO: Server startup in 375
ms

Can't start Tomcat through Eclipse

I'm running Tomcat 8 and eclipse mars on Ubuntu. When I try to start Tomcat through eclipse, it just hangs. I tried the solutions in Tomcat Not Starting Through Eclipse (Timeout)
including:
setting my hosts file has 127.0.0.1 localhost
setting Window ->
Preferences -> General -> Network Connections to Direct
adding -Djava.net.preferIPv4Stack=true to eclipse.ini
Console output:
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.28
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Oct 7 2015 18:25:21 UTC
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.28.0
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 3.13.0-24-generic
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /opt/java/jdk1.7.0_79/jre
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.7.0_79-b15
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /home/weblogic/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /opt/apache-tomcat-8.0.28
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:43256
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/home/weblogic/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/opt/apache-tomcat-8.0.28
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=/home/weblogic/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/opt/apache-tomcat-8.0.28/endorsed
Oct 26, 2015 12:06:56 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Oct 26, 2015 12:06:56 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/lib/oracle/11.2/client/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Oct 26, 2015 12:06:57 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Oct 26, 2015 12:06:57 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Oct 26, 2015 12:06:57 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Oct 26, 2015 12:06:57 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Oct 26, 2015 12:06:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3816 ms
Oct 26, 2015 12:06:57 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 26, 2015 12:06:57 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.28
Oct 26, 2015 12:06:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Oct 26, 2015 12:06:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Oct 26, 2015 12:06:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2091 ms
I double clicked on the server, went down to "Server Location" and switched from "Use workspace metadata" to "Use Tomcat installation".
It has started. What are you looking for?
Go to localhost:8080 from any web-browser. If you have defined the index.html file, then it will show the output there.

Tomcat server "HTTP status 404" on Eclipse, working fine on windows

I am pretty new to all the servers thing so excuse me if I don't have enough knowledge to explain the situation correctly.
Basicly, I run the Tomcat server from my windows computer and it's working perfectly fine, I see the welcome page at localhost. However, when I try to deploy a project and run it with Eclipse, I see the HTTP Status 404 error.
I have read so far plenty of articles and opinions on the internet, some of them I couldn't quite understand, but what I have tried is to switch the server's location. However, when I do that, some SEVERE errors appear in the console, and I'm unable to restart the server except for if I restart Eclipse itself.
This is the full stacktrace:
Aug 02, 2015 5:11:44 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:webproject.filecounter' did not find a matching property.
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.24
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jul 1 2015 20:19:55 UTC
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.24.0
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 7
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.1
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_20
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_20-b26
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Дени\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 8.0
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Дени\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.0
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\Дени\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed
Aug 02, 2015 5:11:44 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1251
Aug 02, 2015 5:11:44 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_20\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.8.0_20/jre/bin/server;C:/Program Files/Java/jdk1.8.0_20/jre/bin;C:/Program Files/Java/jdk1.8.0_20/jre/lib/amd64;C:\Users\Дени\Downloads\eclipse\jre\bin\javaw.exe;C:\OrCAD\OrCAD_16.3_Demo\tools\PSpice;C:\OrCAD\OrCAD_16.3_Demo\tools\PSpice\Library;C:\OrCAD\OrCAD_16.3_Demo\tools\Capture;C:\OrCAD\OrCAD_16.3_Demo\tools\bin;C:\OrCAD\OrCAD_16.3_Demo\OpenAccess\bin\win32\opt;C:\OrCAD\OrCAD_16.3_Demo\tools\fet\bin;C:\OrCAD\OrCAD_16.3_Demo\tools\pcb\bin;C:\apache-tomcat-8.0.24;C:\Program Files\Java\jdk1.8.0_20;D:\New folder\Downloads\eclipse;;.
Aug 02, 2015 5:11:44 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Aug 02, 2015 5:11:45 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Aug 02, 2015 5:11:45 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Aug 02, 2015 5:11:45 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Aug 02, 2015 5:11:45 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2287 ms
Aug 02, 2015 5:11:45 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 02, 2015 5:11:45 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.24
Aug 02, 2015 5:11:45 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [129] milliseconds.
Aug 02, 2015 5:11:46 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Aug 02, 2015 5:11:46 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Aug 02, 2015 5:11:46 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 956 ms
Aug 02, 2015 5:12:16 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/webproject.filecounter] has started
Aug 02, 2015 5:12:16 PM org.apache.catalina.core.StandardContext reload
SEVERE: Exception starting Context with name [/webproject.filecounter]
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webproject.filecounter]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3746)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:292)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5528)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot#623ebb68]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 8 more
Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:\Users\Дени\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\webproject.filecounter] is not valid
at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:723)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:684)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Aug 02, 2015 5:12:16 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/webproject.filecounter] is completed
I'll appreciate any help, but, as I said, I'm pretty new to servlets and I'm sorry if I didn't explain something correctly.
I'm using Eclipse Luna and Tomcat 8.0 versions.
It says that the file webproject.filecounter is not valid. Maybe you can try to delete the . metadata.

Categories

Resources