Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

service terminated with service-specific error The system cannot open the file

 
Santhosh Kumar P
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Unable to start the tomcat service in windows :

service terminated with service-specific error The system cannot open the file.

Java version :

java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

Tomcat version : Apache Tomcat/6.0.37




 
Jean-Pol Landrain
Greenhorn
Posts: 3
1
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Santhosh Kumar P wrote:Hi All,

Unable to start the tomcat service in windows :

service terminated with service-specific error The system cannot open the file.

Java version :

java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

Tomcat version : Apache Tomcat/6.0.37



I am getting exactly the same error with Tomcat 7.0.42 and java (jdk) 1.7.0_45 64 bits on Windows 7.
I can also see this message "The system cannot open the file" in the Event Viewer of Windows.

Did you find the cause ? At the moment I have no clue.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
I could possibly be the dll issue as discussed here http://www.coderanch.com/t/86968/Tomcat/start-tomcat-service
 
Jean-Pol Landrain
Greenhorn
Posts: 3
1
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the welcome.

No, I have tried the solutions described there but it doesn't really help.

However, it helped a bit in order to investigate: I have noticed that I also get an error message when running tomcat7.exe from the command line. However I can't read the error because the window pops up and closes directly.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jean-Pol Landrain wrote:
However, it helped a bit in order to investigate: I have noticed that I also get an error message when running tomcat7.exe from the command line. However I can't read the error because the window pops up and closes directly.

Then you might want to try running it from the command line. There should be a bat/exe file under your TOMCAT_HOME/bin
 
Jean-Pol Landrain
Greenhorn
Posts: 3
1
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the reason: the service.bat used to install Tomcat as a service didn't set the classpath. When I set bootstrap.jar and tomcat-juli.jar in the classpath (by using the tomcat7w utility), it works.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for sharing the solution! You earned a cow for that!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic