Tools Required:
Tomcat7
Eclipse
Step1:window--preference--server--runtime envirenment
step2:--add--Select Apache Tomcat v7.0--next--
Name:apache Tomcat v7.0
Tomcat installation directory D:\SOFT\TOMCAT7 (my Tomcat installation path)
JRE: Select jdk1.7.0.79 (My JDK version)
--finish
At this point in the project directory will be more than a servers folder inside is just our new Tomcat server configuration information
Step3: Right-click Project (the project to be accessed in the browser)--run as--run on server--Select the service you just created--finish
View log information under Eclipse console
May 06, 2016 4:01:33 pm Org.apache.catalina.core.AprLifecycleListener Init
Info: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found O n the Java.library.path:c:\program Files\java7\jdk1.7.0_79\bin; C:\Windows\Sun\Java\bin; C:\Windows\system32; C:\Windows; C:/Program files/java7/jdk1.7.0_79/bin/. /jre/bin/client; C:/Program files/java7/jdk1.7.0_79/bin/. /jre/bin; C:/Program files/java7/jdk1.7.0_79/bin/. /jre/lib/i386; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\;D: \program Files\tortoisesvn\bin; C:\Program Files\java7\jdk1.7.0_79\bin; C:\Program files\java7\jdk1.7.0_79\jre\bin;d:\program files\apache-maven-3.3.9\bin;d:\program Files\nodejs\;D: \ Node\node-global; C:\users\dhc-user\appdata\roaming\npm;d:\program files\eclipse4.4;;.
May 06, 2016 4:01:33 pm Org.apache.tomcat.util.digester.SetPropertiesRule begin
Warning: [Setpropertiesrule]{server/service/engine/host/context} Setting Property ' source ' to ' Org.eclipse.jst.j2ee.server:skt.testA ' did not ' find a matching property.
May 06, 2016 4:01:34 pm Org.apache.coyote.AbstractProtocol Init
Info: Initializing protocolhandler ["http-bio-8080"]
May 06, 2016 4:01:34 pm Org.apache.coyote.AbstractProtocol Init
Info: Initializing protocolhandler ["ajp-bio-8009"]
May 06, 2016 4:01:34 pm Org.apache.catalina.startup.Catalina load
Info: Initialization processed in 2308 MS
May 06, 2016 4:01:34 pm Org.apache.catalina.core.StandardService startinternal
Information: Starting service Catalina
May 06, 2016 4:01:34 pm Org.apache.catalina.core.StandardEngine startinternal
Info: Starting Servlet engine:apache tomcat/7.0.47
May 06, 2016 4:01:36 pm Org.apache.catalina.util.SessionIdGenerator createsecurerandom
Information: Creation of SecureRandom instance for session ID generation using [sha1prng] took [184] milliseconds.
May 06, 2016 4:01:36 pm Org.apache.coyote.AbstractProtocol start
Info: Starting Protocolhandler ["http-bio-8080"]
May 06, 2016 4:01:36 pm Org.apache.coyote.AbstractProtocol start
Info: Starting Protocolhandler ["ajp-bio-8009"]
May 06, 2016 4:01:36 pm Org.apache.catalina.startup.Catalina start
Info: Server Startup in 1373 MS
If no error indicates that the Tomcat server has started successfully
Accessing http://localhost:8080/{projectname}/in the browser
Problems:
1. Multiple contexts has a path of "/skt.testa".
Workaround: Open Servers project in Eclipse-server--open server.xml with current error
Find duplicates of the <context docbase= "Skt.testa" path= "/skt.testa" ..../〉 Delete Redundant only one copy of the reservation is retained.
Java Learning path--eclipse configuring Tomcat Server