Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Tomcat 9 won't start in 45 seconds, increase time

 
Ranch Hand
Posts: 269
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ha, I knew there has to be a Tomcat forum here!

I am running Tomcat 9 on Windows 10 as a virtual server for my Spring WebMvc stuff and lately it won't start, neither automatically in Eclipse as server nor manually, always with the error message that it won't start in 45 seconds and to increase the startup time. So, I increased the startup time to 90 seconds, removed all the hooks to projects in Tomcat, cleaned the catalina directory except for last 2 days and closed all projects except the project I am working on.

Tomcat9 still won't start with the same message to increase the startup time.

Help please? What can I do to get Tomcat to wake up, short of re-installing it ?
 
Saloon Keeper
Posts: 25474
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, and you've caught me at one of my oldest homes on the Ranch!

I'm not sure how you've got Eclipse automatically starting Tomcat. I only know how to get it to run Tomcat manually.

Usually under Windows you'd install Tomcat using the Windows installer version which sets it to run as a Windows Service.

Unless you have a serious RAM shortage or some other problem with your system, Tomcat itself should start in under 10 seconds. What takes longer is for the webapps to deploy and start, and I've worked with some that took over 20 minutes to start. So you might want to look for things like long-running init() methods in servlets.
 
AhFai Chan
Ranch Hand
Posts: 269
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I think I have resolved the problem
I deleted .m2 folder and Maven rebuilt it.  After that, the project runs.
There are so many projects in there, I must find a common set of .jars with compatible versions and stick to them, I think Maven might have been confused with conflicting versions.

Informed opinion most welcome.

 
Tim Holloway
Saloon Keeper
Posts: 25474
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maven doesn't have problems with jar versions. Each jar version is stored in a separate subdirectory under .m2. But it never hurts to clean house occastionally, to avoid filling up your disk with "dead" jar versions. You might want to just delete what's in the repositories subdirectory, though, since the main Maven config file is in the actual .m2 directory.
 
Maybe he went home and went to bed. And took this tiny ad with him:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic