Why is Eclipse - Tomcat 7 displaying all text in color red in console - eclipse

I'm using Eclipse Kepler with Tomcat 7, I'm just testing a simple JSP page (test.jsp). It runs well in browser however all text in console is displayed in color red.
I have checked in Window/Preferences/(Run/Debug) properties and all seams to be fine.
The text from the console is the following:
Jan 07, 2015 3:31:07 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
C:\Java\jdk1.8.0_05\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;...etc
Jan 07, 2015 3:31:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 07, 2015 3:31:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 07, 2015 3:31:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1676 ms
Jan 07, 2015 3:31:08 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 07, 2015 3:31:08 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.56
Jan 07, 2015 3:31:11 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took
[1,076] milliseconds.
Jan 07, 2015 3:31:12 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor
C:\MauricioFiles\ECLIPSE\Eclipse_JEE7_I\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf
\Catalina\localhost\Servlets_JSP_chapter21_musicII.xml
Jan 07, 2015 3:31:12 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to
'org.eclipse.jst.jee.server:
Servlets_JSP_chapter21_musicII' did not find a matching property.
Jan 07, 2015 3:31:12 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deployment of configuration descriptor
C:\MauricioFiles\ECLIPSE\Eclipse_JEE7_I\.metadata\.plugins
\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\Servlets_JSP_chapter21_musicII.xml has
finished in 862 ms
Jan 07, 2015 3:31:12 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 07, 2015 3:31:13 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 07, 2015 3:31:13 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4236 ms
Is something wrong with the proyect or is there a way to display text in black (just error in red)?
Thank you a lot!!

The text that is in red is being written to the System.err stream, the text in black is written to System.out. Nothing is inherently wrong, that's just how the system is differentiating the output streams. You can configure the display to your liking by right clicking in the console and selecting "Preferences"

Related

Tomcat not starting in eclipse - no timeout issue - PFB logs

Tomcat starting from command prompt but not from eclipse.
No problem shown in logs. logs shows server started successfully.
Tomcat staring from command prompt but not from eclipse.
No problem shown in logs. logs shows server started successfully.
Mar 23, 2019 1:53:07 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:spring-interceptor' did not find a matching property.
Mar 23, 2019 1:53:07 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.5.28
Mar 23, 2019 1:53:07 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\FILES\Softwares\NewACFEclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Mar 23, 2019 1:53:07 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files (x86)\Apache Software Foundation\Tomcat 8.5
Mar 23, 2019 1:53:07 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\FILES\Softwares\NewACFEclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Mar 23, 2019 1:53:07 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files (x86)\Apache Software Foundation\Tomcat 8.5\endorsed
Mar 23, 2019 1:53:07 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Mar 23, 2019 1:53:07 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 (x86)\Java\jre1.8.0_161\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files (x86)/Java/jre1.8.0_161/bin/client;C:/Program Files (x86)/Java/jre1.8.0_161/bin;C:/Program Files (x86)/Java/jre1.8.0_161/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files\Java\jdk1.6.0_24\jre\bin\client;C:\oms\bb\cord9software\ant\bin;O:\ora1106w\BIN;C:\PROGRA~2\CA\SC\etpki\lib;C:\Program Files (x86)\CA\SharedComponents\PEC\bin;C:\Program Files\CA\SharedComponents\PEC\bin;c:\progra~1\ca\sc\etpki\lib;C:\Program Files\Java\jdk1.8.0_161\bin;C:\AmdocsProcessManager\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\WINDOWS\system32\windowspowershell\v1.0\;c:\program files\provision networks\virtual access client\;c:\oms\hotdeployment;C:\Bea10.3.4\wlserver_10.3;C:\Program Files (x86)\CA\Cryptography\;C:\Program Files (x86)\CA\SCM;O:\ora11202w\jdbc\lib\ojdbc6.jar;C:\Program Files\Perforce;C:\Python27;C:\Python27\Scripts;C:\Python27\GnuWin32\bin;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.8.0_161\bin;C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.6.0\bin;C:\Users\akashmu\AppData\Local\Microsoft\WindowsApps;;C:\FILES\Softwares\NewACFEclipse;;.]
Mar 23, 2019 1:53:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Mar 23, 2019 1:53:08 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Mar 23, 2019 1:53:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Mar 23, 2019 1:53:08 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Mar 23, 2019 1:53:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1216 ms
Mar 23, 2019 1:53:08 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Mar 23, 2019 1:53:08 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.28
Mar 23, 2019 1:53:19 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.
Mar 23, 2019 1:53:19 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Mar 23, 2019 1:53:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Mar 23, 2019 1:53:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Mar 23, 2019 1:53:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11105 ms
If you are staring the Tomcat server from the Java app then make sure it is attached to the app. Otherwise, start the server independently and the console logs will print the error if any.

Find localhost tomcat link of application

I have found an old jsf project I coded. However, I cannot find the right tomcat localhost link. It seems that everything runs fine, like:
Sep 15, 2014 10:02:13 PM org.apache.catalina.core.AprLifecycleListener init
Sep 15, 2014 10:02:14 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Warnung: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:TestProject' did not find a matching property.
Sep 15, 2014 10:02:14 PM org.apache.coyote.AbstractProtocol init
Information: Initializing ProtocolHandler ["http-bio-8080"]
Sep 15, 2014 10:02:14 PM org.apache.coyote.AbstractProtocol init
Information: Initializing ProtocolHandler ["ajp-bio-8009"]
Sep 15, 2014 10:02:14 PM org.apache.catalina.startup.Catalina load
Information: Initialization processed in 1790 ms
Sep 15, 2014 10:02:14 PM org.apache.catalina.core.StandardService startInternal
Information: Starting service Catalina
Sep 15, 2014 10:02:14 PM org.apache.catalina.core.StandardEngine startInternal
Information: Starting Servlet Engine: Apache Tomcat/7.0.47
Sep 15, 2014 10:02:16 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
Information: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [123] milliseconds.
Sep 15, 2014 10:02:28 PM org.apache.catalina.core.ApplicationContext log
Information: No Spring WebApplicationInitializer types detected on classpath
Sep 15, 2014 10:02:28 PM com.sun.faces.config.ConfigureListener contextInitialized
Information: Mojarra 2.2.0-m08 (-SNAPSHOT 20130107-2105 https://svn.java.net/svn/mojarra~svn/tags/2.2.0-m08#11337) für Kontext '/TestProject' wird initialisiert.
Information: Mojarra 2.2.0-m08 (-SNAPSHOT 20130107-2105 https://svn.java.net/svn/mojarra~svn/tags/2.2.0-m08#11337) für Kontext '/TestProject' wird initialisiert.
Sep 15, 2014 10:02:29 PM com.sun.faces.spi.InjectionProviderFactory createInstance
Information: JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
log4j:WARN No appenders could be found for logger (org.hibernate.validator.util.Version).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Sep 15, 2014 10:02:31 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
Information: Running on PrimeFaces 3.5
Sep 15, 2014 10:02:32 PM org.apache.coyote.AbstractProtocol start
Information: Starting ProtocolHandler ["http-bio-8080"]
Sep 15, 2014 10:02:32 PM org.apache.coyote.AbstractProtocol start
Information: Starting ProtocolHandler ["ajp-bio-8009"]
Sep 15, 2014 10:02:32 PM org.apache.catalina.startup.Catalina start
Information: Server startup in 17609 ms
However, I do not know how to open the index.xhtml in this folder:
I thought that the goes like that:
http://localhost:8080/TestProject/site/public/master/index.xhtml
However, I get:
HTTP Status 404
type Status report
message /TestProject/site/public/master/index.xhtml
description The requested resource is not available.
Is there any way to find out the correct URL in eclipse?
I really appreciate your replies!

How to run servlet in eclipse juno?

While i am trying to execute servlet program i got following error. please help me how to resolve this error?
I tried many site but i can't clear the error. I think i did wrong while setting environment variable. I have installed jdk1.7.0_45 and apache tomcat7.0.47.
Oct 31, 2013 12:11:58 PM org.apache.catalina.core.AprLifecycleListener init
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.7.0_45\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.7.0_45/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_45/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_45/bin/../jre/lib/amd64;;C:\Program Files\Java\jdk1.7.0_45\bin;.;D:\Amutha\softwares\eclipse;;.
Oct 31, 2013 12:11:58 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:yt' did not find a matching property.
Oct 31, 2013 12:11:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 31, 2013 12:11:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Oct 31, 2013 12:11:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 716 ms
Oct 31, 2013 12:11:58 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 31, 2013 12:11:58 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Oct 31, 2013 12:11:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Oct 31, 2013 12:11:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Oct 31, 2013 12:11:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 665 ms
Oct 31, 2013 12:11:58 PM org.apache.catalina.core.AprLifecycleListener init
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.7.0_45\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.7.0_45/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_45/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_45/bin/../jre/lib/amd64;;C:\Program Files\Java\jdk1.7.0_45\bin;.;D:\Amutha\softwares\eclipse;;.
Oct 31, 2013 12:11:58 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:yt' did not find a matching property.
Oct 31, 2013 12:11:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 31, 2013 12:11:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Oct 31, 2013 12:11:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 716 ms
Oct 31, 2013 12:11:58 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 31, 2013 12:11:58 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Oct 31, 2013 12:11:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Oct 31, 2013 12:11:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Oct 31, 2013 12:11:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 665 ms

running a web application through tomcat

I am trying to run my web application through tomcat server(v7.0.32).The project is developed under eclipse-Juno. when i type "http://localhost:8080/MyNewApp1" in my browser it says,
HTTP Status 404 - /MyNewApp1/
type Status report
message /MyNewApp1/
description The requested resource is not available.
Apache Tomcat/7.0.32 when i try to view the log through command line using less catalina.out , i get trace as below:
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
/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i
386:/usr/java/packages/lib/i386:/lib:/usr/lib
Nov 7, 2012 3:40:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Nov 7, 2012 3:40:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Nov 7, 2012 3:40:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 851 ms
Nov 7, 2012 3:40:00 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 7, 2012 3:40:00 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
Nov 7, 2012 3:40:00 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/kruthi/apache-tomcat-7.0.32/conf/Catalina/localhost/MyNewApp1.xml
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/docs
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/ROOT
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/examples
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/host-manager
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/kruthi/apache-tomcat-7.0.32/webapps/manager
Nov 7, 2012 3:40:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Nov 7, 2012 3:40:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Nov 7, 2012 3:40:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1254 ms
Where am i going wrong?I have checked my web.xml file, ensured that it is a web project,i am able to export it as a WAR file and everything seems to be fine for me...But still i get this error and not able to move forward.Please help.
Thanks in advance

Issue with Axis2 WebService running on Apache Tomcat 7

I have a web service application that I deployed successfully on Apache Tomcat using Eclipse IDE. However after a restart to my computer is not working any more. While trying to the list of services I get the following.
HTTP Status 404 - /ScWS/services/listServices
type Status report
message /ScWS/services/listServices
description The requested resource (/ScWS/services/listServices) is not available.
Apache Tomcat/7.0.11
When Tomcat is loading I see the following in the console logs:
Mar 19, 2011 10:46:57 PM org.apache.catalina.core.AprLifecycleListener init
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/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Mar 19, 2011 10:47:05 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 19, 2011 10:47:05 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 19, 2011 10:47:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 10342 ms
Mar 19, 2011 10:47:06 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 19, 2011 10:47:06 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.11
Mar 19, 2011 10:47:08 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ScWS.xml from /home/blueprint/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf/Catalina/localhost
Mar 19, 2011 10:47:08 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ScWS' did not find a matching property.
Mar 19, 2011 10:47:11 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 19, 2011 10:47:11 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 19, 2011 10:47:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5593 ms
Anyone have any ideas what might be the Issue?
I deleted everything about Tomcat and installed again and everything was up and running.