• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Tomcat 7 Start up errors

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

My TOMCAT was starting and working fine. Once I deleted the "TOMCAT_HOME/work" directory for a reason and recreated it manually. Under work I also recreated the Catalina/localhost folder manually in windows 7. Since then I was getting various weird start up errors. SO, I reinstalled tomcat 7.0.47 from the tomcat website and tried to start the server, but still I get the same error messages. Any help? note also that I didn't deploy any applications under webapps. The errors below are solely from the applications that come with tomcat out of the box. So there is no room for jar conflicts from WEB-INF etc...



The below errors from the above snippet are of concern.

WARNING: Failed to create work directory [C:\NOSCAN\apache-tomcat-7.0.47\work\Ca
talina\localhost\docs] for context [/docs]

SEVERE: The scratchDir you specified: C:\NOSCAN\apache-tomcat-7.0.47\work\Catali
na\localhost\host-manager is unusable.

WARNING: Failed to create work directory [C:\NOSCAN\apache-tomcat-7.0.47\work\Ca
talina\localhost\manager] for context [/manager]

 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe your Tomcat doesn't have proper file permissions its need to create/access the directory.
So check permissions of the user who runs Tomcat.
 
Saloon Keeper
Posts: 23871
162
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. That's where my money goes.

You don't need to recreate any subdirectories when you delete the contents of the tomcat work, temp, or log directories. Tomcat will do that if it needs them. All you need is those directories (with PROPER case on the names - 'work', not 'Work') and ensure that the Tomcat user ID can read/write/create/delete in them.
 
Sunderam Goplalan
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. Problem Solved. The issue was related to the "Administrator" privileges in Windows 7. I had to right click the "start.bat" file and select "Run as administrator". Then there were no issues.
However, I do have the Local Admin rights for my user in the machine.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic