Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

tomcat wont start in debug

tomcat wont start in debug

where as tomcat is staring fine in regular mode.

i increased time out from 45 to 450 still similar error.

Server Tomcat v8.0 Server at localhost was unable to start within 450 seconds. If the server requires more time, try increasing the timeout in the server editor.
i wonder why server starts in regular mode but takes forever to start in debug mode.

regular startup happens in 10 seconds asap.

Aug 14, 2017 5:40:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:wsdlfirstws' did not find a matching property.
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/8.0.39
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Nov 9 2016 08:48:39 UTC
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         8.0.39.0
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 10
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            10.0
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\Program Files\Java\jre1.8.0_102
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_102-b14
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\Users\saiganesh\mars_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\gpSoftwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\saiganesh\mars_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\gpSoftwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\saiganesh\mars_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\gpSoftwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39\endorsed
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Aug 14, 2017 5:40:21 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/server;C:/Program Files/Java/jre1.8.0_102/bin;C:/Program Files/Java/jre1.8.0_102/lib/amd64;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Java\jdk1.8.0_102\bin;C:\gpSoftwares\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;C:\Users\saiganesh\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk1.8.0_102\bin;;C:\gpSoftwares\eclipse-jee-mars-2-win32-x86_64\eclipse;;.
Aug 14, 2017 5:40:21 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8924"]
Aug 14, 2017 5:40:21 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Aug 14, 2017 5:40:21 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Aug 14, 2017 5:40:21 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Aug 14, 2017 5:40:21 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 976 ms
Aug 14, 2017 5:40:21 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 14, 2017 5:40:21 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.39
Aug 14, 2017 5:40:22 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.
Aug 14, 2017 5:40:28 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.
Aug 14, 2017 5:40:28 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Aug 14, 2017 5:40:29 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Mon Aug 14 17:40:29 EDT 2017]; root of context hierarchy
Aug 14, 2017 5:40:29 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
Aug 14, 2017 5:40:29 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/C:/Users/saiganesh/mars_workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/wsdlfirstws/WEB-INF/cxf-servlet.xml]
Aug 14, 2017 5:40:29 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1789f3ad: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,customerOrdersWs,cxf.config0]; root of factory hierarchy
Aug 14, 2017 5:40:30 PM org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://trainings.ws.bharath.com/}CustomerOrdersService from WSDL: WEB-INF/wsdl/CustomerOrders.wsdl
Aug 14, 2017 5:40:31 PM org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory createEndpoint
WARNING: Could not find endpoint/port for {http://impl.trainings.ws.bharath.com/}CustomersOrdersWSImplPort in wsdl. Using {http://trainings.ws.bharath.com/}CustomerOrdersPort.
Aug 14, 2017 5:40:31 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /customerOrders
Aug 14, 2017 5:40:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8924"]
Aug 14, 2017 5:40:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Aug 14, 2017 5:40:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10408 ms


where i  can se tomcat 8 server log which is embedded to eclipse mars?
please advise
ASKER CERTIFIED SOLUTION
Avatar of Am P
Am P
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

Found below (2) paths from logs you shared. Please explore both the directories. You will find "logs" directory and updated log files inside any of the directory.

1. C:\Users\saiganesh\mars_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0

2. C:\gpSoftwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39

what did you search on to find above two directories of log folders?
To be specific, I searched for variables that are begin with CATALINA. Its there in the logs you provided. It contains not only the path, but the information related to the environment too. Please study the logs.

Refer the attached image, i have highlighted few settings.
tomcat-log.png
Avatar of gudii9

ASKER

To be specific, I searched for variables that are begin with CATALINA. Its there in the logs you provided. It contains not only the path, but the information related to the environment too. Please study the logs.
not sure what could be wrong tith tomcat and why it wont start in debug whereas it starts in regular mode.

rather than wasting valuable time checking tomcat environment is it better to uninstalll and reinstall tomcat?