Tomcat starting slow ( AprLyfecycleListener ) - java

I just wanted to know why my tomcat is starting so slow.
I was able to change the timeout and then I saw the starting log
Feb 24, 2015 4:24:04 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which [...]
Feb 24, 2015 4:26:11 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 24, 2015 4:26:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 127659 ms
Feb 24, 2015 4:26:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 24, 2015 4:26:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.43
Feb 24, 2015 4:26:11 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 24, 2015 4:26:11 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 24, 2015 4:26:11 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/13 config=null
Feb 24, 2015 4:26:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 301 ms
Analysing this:
Feb 24, 2015 4:24:04 PM org.apache.catalina.core.AprLifecycleListener init
Feb 24, 2015 4:26:11 PM org.apache.coyote.http11.Http11Protocol init
and...
Feb 24, 2015 4:26:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 127659 ms
The start of this AprLifecycleListener is taking 2 minutes, I saw some other logs on the internet, and they start instantly.
I'm using eclipse luna, tomcat 6, java 6, and ubuntu 12.04 x64
Thanks for the help.

Related

Java / Spring application: Tomcat suddenly not able to deploy anymore

After noticing that my web application is not running on the production server anymore, I looked inside the tomcat log (catalina.out):
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Listening for transport dt_socket at address: 8000
Mar 26, 2018 7:53:26 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 26, 2018 7:53:26 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4624 ms
Mar 26, 2018 7:53:26 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 26, 2018 7:53:26 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Mar 26, 2018 7:53:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Listening for transport dt_socket at address: 8000
Mar 26, 2018 7:54:26 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 26, 2018 7:54:26 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2108 ms
Mar 26, 2018 7:54:26 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 26, 2018 7:54:26 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Mar 26, 2018 7:54:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Listening for transport dt_socket at address: 8000
Mar 26, 2018 7:55:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 26, 2018 7:55:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2428 ms
Mar 26, 2018 7:55:32 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 26, 2018 7:55:32 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Mar 26, 2018 7:55:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Listening for transport dt_socket at address: 8000
Mar 26, 2018 7:56:36 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 26, 2018 7:56:36 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1873 ms
Mar 26, 2018 7:56:36 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 26, 2018 7:56:36 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Mar 26, 2018 7:56:36 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Listening for transport dt_socket at address: 8000
Mar 26, 2018 7:57:42 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 26, 2018 7:57:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2534 ms
Mar 26, 2018 7:57:42 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 26, 2018 7:57:42 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Mar 26, 2018 7:57:42 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
The deploy "loop" starts with the following message:
Mar 26, 2018 5:00:45 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Mar 26, 2018 5:00:46 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
I tried to restart Tomcat and the entire server multiple times without success.
Can you imagine what's going wrong here?
Similar cases have been reported and the explanation was a Memory Leak.
About this warning which mentions that PermGen is ignored, why don't you use the correct option ? This might explain an insufficient memory leading to your problem.
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
If after using the correct option (XX:MaxMetaspaceSize) you still have this problem, try giving it more memory. Try to understand what changed then your application cannot run anymore (data has changed in the DB ? how ?). If you still to convince yourself, remove the application and start Tomcat with no webapps at all.
Strange...
Can you run your app with other server ? Such as glassfish or jetty ?
I know it doesn't answer your question,but if the app work with the servers mentioned above, than your tomcat is with some problem,but if not work if them, than your code have some problems.

Jenkins: stops execution of job abruptly

I have a scheduled pipeline which runs daily.
There was an error that I faced yesterday.One of my jobs in the pipeline failed abruptly.The console log didn't return any FAILURE status.But strangely the pipeline shows as SUCCESSFUL,despite the job failing.
My job uses chef to download files from object storage location.I checked the logs it is successful.But still somehow the job failed/interrupted.
One more thing I noticed is that though the job ran fully it still shows completed in 0ms
Started 23 hr ago
Took 0 ms
Below is the jenkins log at the time when the job started:
` **Nov 28, 2017 1:47:10 PM hudson.plugins.logparser.LogParserReader readLogPart
INFO: Start reading log part 0 in thread #0
Nov 28, 2017 1:47:10 PM hudson.plugins.logparser.LogParserReader readLogPart
INFO: Done reading log part 0
Nov 28, 2017 1:47:11 PM hudson.plugins.logparser.LogParserThread getLineStatuses
INFO: LogParserThread: Start parsing log part 0
Nov 28, 2017 1:47:11 PM hudson.plugins.logparser.LogParserThread getLineStatuses
INFO: LogParserThread: Done parsing log part 0
Nov 28, 2017 1:47:11 PM hudson.plugins.logparser.LogParserParser parseLogBody
INFO: LogParserParser: Parsing took 0 minutes (0) seconds.
Running from: /usr/lib/jenkins/jenkins.war
Nov 28, 2017 2:17:08 PM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Nov 28, 2017 2:17:08 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized #858ms to org.eclipse.jetty.util.log.JavaUtilLog
Nov 28, 2017 2:17:09 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Nov 28, 2017 2:17:09 PM org.eclipse.jetty.server.handler.ContextHandler setContextPath
WARNING: Empty contextPath
Nov 28, 2017 2:17:09 PM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.z-SNAPSHOT
Nov 28, 2017 2:17:10 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Nov 28, 2017 2:17:10 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: DefaultSessionIdManager workerName=node0
Nov 28, 2017 2:17:10 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: No SessionScavenger set, using defaults
Nov 28, 2017 2:17:10 PM org.eclipse.jetty.server.session.HouseKeeper startScavenging
INFO: Scavenging every 660000ms
Jenkins home directory: /var/lib/jenkins found at: SystemProperties.getProperty("JENKINS_HOME")
Nov 28, 2017 2:17:11 PM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.#d23e042{/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Nov 28, 2017 2:17:11 PM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector#13d73f29{HTTP/1.1,[http/1.1]}{127.0.0.1:8081}
Nov 28, 2017 2:17:11 PM org.eclipse.jetty.server.Server doStart
INFO: Started #3487ms
Nov 28, 2017 2:17:11 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
Nov 28, 2017 2:17:12 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Nov 28, 2017 2:17:13 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Nov 28, 2017 2:17:18 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Nov 28, 2017 2:17:18 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Nov 28, 2017 2:17:19 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
INFO: Failed to instantiate optional component org.biouno.unochoice.model.ScriptlerScript$DescriptorImpl; skipping
Nov 28, 2017 2:17:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Nov 28, 2017 2:17:20 PM jenkins.model.RunIdMigrator migrate
INFO: Migrating build records in /var/lib/jenkins/jobs/build_spark_repo/builds
Nov 28, 2017 2:17:20 PM jenkins.model.RunIdMigrator doMigrate
WARNING: found unexpected dir lastSuccessfulBuild
Nov 28, 2017 2:17:20 PM jenkins.model.RunIdMigrator doMigrate
WARNING: found unexpected dir lastStableBuild
Nov 28, 2017 2:17:20 PM jenkins.model.RunIdMigrator migrate
WARNING: Build record migration (https://jenkins.io/redirect/build-record-migration) is one-way. If you need to downgrade Jenkins, run: java -classpath "/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.73.2.jar:/var/cache/jenkins/war/WEB-INF/lib/commons-io-2.4.jar:/var/cache/jenkins/war/WEB-INF/lib/stapler-1.250.jar:/var/cache/jenkins/war/WEB-INF/lib/ant-1.8.4.jar:/var/cache/jenkins/war/WEB-INF/lib/commons-lang-2.6.jar" jenkins.model.RunIdMigrator "/var/lib/jenkins"
Nov 28, 2017 2:17:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Nov 28, 2017 2:17:20 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Nov 28, 2017 2:17:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Nov 28, 2017 2:17:21 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext#479f04e6: display name [Root WebApplicationContext]; startup date [Tue Nov 28 14:17:21 CET 2017]; root of context hierarchy
Nov 28, 2017 2:17:21 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext#479f04e6]: org.springframework.beans.factory.support.DefaultListableBeanFactory#5eedf60f
Nov 28, 2017 2:17:21 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#5eedf60f: defining beans [authenticationManager]; root of factory hierarchy
Nov 28, 2017 2:17:21 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext#4a772b39: display name [Root WebApplicationContext]; startup date [Tue Nov 28 14:17:21 CET 2017]; root of context hierarchy
Nov 28, 2017 2:17:21 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext#4a772b39]: org.springframework.beans.factory.support.DefaultListableBeanFactory#5e76549c
Nov 28, 2017 2:17:21 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#5e76549c: defining beans [filter,legacy]; root of factory hierarchy**`
This worked after I re-run the job.
Just wanted to know what could be the cause of the error?

JSP pages not loading on loaclhost while working with Tomcat7 on Eclipse IDE

I am working on a project for which I am using Java Servlets and JSP. Earlier the project was running fine, but now when running the project, the server is properly setup but some JSP pages are not running and others do not show any CSS applied to it.
Also console shows a warning.
Apr 19, 2016 8:24:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.2.
Apr 19, 2016 8:24:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Apr 19, 2016 8:24: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:TPC' did not find a matching property.
Apr 19, 2016 8:24:58 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1f 6 Jan 2014)
Apr 19, 2016 8:24:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Apr 19, 2016 8:24:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Apr 19, 2016 8:24:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2996 ms
Apr 19, 2016 8:24:58 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 19, 2016 8:24:58 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Apr 19, 2016 8:25:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Apr 19, 2016 8:25:02 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Apr 19, 2016 8:25:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3405 ms
Can you check if you war/ear file is present in tomcat and also getting deployed.
If not sure, just restart the server after clean up (deleting temp,work and logs directory).
Then try to access http://localhost:8080/ or http://localhost:8080/YOUR_DEPLOYABLE_FILE_NAME
If it still doesn't work then check mappings in web.xml.

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.

Apache Tomcat will not complete startup after a certain .war File is deployed

I have a Java web application that I am trying to deploy to our company's application server. It uses spring and spring-security. Everything works correctly when I run the application in Tomcat from Eclipse but when I try and deploy the .war file into a standalone Tomcat instance the server does not even finish starting up.
These are the catalina logs from the last attempt:
Jan 30, 2014 1:16:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.23 using APR version 1.4.6.
Jan 30, 2014 1:16:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jan 30, 2014 1:16:39 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized with version OpenSSL 1.0.0g 18 Jan 2012
Jan 30, 2014 1:16:40 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 30, 2014 1:16:40 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jan 30, 2014 1:16:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2567 ms
Jan 30, 2014 1:16:40 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 30, 2014 1:16:40 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
Jan 30, 2014 1:16:41 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jan 30, 2014 1:16:41 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jan 30, 2014 1:16:41 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive MyApp.war
And then startup stops.
These are the localhost logs:
Jan 30, 2014 1:16:46 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
And then nothing...
All of the other log files for this last attempt are blank.
Any insight you guys might have would be greatly appreciated!
This problem was caused by not setting the JAVA_OPTS property to point to my .ini files.
I included this in my startup script:
set JAVA_OPTS= -DLOGCONFIG=%CATALINA_HOME%\conf\logging.ini -DINIFILE=%CATALINA_HOME%\conf\webapps.ini
and it ran succesfully

Categories

Resources